Skip to content

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

docs(api): clarify x-sdk-name requirement and module docs

Steven Enamakela5eb86bd9ee3
diff --git a/crates/openhuman-core/src/api/README.md b/crates/openhuman-core/src/api/README.md
index 85594175f5..7c18177cb6 100644
--- a/crates/openhuman-core/src/api/README.md
+++ b/crates/openhuman-core/src/api/README.md
@@ -155,8 +155,10 @@ see [`models/mod.rs`](models/mod.rs) for the full list.
`crates/openhuman-core/src/api/`.
- Every TinyHumans backend request must carry a sanitized `x-sdk-name`:
`BackendOAuthClient`, `IntegrationClient` (except redirected file
- downloads), `MedullaClient` (including its separate SSE handshake),
- desktop `GET /auth/me`, and the agent's Langfuse ingestion request.
+ downloads), `MedullaClient` (including its separate SSE handshake), the
+ agent's Langfuse ingestion request, and — outside this crate — the host
+ session owner's `POST /auth/login-token/consume` / `GET /auth/me`
+ (`crates/openhuman-session`, via `ClientHeaders`).
- Never add `x-sdk-name` to third-party endpoints, MCP servers, BYOK
inference endpoints, or presigned storage redirects.
- When auditing hand-built backend requests, grep for
diff --git a/crates/openhuman-core/src/api/mod.rs b/crates/openhuman-core/src/api/mod.rs
index 18f63da9c8..0cca6d4255 100644
--- a/crates/openhuman-core/src/api/mod.rs
+++ b/crates/openhuman-core/src/api/mod.rs
@@ -2,11 +2,11 @@
//!
//! Use [`crate::api::config`] for default base URL and env normalization,
//! [`crate::api::jwt`] for session token retrieval and bearer formatting,
-//! [`crate::api::rest`] for authenticated REST calls (`/auth/...`, `GET /auth/me`, etc.),
+//! [`crate::api::rest`] for authenticated (bearer-only) REST calls,
//! [`crate::api::product`] for the `x-sdk-name` product identity every
//! backend-bound request carries,
//! and [`crate::api::socket`] for Socket.IO WebSocket URLs.
-//! [`crate::api::models`] holds shared DTOs for auth and realtime (server-adjacent).
+//! [`crate::api::models`] holds shared DTOs for realtime (server-adjacent).
pub mod config;
pub mod jwt;