Skip to main content
OuterLayer reads the session files your coding agents write to disk. Reading them sends nothing. A session uploads only when you start it for a work item. This page lists what the CLI and a runner send, and what OuterLayer removes first.
On your machine, your agent writes a session file. If the session was not started for a work item with OUTERLAYER_WORK, it never leaves the machine. If it was, secrets and your local identity are always removed, then your chosen tier decides how much is sent: full sends everything, redacted drops message text, thinking and tool input and output, metrics sends only counts and costs. On OuterLayer, an organization limit can remove more, and secrets are removed again before it is stored.On your machine, your agent writes a session file. If the session was not started for a work item with OUTERLAYER_WORK, it never leaves the machine. If it was, secrets and your local identity are always removed, then your chosen tier decides how much is sent: full sends everything, redacted drops message text, thinking and tool input and output, metrics sends only counts and costs. On OuterLayer, an organization limit can remove more, and secrets are removed again before it is stored.

When a session uploads

A session uploads only when it starts with OUTERLAYER_WORK set to a work item’s number. Every other session stays on the machine, however you run sync. The start is recorded for the session, not for one run of it. If you resume an earlier session with OUTERLAYER_WORK set, the whole session uploads, including its earlier turns. OuterLayer reads Claude Code sessions. When opencode is on your PATH, each sync also exports your OpenCode sessions to ~/.outerlayer/agent-sessions/opencode/. A dry run exports nothing. The exports stay on your machine. Only a session started for a work item uploads. Codex keeps its sessions in ~/.codex/sessions/, and sync reads them from there. A session uploads when you start Codex with outerlayer codex and OUTERLAYER_WORK. It sends the same data as a Claude Code session. That is the model, the token counts and the cost. At the tier you chose, it also sends the messages and the tool calls. sync reads rollouts from the Codex version that the CLI is tested with, and skips the rest. A runner starts the session of a schedule automation’s run with OUTERLAYER_RUN set to the run’s id. That session uploads the same way. outerlayer emit refuses to run inside a session that was not started for a work item. Three parts of the CLI send data about a session: The repository’s name is the checkout’s remote, such as github.com/owner/name. It leaves at every tier, because the tier applies only to session uploads. The session-start hook also asks OuterLayer whether a control plane governs the repository. That request names the repository. The hook can send it for any session in a checkout with a remote, with or without OUTERLAYER_WORK. It needs saved credentials. The CLI keeps the answer in the checkout’s git directory, and asks again 24 hours after a “no”. Set "autoSync": false in ~/.outerlayer/config.json to stop the background sync and the daemon’s uploads. It takes effect without a restart. The hooks still send their requests. The daemon also copies each Claude Code transcript to ~/.outerlayer/raw/ on your machine, so Claude Code’s own cleanup cannot delete it first. The copy is not scrubbed. It never leaves the machine, and it holds at most 5 GiB.

What a launched session contains

At the default tier, full, a session uploads with:
  • prompts, agent messages and thinking
  • tool inputs and outputs, and images
  • file paths, repository and branch names
  • models, token counts per model, speed and input size, and costs
Speed is the provider’s speed tier for a request, such as standard or fast. Input size is a band of the request’s input tokens. A Claude Code session also carries the cost Claude Code reports for the session. Set "tier" in ~/.outerlayer/config.json to choose a lower tier. For one run of sync, use --tier <tier> or the OUTERLAYER_TIER variable. --tier wins over the variable, and the variable wins over the file. The daemon reads the config file only. Two lower tiers strip fields on your machine before anything is sent: A subagent’s description is text that the parent agent wrote, so it leaves only at full. A subagent’s name leaves at redacted and full. A subagent’s type names the kind of agent, such as Explore, and it leaves at every tier. The redacted tier keeps these identifiers:
  • the working directory, repository, branch and commit
  • the control plane’s repository, branch and commit
  • file paths and error signatures
  • the session’s outcome
  • event details, such as hook commands, skill names and pull request numbers
  • warning details
  • the name of each subagent
OuterLayer also applies a ceiling for your organization on the server. If you send a richer tier than the ceiling allows, OuterLayer strips the extra fields before it stores them. The ceiling is full by default. No setting in the dashboard or the API changes it.

Keep a repository off the server

The redacted tier still sends repository and branch names. To keep a repository’s sessions off the server, add repos to ~/.outerlayer/config.json:
exclude wins over include. With include set, a session with no remote is skipped. The filter applies to sync and to the daemon. The config file reference has the pattern rules. The filter has two limits:
  • It limits session uploads only. A session that you start for a work item in an excluded repository still sends the repository’s name with each hook call.
  • A runner ignores it. A build’s sessions upload from any repository the runner builds.

