Skip to content

An open-source, faster Devin alternative

TypeScript

docs(credentials): make the two security levels explicit — Infisical at rest, egress proxy in use

Igor Zalutskif6652dc7ad49
diff --git a/docs/agent-sessions/authentication.mdx b/docs/agent-sessions/authentication.mdx
index d9cf8623..87ca7dbf 100644
--- a/docs/agent-sessions/authentication.mdx
+++ b/docs/agent-sessions/authentication.mdx
@@ -77,6 +77,6 @@ For the SSE stream the browser passes the client token as `?token=` (native `Eve
## Model credentials
-Sessions run the model on **your own provider key** — Anthropic for the `claude` [runtime](/agent-sessions/runtimes), OpenAI for `codex`. The key is held in OpenComputer's [secret store](/sandboxes/secrets), encrypted at rest (AES-256-GCM), write-only, and **never returned** by the API. The real key never enters a sandbox: the runtime gets an opaque placeholder, and a host-side proxy swaps in the real value only on the outbound HTTPS call to the provider. A credential is **required**; a session with no resolvable key fails to start (`422 no_credential`).
+Sessions run the model on **your own provider key** — Anthropic for the `claude` [runtime](/agent-sessions/runtimes), OpenAI for `codex`. The key is stored at rest in a dedicated secrets vault ([Infisical](https://infisical.com)), write-only, and **never returned** by the API. The real key never enters a sandbox: the runtime gets an opaque placeholder, and a [secret-store egress proxy](/sandboxes/secrets) swaps in the real value in flight, only on the outbound HTTPS call to the provider. A credential is **required**; a session with no resolvable key fails to start (`422 no_credential`).
The quickest way to add one is inline when you [create an agent](/agent-sessions/agents) (`"key": "…"`). To reuse a key across agents, set an org default, or rotate/remove keys, see the dedicated **[Credentials](/agent-sessions/credentials)** page.
diff --git a/docs/agent-sessions/credentials.mdx b/docs/agent-sessions/credentials.mdx
index 117dd06a..4267922e 100644
--- a/docs/agent-sessions/credentials.mdx
+++ b/docs/agent-sessions/credentials.mdx
@@ -8,11 +8,12 @@ Sessions run the model on **your own provider key** — Anthropic for the `claud
## How your keys are protected
-A key is a hard secret the moment it reaches us, and stays one:
+Two independent layers — at rest and in use:
-- **Encrypted, write-only** — held in a dedicated [secret store](/sandboxes/secrets) (AES-256-GCM), isolated from the app database, and never returned by the API (reads expose only a `last4` hint).
-- **Never in the sandbox** — the runtime sees an opaque placeholder; a host-side proxy swaps in the real key only on the outbound call to the provider, scoped to that host (`api.anthropic.com` / `api.openai.com`) by an egress allowlist.
-- **Rotatable in place** — replace the value any time and it reaches **running** sessions, so a compromised key retires without restarting work ([rotation](#rotation)).
+- **At rest: a dedicated secrets vault.** Your key is stored in [Infisical](https://infisical.com), a battle-tested, purpose-built secrets platform — encrypted at rest and isolated from OpenComputer's own database. It's **write-only**: once submitted it's never returned by the API (reads expose only a `last4` display hint).
+- **In use: never handed to the agent.** The real key never enters the sandbox. The runtime runs with an opaque placeholder, and OpenComputer's [secret-store egress proxy](/sandboxes/secrets) swaps in the real value **in flight** — only on the outbound HTTPS call to the model provider (`api.anthropic.com` / `api.openai.com`), enforced by an egress allowlist, and nowhere else.
+
+Rotating a key's value reaches **running** sessions too, so a compromised key retires without restarting work ([rotation](#rotation)).
<Warning>Keep your **org API key** (which manages credentials) on your backend, and hand browsers only session-scoped [client tokens](/agent-sessions/authentication#client-tokens) — never a model key or the org key.</Warning>