Enclave 1.0 hides API keys from agents, but not the OAuth login at first launch
The Eclipse Foundation’s Enclave 1.0 runs sessions of Claude Code, Codex and other coding agents in containers. With restricted networking, the agent sees API keys only as placeholders. The OAuth login made at first launch remains unprotected, however.
The Eclipse Foundation has released Enclave 1.0 as open source under the MIT licence, heise online reported on 23 November 2026.
Enclave starts each agent session in its own Docker or Podman container. At first, the agent sees only the project directory and any directories the user has explicitly shared. The home directory and the SSH agent are not mounted by default. Outbound traffic passes through a gateway, which lets through only domains on an allowlist and logs its decisions.
According to Enclave’s documentation, with restricted networking the agent receives an API key and certain tokens only as a placeholder, a substitute value that changes with each session. The gateway swaps in the real value only in HTTPS requests to the hosts for which the credential is declared. This protects, for example, Claude’s CLAUDE_CODE_OAUTH_TOKEN when it is supplied as an environment variable.
The documentation says the protection does not cover logins stored in a file or renewed automatically. These include, heise reported, the OAuth login that many agents request on first launch. Enclave stores it on the host machine and mounts it into the container. Credentials therefore stay out of the agent’s reach only when they are supplied as protected environment variables.
Nor does the container fully separate the agent from the host. By default, the agent can write to the project directory and can therefore change files directly on the host. It can also create Git hooks that run during later Git commands outside the container. Mounting the project read-only with --project-mount readonly prevents this.
Enclave’s developers state in their security guidance that the sandbox is not a watertight defence against container escape, heise reported. Docker’s Sandboxes is based on a very similar idea, but isolates each agent in its own lightweight virtual machine (MicroVM). The allowlist limits only where the agent connects, not what it sends. The documentation does not recommend giving the agent an SSH key, because the key lets the agent write to systems outside the sandbox and Enclave cannot restrict its use. SSH traffic to port 22 also bypasses the gateway and is not logged.
Enclave supports Claude Code, Codex, Copilot, OpenCode, the Pi agent and Theia IDE. It runs on Linux, macOS and WSL2 and requires Docker in rootful mode or Podman. Binaries and Ubuntu and Fedora packages are available on GitHub, but they are not signed.
Read more: How an agent works · Agent map