What is scrubbed before upload

The CLI scrubs session content on your machine before it sends it, at every tier. You cannot turn the scrub off.
  • Credentials. The scrub replaces each match of a known format with [REDACTED:<type>]. It matches:
    • API keys and tokens for Anthropic, OpenAI, AWS, GitHub, GitLab, npm, PyPI, Slack, Stripe, Google, Twilio, SendGrid, Vercel, Fly and Supabase
    • OuterLayer API keys and item keys, JWTs, PEM private keys, bearer tokens and cookie headers
    • passwords in URLs, secrets in URL query strings, and Slack and Discord webhook URLs
    • KEY=value lines whose name holds a credential word
    • quoted values assigned to a name such as api_key, secret, token or password
    • payment card numbers
  • Home directory. A home-directory path is collapsed to ~.
  • Local identity. Your OS username, the user.name and user.email in your global git config, and your host name become [DEV_USER], [DEV_NAME], [DEV_EMAIL] and [HOST].
The scrub has these limits:
  • The patterns match known formats, so a credential in an unusual shape can still get through.
  • The match for your OS username and your git name is case-sensitive. A username or host name shorter than four characters is not replaced outside a home path. A git name shorter than three is not replaced.
  • A git identity set in one repository, or pulled in with include or includeIf, is not replaced.
  • The scrub reads text. It does not read images, which upload only at the full tier.
To scrub more, add your own strings or patterns under scrub in the config file. OuterLayer removes credentials again when a session arrives. The same scrub applies to what a runner reports about a build. The code and session output that outerlayer emit finding adds get the credential and home-directory patterns only. Your local identity and your own scrub entries stay in them. Files and text you pass to other commands are sent as you wrote them. That includes outerlayer emit artifact files, outerlayer emit bodies, the text of findings and criteria, and outerlayer work open-pr and outerlayer work comment text.

See it before you send it

It makes no network calls. It prints the destination, the tier, the exact field paths stripped at that tier, image totals, and a row per session for the first twenty. Here it is at the redacted tier, on a machine with no launched sessions:
Add --json to inspect the literal session payloads. The dry run shows the tier your machine applies. OuterLayer applies the organization ceiling on the server, so it does not appear.

Other commands that reach the network

What crosses between your machine, a host, OuterLayer, GitHub and Anthropic. On your machine, the agent session sends its model requests to Anthropic with your own login, and pushes and opens its pull request on GitHub with your gh login. The hooks send OuterLayer the item number, the session id and the repository name, and the CLI sends the pull request number, the launched sessions after scrubbing, and evidence. On a host, every request a build makes goes through the runner. The runner signs its own requests with the host key. The runner sends OuterLayer claims, heartbeats, releases and the runner log, plus the build's sessions, evidence and pull request text, and gets back the item key and repository tokens. It adds the host's Claude credential to the build's model requests to Anthropic, and fetches and pushes on GitHub with tokens limited to one repository. OuterLayer's gateway, through the GitHub App, opens a build's pull request, posts the evidence comment and the OuterLayer evidence status check, and merges from the Work page. GitHub sends OuterLayer webhooks.What crosses between your machine, a host, OuterLayer, GitHub and Anthropic. On your machine, the agent session sends its model requests to Anthropic with your own login, and pushes and opens its pull request on GitHub with your gh login. The hooks send OuterLayer the item number, the session id and the repository name, and the CLI sends the pull request number, the launched sessions after scrubbing, and evidence. On a host, every request a build makes goes through the runner. The runner signs its own requests with the host key. The runner sends OuterLayer claims, heartbeats, releases and the runner log, plus the build's sessions, evidence and pull request text, and gets back the item key and repository tokens. It adds the host's Claude credential to the build's model requests to Anthropic, and fetches and pushes on GitHub with tokens limited to one repository. OuterLayer's gateway, through the GitHub App, opens a build's pull request, posts the evidence comment and the OuterLayer evidence status check, and merges from the Work page. GitHub sends OuterLayer webhooks.
Most commands send only the text and files you pass to them, and the identifiers they need. The identifiers are the factory, the work item’s number, the session id and the repository’s name. The table lists the commands that send more. The README in the @outerlayer/cli package names each command that opens a connection. outerlayer emit finding is the one command outside sync and the daemon that sends session content. Some commands download from other hosts, and send nothing about you to them:
  • The first narrated outerlayer emit demo or outerlayer demo record downloads a voice pack, about 400 MB. It comes from huggingface.co and registry.npmjs.org and goes into ~/.outerlayer/voice/. --no-narration downloads nothing.
  • When a repository’s git hooks are missing, the session-start hook runs that repository’s own prepare script. That script can reach the network.
