Skip to main content
Agents run code, reach the network, and use credentials on your behalf. This page describes the boundaries that contain them, what you control, and what your agents can and can’t see.

Organization isolation

  • Every agent, environment, session, vault, skill, tag, and integration connection belongs to exactly one organization.
  • Each request runs in one organization, chosen by your API key’s scope or the x-organization-id header, and is checked against your membership on every request.
  • A resource in an organization you can’t reach returns 404 not_found, the same as one that doesn’t exist, so its existence isn’t revealed.
  • Your role is checked for every operation. A read-only role can’t create, change, or delete anything. See Organizations and roles.

Authentication

  • API keys are personal, act with your current role, and always expire, after 365 days at most.
  • The full key is shown once and can’t be retrieved later. Revoking a key takes effect immediately.
  • If you’re removed from the tenant, or a key’s organization is archived, the key stops working.
  • API keys can’t create or revoke API keys or buy credits. Those are console actions that need a signed-in session. See API keys.
  • People at your DNS-verified domains can sign in through your own SAML identity provider, and you can require it for them. See Enterprise SSO.

Sandbox isolation

  • One session sandbox per session tree, plus the compute sandboxes the tree starts. A root session and its child sessions share one session sandbox. Compute sandboxes are separate machines with their own disk and internet access no broader than the session’s. A compute sandbox holds at most the integration credentials of the agent that started it, never another agent’s: a delegated agent without a GitHub grant gets no GitHub credential, even when the session that started it has one. Only sessions of the same agent with the same grants can use it. A child started with its own sandbox gets a separate session sandbox with its own credentials. A child that shares its parent’s session sandbox (the default) can reach what that sandbox holds, including the parent’s credentials; start it with its own sandbox to keep them apart.
  • Setup tests carry no credentials. A setup test runs without any session’s credentials. When a session runs setup on its own compute, environment-variable secrets are removed from the script’s shell, but a program the script starts can still read them. Only use setup scripts you trust.
  • No privileged containers by default. Privileged Docker access is off unless you turn it on for an environment, and only accounts where it’s offered can turn it on.
  • Sandboxes don’t stay open forever. A hard stop closes the sandbox. An idle sandbox stops after the environment’s idle period and may later be released. After an idle stop or release, send another message to reopen the same session. Its workspace files can be used when the workspace reopens successfully.

Network access

New environments have no internet access unless you allow it. Grant only the destinations the task needs.
  • In the console, Internet access defaults to No access. Enabled allows unrestricted access.
  • In the API, omitting network_policy stores a deny-all policy. Send {} for unrestricted access, or up to 200 ordered rules to allow specific destinations. GitHub and Cloud Storage grants can add sandbox hosts on new compute; see Integration network behavior.
Privileged Docker requires unrestricted internet access (network_policy: {}). A nonempty policy and privileged Docker cannot be combined on create or when access settings change.Changing a stored network policy, or turning on privileged access, requires expected_access from your latest read, so two people can’t silently overwrite each other’s access settings. See Environment reference.
Model calls, MCP servers, and the web_search and web_fetch tools don’t go through the sandbox, so the network policy doesn’t govern them; control them in the agent’s configuration. A session started by an automation or from Slack in an environment with limited or no internet access gets no web_fetch tool, so event text can’t use it to send data out. See Tools.

Allowlist Recursion’s addresses

MCP servers, web_fetch, and email (IMAP) connections are made by Recursion itself, from these fixed IP addresses. If your server or firewall only accepts known callers, allow all four:
These addresses are shared by every Recursion organization, so an allowlist alone doesn’t prove a request comes from you. Keep authentication on your server, for example a token in a vault. Traffic from inside a sandbox doesn’t use these addresses.

Credentials

Credentials live in vaults, and secret values are write-only. The API and the console show how a credential is stored, never its value. Stored secrets are encrypted at rest with a key specific to your organization. What reaches the agent depends on the credential type: Tool output masks an environment-variable secret’s current value, but a transformed, truncated, very short or since-rotated value can still appear in output or the transcript. You control what each session gets:
  • An agent’s default vaults apply to its sessions. A session can replace them, or narrow them to specific credentials with credential_refs.
  • A subagent that’s a different agent from the roster gets only its own default vaults, never its parent’s. To share a credential, grant the same vault to both. See Multi-agent.
  • Environment-variable secrets are the exception. They come only from the vaults granted to the root session, and every agent in the session tree, including roster agents, can read them, because the tree shares one sandbox.

Integrations

