Skip to content

Can Claude Code in the guest hold only a placeholder while the proxy adds the real subscription token?

Answered 2026-10-12: yes for a long-lived token. Decided 2026-10-12: A2, the model only with the event log denied by the host, and the long-lived token as a supported mode for V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.. The decisions and their reasons are in the I60I60 (closed): X01-model-credential: API key mode via the proxySplit from #15 (X01-model-credential) during triage on 2026-10-04. comment that starts Decision (2026-10-12): the four decisions. Source: I60I60 (closed): X01-model-credential: API key mode via the proxySplit from #15 (X01-model-credential) during triage on 2026-10-04., X01-model-credentialX01-model-credential: Model credential via the proxyDoes Claude Code work with a placeholder credential while wb-proxyd injects the real one, for each supported authentication mode, including token refresh?. Changes S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded., S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq…, S15-least-privilegeS15-least-privilege: Least Privilege on the HostThe security design for SEC12-least-privilege: which rights Wraith Box takes on the host, where credentials are held, and how each host process gets only the credentials it needs, for only as long as it needs them. and FR00-indexFR00-index: Functional requirementsWhat Wraith Box must do for the user. (FR01-drop-inFR01-drop-in: Drop-in for claudewb is the single entry point for everything, structured as wb [wb flags] <command> [command args].), in I215I215 (closed): Model API profile and token binding from X01-model-credentialThe X01-model-credential result for a long-lived subscription token (#60, docs/spikes/X01-model-credential.md) changes the specs below.. Follow-up: I220I220 (closed): Cheap image rebuild for a new Claude Code version- Which stage a Claude Code-only rebuild starts from (a sealed earlier stage, a clone of the image before sealing, or another layer), and how that fits sealing and "never updated in place".. API key mode and the browser login are in I15I15 (closed): X01-model-credential: Model credential via the proxyDoes Claude Code work with a placeholder credential while wb-proxyd injects the real one, for each supported authentication mode, including token refresh?.

guest, untrustedClaude Codeplaceholder tokenhostwb-proxydswaps the tokensecret storeinternetmodel APIreal tokenplatform.claude.com, no token1. Datadog log intake2. downloads.claude.ai3. raw.githubusercontent.com

Figure 1. What Claude Code reached in the spike, drawn as it would be in a guest. Solid: the model API on api.anthropic.com, which needs the token, and a reachability check that doesn’t. Red: the three hosts the open decisions are about. In the spike every host was reachable. With SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., a host outside the profile is an unknown destination, and the user is asked about it.

Decision Host and what it does Recommended
1. Telemetry http-intake.logs.us5.datadoghq.com: Datadog log intake, with a key built into Claude Code and without the user’s token. 5 requests. Anthropic’s own event log on api.anthropic.com (/api/event_logging/v2/batch) carries the user’s token, 10 requests Datadog outside the profile, as S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. says today, and telemetry off in the guest. Whether that also stops the event log is assumed, so the event log path is left out of the profile too (A2 below)
2. Updates downloads.claude.ai: the auto-updater fetched the 2.1.296 build in each interactive session, and the plugin marketplace one plugin archive Outside the profile, updater off in the guest. The image sets the version
3. Changelog raw.githubusercontent.com: one GET of Claude Code’s CHANGELOG.md at interactive start Outside the profile

The profile allows the api.anthropic.com paths Claude Code used and platform.claude.com /v1/oauth/hello. The token goes to api.anthropic.com only. The guest sets CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, which is meant to turn off telemetry, error reports and the updater, so Claude Code doesn’t ask for the other hosts (assumed, see Evidence). A sub-choice decides the event log, which is on the same host as the model and receives the token:

As A, plus downloads.claude.ai for the updater and the plugin marketplace. Telemetry stays off.

As B, plus Datadog and raw.githubusercontent.com, with telemetry on.

RequirementA. Model onlyB. Model and updatesC. Everything
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. no secrets in the guestplaceholder onlyplaceholder onlyplaceholder only
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowed hosts are reachabletwo hoststhree hostsa broad content host
SEC07-dep-gateSEC07-dep-gate: Dependency gatePackage downloads (npm, PyPI, Go modules, crates) are refused when the version is younger than a minimum age or has a known vulnerability at or above a severity threshold. downloads pass the dependency gatenothing from outsidebuilds and plugins bypass itbuilds, plugins, any GitHub file
FR01-drop-inFR01-drop-in: Drop-in for claudewb is the single entry point for everything, structured as wb [wb flags] <command> [command args]. Claude Code works as on the hostupdates come with the image, changelog missingchangelog missingas on the host

Decision 4: the long-lived token as a supported mode

Section titled “Decision 4: the long-lived token as a supported mode”

Whether Wraith Box supports a token from claude setup-token as the way a subscription user signs Claude Code in, until I15I15 (closed): X01-model-credential: Model credential via the proxyDoes Claude Code work with a placeholder credential while wb-proxyd injects the real one, for each supported authentication mode, including token refresh? settles the browser login. Recommended: yes, for V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there., bound to api.anthropic.com alone, with these costs written into S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded.:

Details and glossary

The token stays in the proxy, out of the guest. Claude Code only needs a string that looks like a token. The proxy, which runs on the host, sees each request in clear because it inspects TLS, and swaps the placeholder for the token just before it leaves the Mac. A guest that leaks its placeholder leaks nothing that works anywhere else.

What api.anthropic.com serves besides the model. The organization’s limits, remote managed settings (404 here: none set), feature flags, Anthropic’s event log, a bootstrap call that refused this token every time without harm, and the public MCP server registry. Requests to every one of these paths but the MCP registry hold the token. The profile would allow these paths and no others.

Glossary

  • claude setup-token: a Claude Code command that signs in with a subscription once and prints a long-lived token, for use where no browser login is possible.
  • CLAUDE_CODE_OAUTH_TOKEN: the environment variable from which Claude Code reads such a token.
  • Placeholder: a fake value with the token’s prefix and length, which the guest holds instead of it.
  • Profile: the built-in list of hosts and paths wb-proxyd allows for one purpose, here the model API.