These paths make no network call:
  • outerlayer daemon --once
  • the daemon’s handling of a session that was not started for a work item
  • the update notice, which reads the newest version from answers the CLI already receives

A build host

A runner sends data to OuterLayer, GitHub, Anthropic, OpenAI, npm and the registries that its image builds pull from. The runner scrubs what it reports with the scrub that session content gets. The scrub removes secrets, not paths, host names or repository names. What the runner sends to OuterLayer:
  • A heartbeat after every poll. The runner’s name, CLI version, state and slots. Also the queues and repository patterns it takes, and its update and disk status.
  • A reason for claiming nothing. When a check of its own stops the runner, the heartbeat adds one reason of at most 500 characters. The runner does not scrub it. It can include the host’s usable memory, the /dev/kvm path, the config file’s path and Docker’s own error text.
  • A claim. The host name, the CLI version and the public half of the host key.
  • A release. The outcome, the stage the attempt ended in, the time the attempt ended, the exit code, a reason, and the last 64 KiB of the runner log. The runner scrubs the reason and cuts it to 200 characters. For a failed Codex build, the reason can hold the error that ended Codex’s run, which Codex printed in the command’s output. The log holds no output of the build’s command. It can hold the last lines that the hook or step the attempt ended in printed, scrubbed. Anyone who can read the work item can read the log with outerlayer work logs.
  • What the attempt ran in. The isolation, the recipe’s source commit and path, the build image’s id, the CLI and agent versions, and who authored the commits. It also holds the hosts the build reached, the names of variables and destinations, and request counts for each route. It lists each connection the tunnel refused, with the host name, the address and the address range. It never holds a token, a value, a header or a body.
  • Judges’ results. Each judge’s id, its result (pass, fail or inconclusive), its judge items and its report. A fail or an inconclusive result has a reason, scrubbed.
  • The build’s sessions and evidence. A build sends its own sessions, its evidence and its pull request’s text to its work item, with the item key. It sends no other session on the machine. The session of a schedule automation’s run uploads the same way.
What the runner sends to other places:
  • GitHub. Git fetches and pushes. A container or microVM build uses tokens that cover one repository each. See Build tokens.
  • Anthropic. Model requests. For a container or microVM build, the runner adds the Claude credential on the way out, and the build never holds it.
  • OpenAI. Model requests of a build that runs Codex. The runner adds the OpenAI API key on the way out, and the build holds only a placeholder. Codex itself makes no other connection. The runner turns off Codex’s update check, analytics, telemetry, plugins and apps in the build’s Codex settings. The openai route counts the requests, like every other route.
  • npm. When OuterLayer names a higher CLI version, the runner fetches @outerlayer/cli with no credentials. It then runs npm install and npm audit signatures with this user’s npm configuration, including any token in ~/.npmrc. Set runner.autoUpdate to false to stop them.
  • Pinned downloads. The first microVM build downloads Firecracker, a guest kernel and a guest helper from github.com. An image build downloads its tools. The CLI pins a SHA-256 hash for each file. Each request sends nothing about the host.
  • Registries. An image build pulls the universal image and packages from their registries. A build in the host’s Docker pulls with the host’s own docker login.
For each container or microVM build, the runner also asks OuterLayer which control plane governs the repository. That request names the one repository. Every request made with the saved runner key is signed with the host key. The signature adds nothing else.

The start-up report

A runner that fails a start-up check before its first heartbeat sends one start-up report. The report holds the host name, the CLI version, the name of the failed check and the error message. The runner removes terminal control codes and secrets from the message and cuts it to 200 characters. A runner that starts normally sends no report. A runner also sends none when another runner already runs on the same config, or when OuterLayer refused its key. Only OuterLayer staff can read the report, in the support console.

Failures you cannot see in the session

Two failures do not show on your screen:
  • A refused OUTERLAYER_WORK value. The value must be a work item’s number and nothing else. The session does not upload. The hook tells the agent so at the start of that session.
  • A work link-session call that could not reach OuterLayer. The next session start tells the agent.
Both are appended to ~/.outerlayer/spool/hook-errors.log.

How long OuterLayer keeps it

OuterLayer deletes agent session records after a retention period. See How long data is kept.

See also