Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(readme): add initial project documentation

Steven Enamakel1a689f6b6d07
diff --git a/crates/openhuman-tinyhumans/README.md b/crates/openhuman-tinyhumans/README.md
index c338c1693d..c854d0c635 100644
--- a/crates/openhuman-tinyhumans/README.md
+++ b/crates/openhuman-tinyhumans/README.md
@@ -47,18 +47,19 @@ openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())?;
| Module | Owns |
| --- | --- |
-| `transport` | `SdkBackendTransport`: one `reqwest::Client` per `TransportProfile`, built from the core's `api::headers` so TLS, timeouts and `x-core-version` / `x-tauri-version` / `x-sdk-name` are exactly what the core specifies; SDK route policy; `tinyhumans_sdk::Error` → `BackendTransportError` |
+| `backend` | Everything host-specific about reaching the TinyHumans backend: `url.rs` (base-URL resolution, `BACKEND_URL`/`VITE_BACKEND_URL` overrides, the local-AI/inference-endpoint guard), `headers.rs` (attribution headers and per-`TransportProfile` `reqwest` clients), `product.rs` (process-wide `ProductIdentity`, re-exported at the crate root) |
+| `transport` | `SdkBackendTransport`: one `reqwest::Client` per `TransportProfile`, built from `backend::headers` so TLS, timeouts and `x-core-version` / `x-tauri-version` / `x-sdk-name` are exactly what this crate specifies; SDK route policy; `tinyhumans_sdk::Error` → `BackendTransportError` |
| `install` | process-global installation, idempotent |
| `RuntimeBuilder` | embed builder + transport |
| `hosted` | the hosted-backend RPC proxies, moved here from the core and built on the SDK's typed clients: `billing`, `team` (including `team_get_usage`), `referral`, `announcements`, `webhooks` (tunnel CRUD + bandwidth), `channel_link` (`auth.create_channel_link_token`, `channels.telegram_login_*`, `channels.discord_link_*`) and `oauth` (`auth.oauth_*`). `hosted::client::HostedClient` resolves the core's credential first (no request for a user without a TinyHumans account — the core's `BACKEND_UNAVAILABLE:` / session sentinel comes back as-is), builds the `TinyHumansClient` with Bearer or `x-api-key` and the product identity, and maps `tinyhumans_sdk::Error` onto the core's RPC sentinels in one place (401 → `SESSION_EXPIRED:` or `API_KEY_REJECTED:`). `hosted::extension()` packages them as a `ControllerExtension` that `install()` registers under `DomainGroup::Hosted`; `webhooks`, `channel_link` and `oauth` share the `webhooks` / `channels` / `auth` namespaces with core controllers. Wire names (`openhuman.billing_*`, …) are unchanged |
-| `session` | the host-side login/session owner (formerly the `openhuman-session` crate): `SessionClient` (login-token exchange, `GET /auth/me`), `CurrentUserCache`, `CoreLink` (credential handoff into whichever core the host owns), `SessionManager`, process-global `identity` for sync Sentry hooks. May use core utilities (`util::tls`, `api::product`) but never `openhuman_core::security::*` — the core only *takes* a credential |
+| `session` | the host-side login/session owner (formerly the `openhuman-session` crate): `SessionClient` (login-token exchange, `GET /auth/me`), `CurrentUserCache`, `CoreLink` (credential handoff into whichever core the host owns), `SessionManager`, process-global `identity` for sync Sentry hooks. May use core utilities (`util::tls`) and this crate's own `backend::product` but never `openhuman_core::security::*` — the core only *takes* a credential |
| `jwt` | the SDK's JWT readers, for hosts that already depend on this crate |
The transport never adds a route the core does not already name; route
-classification for core-side calls stays in the core (`api/rest.rs`,
+classification for core-side calls stays in the core (`backend/client.rs`,
`integrations/client/`). The hosted domains name SDK routes directly. The few
calls whose route the SDK does not carry (`POST /teams`, `DELETE /teams/{id}`)
-stay on the core's `BackendOAuthClient::authed_json` until the route lands in
+stay on the core's `BackendClient::authed_json` until the route lands in
the SDK upstream.
## Tests