Skip to content

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

docs(developing): add saas profiles guide

Steven Enamakel7777c4480233
diff --git a/gitbooks/SUMMARY.md b/gitbooks/SUMMARY.md
index 9057603478..74b087fbd8 100644
--- a/gitbooks/SUMMARY.md
+++ b/gitbooks/SUMMARY.md
@@ -87,6 +87,7 @@
- [Pluggable engines](developing/engines.md)
- [Jev](developing/jev.md)
- [Embedding OpenHuman](developing/embedding.md)
+- [SaaS profiles](developing/saas-profiles.md)
- [One TinyHumans API key](developing/tinyhumans-api-key.md)
- [Hooks](developing/hooks.md)
- [MCP Server](developing/mcp-server.md)
diff --git a/gitbooks/developing/README.md b/gitbooks/developing/README.md
index a3fd3e92c1..7be02b16d7 100644
--- a/gitbooks/developing/README.md
+++ b/gitbooks/developing/README.md
@@ -48,6 +48,7 @@ If this is your first time in the repo:
- [Pluggable engines](engines.md): how config chooses the LLM, embeddings, memory and web search layers, and what is available for each.
- [Jev](jev.md): the fast probability model behind tool selection and routine browser decisions.
- [Embedding OpenHuman](embedding.md) (see also [`crates/openhuman-embed`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-embed)): using `openhuman-embed` to run the core, and any number of agents on it, inside another Rust product. The [Rust quickstart](quickstart.md) walks through it.
+- [SaaS profiles](saas-profiles.md): running the core as a multi-user service behind a gateway, one profile per user, on one node or a cluster with leased profiles.
- [One TinyHumans API key](tinyhumans-api-key.md): what a single key unlocks, including managed inference, embeddings, web search, media, integrations, voice and Jev.
---
diff --git a/gitbooks/developing/saas-profiles.md b/gitbooks/developing/saas-profiles.md
index 40426d70ca..930d120a9c 100644
--- a/gitbooks/developing/saas-profiles.md
+++ b/gitbooks/developing/saas-profiles.md
@@ -167,8 +167,9 @@ can host any profile.
1. **One storage backend.** Set `storage_url` (or `OPENHUMAN_STORAGE_URL`) to
a driver whose compare-and-swap is atomic across processes: MongoDB
- (`mongodb://…/<db>`, the `storage-mongodb` build feature) or SQLite on a
- shared filesystem (`sqlite:<path>`, `storage-sqlite`). It holds the
+ (`mongodb://…/<db>`, the `storage-mongodb` build feature) for nodes on
+ several hosts, or SQLite (`sqlite:<path>`, `storage-sqlite`) for several
+ processes on one host. Do not put SQLite on a network filesystem. It holds the
profile registry, the leases, the session store, and each profile's
records (secrets, auth profiles, approvals, cron, flows) under scope
`profile:<id>`.
@@ -236,8 +237,8 @@ mitigation.
- `root` absolute, not world-writable, on a shared RWX volume (cluster).
- `service.token` mode `0600`, at least 32 bytes, shared with the gateway only.
- Gateway signs `X-OpenHuman-User` and keeps clocks in sync (±60 s).
-- `storage_url` on MongoDB or shared SQLite (cluster), with the matching
- build feature.
+- `storage_url` on MongoDB (or SQLite for processes on one host), with the
+ matching build feature (cluster).
- `node_id`, `advertise_url` and `operator_dir` unique per node (cluster).
- Load balancer hashes users stickily and honours `409` redirects.
- Provision a user (`profiles.provision`) and install their credential