When a session uploads
A session uploads only when it starts withOUTERLAYER_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
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
full by default. No setting in the dashboard or the API changes it.
Keep a repository off the server
Theredacted 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=valuelines whose name holds a credential word- quoted values assigned to a name such as
api_key,secret,tokenorpassword - payment card numbers
- Home directory. A home-directory path is collapsed to
~. - Local identity. Your OS username, the
user.nameanduser.emailin your global git config, and your host name become[DEV_USER],[DEV_NAME],[DEV_EMAIL]and[HOST].
- 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
includeorincludeIf, is not replaced. - The scrub reads text. It does not read images, which upload only at the
fulltier.
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
redacted tier, on a machine with no launched sessions:
--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
@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 demoorouterlayer demo recorddownloads a voice pack, about 400 MB. It comes fromhuggingface.coandregistry.npmjs.organd goes into~/.outerlayer/voice/.--no-narrationdownloads nothing. - When a repository’s git hooks are missing, the session-start hook runs that repository’s own
preparescript. That script can reach the network.
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/kvmpath, 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.
- 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
openairoute counts the requests, like every other route. - npm. When OuterLayer names a higher CLI version, the runner fetches
@outerlayer/cliwith no credentials. It then runsnpm installandnpm audit signatureswith this user’s npm configuration, including any token in~/.npmrc. Setrunner.autoUpdatetofalseto 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.
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_WORKvalue. 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-sessioncall that could not reach OuterLayer. The next session start tells the agent.
~/.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
- Security and privacy says where each privacy fact lives.
- Dashboard analytics and error reports covers what the dashboard sends from your browser.
- Platform admin access covers what OuterLayer staff can do in your organization.
- Build isolation and limits covers how a build host isolates builds.