A developer or admin connects most apps on the Integrations page; some setups require an admin. See Integrations. Connection credentials are never returned by the API or shown in the console. In new sessions, they stay outside the sandbox except for GitHub access used by git and gh: agents see tool calls and results, not the connection credentials. Google Cloud Storage tools can return a signed URL for one object that expires after 15 minutes; sandbox commands can use it, so handle it as a credential. See Integration network behavior for its sandbox host behavior and Google Cloud for the integration. An agent acts as the connected account, within the access selected for its grant. Choose an account whose own permissions fit the work. Some integrations can also be granted through a vault when access needs to vary by session. Disconnecting stops new access through the connection. GitHub and Slack app installations can remain authorized at the service; uninstall the app there if you also need to revoke its access. Already issued access can last until it expires. GitHub access can also reach git and gh in the sandbox; any command the agent runs there may use it unless the deployment restricts sandbox GitHub access. See GitHub access, Connect Slack, and Integrations.

Automations and event sources

  • Deliveries are verified. Slack and GitHub event sources check every delivery’s signature. Recursion manages signing secrets for its own apps; for a custom Slack app, you supply its Signing Secret during setup. The secret never reaches a sandbox. Anyone holding a custom Slack app’s Signing Secret can forge a delivery or approval click as a Slack user, so limit access to trusted maintainers. A custom webhook source that doesn’t verify signatures accepts any request that reaches its URL, so use one only for data that’s safe to act on.
  • Event data is input, not instructions you wrote. An event run’s opening message includes the event as JSON after your prompt. Treat event text, such as a Slack message or an issue body, as untrusted, and grant automation sessions only what their task needs. In an environment with unrestricted internet access, that text reaches a session that can use the open internet.
  • A running session keeps a removed grant until you move it. Removing a grant from the agent publishes a new version, and a session that is already running keeps its version. Move the session to the new version to remove the grant; the session’s events record the move and who asked for it. A session whose trigger set its own credentials keeps them through a move. An environment-variable secret stays in a running sandbox until that sandbox is replaced. Rotating it in the vault doesn’t revoke it: a running session that still holds the credential receives the new value from its next step. To cut a running session off, revoke the secret at its provider and delete the credential (or its vault); the sandbox keeps only the revoked value.
  • Moving a session can add access. A move gives the session the vaults and credentials the new version’s defaults add, so it needs both create and update access, whether you send it through the API or an agent sends it through the Recursion MCP tools. Moving all of an agent’s sessions with startAgentSessionUpgrade needs the same access.
  • Automations run a pinned agent version. Removing a grant from the agent doesn’t reach an automation until you move it to the new version.
  • Runs are recorded. Every run keeps its frozen configuration, trigger, event, and opening message, including after the automation is deleted. A webhook run records only the sender’s own headers.

Data handling

  • Sessions keep their history. Transcripts, events, sandbox state, and outputs are kept on the server so sessions can resume. Session messages and events are encrypted at rest with your organization’s key. Because of this server-side state, Managed Agents can’t be used for workloads that require Zero Data Retention or HIPAA BAA coverage; see the notice on the overview.
  • Files. Files you attach to a session and the deliverables agents save stay in your organization, in the session’s Files tab. See Files.
  • Deleting a session isn’t erasure. Deleting stops the session, stops the sandbox it owns, and removes it from lists and reads, but the transcript is retained. The sandbox’s workspace files stay until the retention period ends (the longer of the sandbox’s stopped retention, by default about six hours for the session’s sandbox and about two days for its named sandboxes, and 14 days for saved copies, both counted from the stop, plus up to a day: about 15 days by default and at most about 30 days), unless the session is purged, which erases them immediately, along with the copies Evaluations of the session made. A copy made before Managed Agents tagged Evaluation copies, or by an earlier Managed Agents version during a rollback, is erased by that Evaluation’s own purge or retention instead (within the same retention period, counted from that copy’s stop). It can’t be undone through the API. A thread, or a sub-agent that shares its requester’s sandbox, works in a sandbox another session owns; that sandbox stays until that session is deleted. A named sandbox that failed (crashed or was evicted), and a session’s own compute that failed when the delete’s stop never reached it, are not stopped by a delete, so their files stay until a purge.
  • Secrets stay out of history when you use vaults. Never put a secret in a system prompt, message, metadata, environment env_vars, or a file. Those values are stored with the session or environment and returned by reads.
  • Setup scripts. External organizations use a current published template. Internal organizations with Bash access can supply custom scripts. See Published setup requirement.
  • Failure messages are sanitized. A session’s failure.message never contains raw provider responses or credentials, and setup-run stderr_tail is redacted and limited to 2 KiB.

Your responsibilities

  • Grant each session only the vaults and credentials its task needs, and each agent only the apps and tools its work needs.
  • Keep environments on No access, or on specific allowed destinations, unless the task needs the open internet.
  • Review what an agent produces before you merge, deploy, or send it.
  • Rotate credentials and API keys regularly, and revoke them at once if you suspect exposure.
  • Treat anything an agent can read as something it might print.

Next steps

Vaults

Store credentials and grant them to sessions.

Environment reference

Configure network policy, compute, and lifecycle.

API keys

Scope, rotate, and revoke keys.

Organizations and roles

Decide who can do what.