Soba Docs

Operating

What Soba sees

Exactly what crosses Soba, what never leaves the user's machine, and what is kept afterwards. Written for the question an enterprise buyer asks first.

The overview says you own the tools and the data. That is true, and it is worth being precise about, because a run's prompt does travel through Soba: the boundary is not "nothing" and claiming otherwise would not survive the first security review.

What crosses Soba#

Everything a run needs in order to happen somewhere else, which is:

The request prompt or messages, the system slot, model, the policy and route you asked for
Tool schemas The name, description and inputSchema of every app-defined tool
Tool calls and results The model's arguments, and what your app answered. They travel between the machine and your app, so they pass through Soba
The output Every delta, thinking and status event, which is the answer itself
Usage Model, provider, token counts, cost class, cost in micros

If a tool returns a customer record, that record crosses Soba on its way back to the model. Design your tool results the way you would design an API response to a third party, because for the duration of the run that is what Soba is.

What never leaves the machine#

Files and directories The model reads them on the machine. Their contents reach Soba only if the model quotes them into its answer
The shell Commands run there. Soba sees a status event with a tool slug, not a command line
Provider credentials The user's Claude or ChatGPT login stays in their CLI. The worker never reads it and Soba never receives it
Your tool code Only the schema is registered. The implementation runs in your app, against the data it already touches
Metered provider keys Stripped from the child environment unless the owner opts in
Approval decisions Appended to ~/.soba/audit.log on that machine

Your own provider keys reach Soba only if you add them under Models. Soba stores them sealed and uses them for the runs it serves on your providers. A run your server sends straight to your provider never reaches Soba.

What your user's machine sees#

A run on your user's compute happens on their machine, under their sign-in. So whatever the model reads, your user can read. Encryption does not change this: it hides a run from Soba, and the machine that opens it is theirs.

Your system prompt Readable by your user. On their machine it is kept in a file only their account can open, not on the command line, so other accounts and tools on the machine do not see it
Tool names, descriptions and schemas Readable by your user
Tool arguments and results Readable by your user. Whatever execute returns reaches the model on their machine
The conversation Kept by their CLI like any session of their own
Your tool code, your database, your keys Never sent. They stay on your server

Treat it like JavaScript you ship to a browser: assume your user can read all of it. Keep secrets and proprietary logic inside your tool code, and return only what that person may see. Your tools are a public API has the rules.

If a prompt or a tool must stay private, don't send it to your user's machine:

  • Pay for those runs. A run on your own provider never reaches your user's machine. One your server sends there itself never reaches Soba either.
  • Mark it private. A tool with private: true and a privateSystem prompt stay on your server, answered by your own provider. See Keeping part of your agent private.

What is kept#

Soba's own records are what billing and routing need, and nothing else:

  • A run row: who it was attributed to, which machine and runtime served it, the cost class, the outcome, the environment.
  • A usage row: model, provider, token counts, cost in integer micros.
  • A billing record: which Stripe customer, subscription and plan a user maps to, and every write Soba made to your Stripe account. Card details never reach Soba; Stripe holds them.

Prompts, messages and completion text are not part of that record, which is why the dashboard can tell you what a run cost and never what it was about. One exception to "in flight only": a run that can be read again (a resumable run, or any streamed run across a Soba restart) keeps its output frames until 10 minutes after it ends, so a reader can pick up where it left off. On an encrypted run those frames are ciphertext.

A thread is kept on your user's computer. Soba stores two things about threads, both as ciphertext it can't open: a turn waiting for a computer that is asleep, until it is collected or 90 days pass, and the backup, if your user turned it on, until they delete it.

Encrypted runs#

Everything above describes a plain run, where content crosses Soba readable. The SDK does not send plain runs unless you ask it to: from @soba-so/sdk 0.0.16, end-to-end encryption is on by default.

JavaScript
const soba = new Soba({ apiKey: process.env.SOBA_KEY })                 // encrypted
const plain = new Soba({ apiKey: process.env.SOBA_KEY, encrypt: false }) // as before

Each soba.run() is sealed on your server to the public keys of the person's own machines (X25519, AES-256-GCM). Only those machines can open it. Everything the run sends back (text, tool calls, approval requests) is sealed to you, and so is everything you send it (tool results, approval decisions). A machine's private key is made on that machine and never leaves it.

Soba can read Soba cannot read
model, route, policy, metadata, task prompt, messages, system
Tool names and status tool slugs Tool schemas, tool inputs and tool results
Token counts, cost class, timing, outcome Every delta, thinking, status message and error text the machine writes
Which machine served the run Approval requests, and your answers to them

What changes besides that:

  • A run nobody can open is never sent. If the person has no connected machine with a key, soba.run() throws no_compute before anything leaves your server. That is the same refusal as a run with nowhere to go, so your code can answer it on your own key.
  • Soba never serves an encrypted run itself. Bought supply and the connected-plan channel run on Soba's side and would have to read the run, so they are skipped.
  • Forged content is ignored. On an encrypted run the SDK drops text that arrives unsealed and never runs a tool call that was not sealed by the machine. The machine denies any approval that is not your sealed answer.
  • Pinning. Soba hands your server each machine's public key, so a Soba that handed over its own key could read the run. Pass encrypt: { pin: true } to trust on first use: the first time a person is seen, their machines' keys are pinned, and after that a key that was not pinned is refused unless your onNewKey approves it. A person can read their machine's fingerprint under Settings › Machine in the Soba app and compare it with the one onNewKey is shown. Keep pins in your database (pin: { store }) on serverless, or every cold start is a first use. encrypt: { trust } takes any rule of your own instead.

Reading a run again from another process (soba.runs.attach) takes run.key: the run's key, encrypted with your API key. Soba never receives it, so seeing your API key on each request does not let Soba read a run.

Not yet supported on an encrypted client: terminal sessions. These are refused rather than sent readable; start them from a client made with encrypt: false. The OpenAI-compatible endpoint is never encrypted, because its callers send plain requests by definition.

This is the claim to check before you rely on it

Everything above describes the system as designed. If you are answering a security questionnaire, ask for it in writing rather than citing a docs page, including retention windows for the run and usage rows themselves, which are a policy question rather than an architectural one.

Why Soba is not trusted with more#

Soba is the component this architecture asks you to trust least, which is why the policy intersection runs on the worker rather than here. The same reasoning bounds what Soba can learn:

  • It cannot widen a machine's grant, so it cannot ask a run to read a file the owner did not put in roots.
  • It cannot enable a sensitive tool by request, so it cannot reach bash, write or edit on a machine whose owner did not grant them.
  • It cannot use the approval channel to probe: a tool outside the askable set is refused without asking anyone, so no request is sent that would reveal what a machine might say yes to.
  • A run arriving over the network does not inherit the owner's CLAUDE.md, hooks, skills or plugins, so a remote prompt cannot trigger local configuration.

The honest residue, stated in the security model too: with an agent runtime the resolved policy is advisory: the CLI is given the permitted tool set and is trusted to honour it. With a model runtime the gate is in-process and nothing has to be trusted.

The end user's side#

They are the other party to this, and the product is built so they can see it:

  • No credential is ever displayed or pasted. Pairing is a device grant approved in a browser where they are already signed in.
  • What their machine will and will not allow is a file they own, on their disk.
  • Every approval decision is logged locally, on their machine, not on Soba's.
  • The run is on their machine, under their login, for their own account, which is not a courtesy but the distinction the whole design rests on.
Privacy · Terms · DPA · © 2026 Soba resolved = machine grant ∩ broker request