Sahab — your own cloud for AI coding agents
Run AI coding agents in your own cloud from your phone or desktop, each in its own sandbox, with risky actions waiting for your tap.
- TypeScript
- gVisor
- Passkeys
- PWA
- Load balancing
Specified, directed and verified by me; built by AI coding-agent teams under written governance · Own account · Riyadh
What it is
Sahab lets you run AI coding agents on your own servers and talk to them from your phone or your desktop as one installable app. A session is an agent working in a sandbox on one of your machines; you watch it, answer its questions and approve or deny the actions that matter, from wherever you are.
How it works
The core keeps the sessions, devices and push subscriptions; a load balancer places sessions across machines and stops idle ones to make room. Every session gets a gVisor sandbox with its own network, and reaches the internet only through an egress guard. Sign-in is a passkey per device, revocable from another device; a new device joins with a one-time code. The client is written without a framework or a bundler, so every line that renders agent output can be read.
The system was specified and directed by me and built by teams of AI coding agents under written rules: a specification, numbered decisions, agents with bounded scope, review rounds with a budget, and live verification before anything shipped. The security facts on this page are the ones the repository’s own documents and code state.
Verify it yourself
Live · accounts by invitation · walkthrough on a call- 1 + 1sandbox and network per session: every agent runs in its own gVisor sandbox on its own network; sandboxes cannot reach each otherSource: docs/03-security-model.md; services/session-runtime/src/config.ts
- 0real credentials inside a sandbox: one service outside holds the model token and forwards only the model APISource: services/credential-proxy/README.md
- 1.2 shold on the phone to allow a risky action; a tap denies itSource: apps/client/README.md (T-4)
- 10 minafter which an unanswered approval request is denied on its ownSource: docs/38-local-sessions-via-sahab.md
- 2–5 sfor linked computers to reconnect after a core restart (three observed restarts)Source: docs/requests/2026-11/R-162-cs-open.md
I will walk you through the code and the decision log on a call.Ask for a walkthrough
Three decisions
The real credential never enters a sandbox
What I choseOne small service outside every sandbox holds the model token. Each session gets a placeholder that only works through that service, which forwards the model API and refuses every other path.
WhyAn agent that can read its own environment can leak it. If the token is never there, a compromised session has nothing to steal. The cost: one more service on the path of every model call.
One gVisor sandbox and one network per session, internet only through a guard
What I choseEach agent runs under a user-space kernel, with no Docker socket, no privileged mode and no host network; an egress guard resolves names itself and refuses private, loopback, link-local and cloud-metadata addresses.
WhyThe agent writes and runs code I have not read. Isolation has to hold even when the code is hostile, and the network rules came from experiments that showed what a sandbox could otherwise reach.
Risky actions wait for a hand on the phone
What I choseA card on the phone: a tap denies, a 1.2-second hold allows, and silence denies after ten minutes. Agent output is drawn in its own area and cannot imitate the app's controls.
WhyThe agent should be fast at the safe things and slow at the dangerous ones, and nobody should be able to fake the "allow" button. A hold is harder to trigger by accident than a tap.
Architecture
Phone and desktop (one installable app) → core → load balancer → nodes → one gVisor sandbox and one network per session → egress guard; the credential service beside the sandboxes holds the only real token.
Method — Written specification, numbered decisions, agents with bounded scope, bounded review rounds, live verification before each release.
What I would change
- Backups are designed, not built yet; I would not run more than my own work on it until they are.
- A core restart still drops the links for a few seconds; I would make that invisible to the person in the session.
- Accounts are by invitation; a demo that resets itself would let people try it without asking me.