Credential proxy
Keep your API key outside the VM.
Your agent sends a stand-in credential. The proxy substitutes your API key before forwarding the request.
Your agentInside the VM
VM boundary
Credential proxyOutside the VM
OpenAIDestination
(0.0) Overview
Sandboxes for
agents and humans. Persistent VMs with a credential proxy and network controls, locally or in the cloud.
Install the Codewire CLI using https://codewire.sh/docs/quickstart.md. Verify that cw runs, then ask whether I want my first sandbox on this machine or in the cloud.
Or install it yourself
curl -fsSL https://get.codewire.sh | sh(0.3)
Safety
Codewire VMs give you control over what your agent can reach. Use network policies to choose which hosts and ports it can connect to. The credential proxy adds the credentials those services need to outgoing requests, keeping the underlying keys outside the sandbox.
Your agent
Credential proxy
Your agent sends a stand-in credential. The proxy substitutes your API key before forwarding the request.
Your agentInside the VM
VM boundary
Credential proxyOutside the VM
OpenAIDestination
Network egress control
Set the destinations your agent can reach. Codewire checks the hostname and port before connecting.
Example custom policy on a local VM
registry.npmjs.org:443pastebin.com:443AllowedRefusedIllustrations: a managed API-key request and a custom network policy on a local VM. For a hosted sandbox, cw info NAME shows its policy and enforcement status. Personal sign-ins and application secrets have different delivery rules.
(0.75)
Your tools
Connect a GitHub repo and give your agent the application secrets it needs to run your project. Work from your editor, the CLI or an SDK.
Create, run, and attach to Codewire sessions from Rex’s command palette.
Get the Rex pluginGive each Orca workspace its own local VM or cloud sandbox.
Get the Orca pluginRun Claude, Codex, Cursor, Kimi, Pi, Gemini CLI, or Amp inside a persistent Codewire session, wherever your sandbox lives.
Run your agentGive your pi-durable app a persistent sandbox for its code and state.
Use pi-durable(1.0)
Sessions
Each sandbox has its own Linux VM. Give Codex 8 GB to fix an auth bug and Claude Code 32 GB to work on the API.
| No. | Session | Agent | Runs | Memory |
|---|---|---|---|---|
| 1.1 | auth | codex | local | 8 GB |
| 1.2 | api | claude | cloud | 32 GB |
| 1.3 | billing | claude | cloud | 16 GB |
| 1.4 | docs | codex | local | 2 GB |
| 1.5 | web | codex | cloud | 8 GB |
| 1.6 | infra | claude | cloud | 16 GB |
(2.0)
Local + cloud
Local
cw create --local --name my-app --path . prints: Environment my-app created, local VM, 2 vCPU, 4 GiB RAM, 20 GiB disk. cw run claude --in my-app prints: Started Claude Code in my-app/claude, local VM.
Cloud
cw create --name my-app --image workspace prints: my-app, cloud VM, 2 vCPU, 8 GiB RAM, 10 GiB disk. cw run claude --in my-app prints: Started Claude Code in my-app/claude, cloud.
On your own Linux machine or Apple Silicon Mac, each sandbox is a VM isolated by Cloud Hypervisor or Virtualization.framework, with no account needed. In the cloud, it is a hosted VM billed per second. The commands are the same at either end.
(3.0)
Encrypted mesh
Agents in separate sandboxes send messages to each other through Codewire’s built-in mesh relay. One agent can ask another to review a change, and the reviewer can reply with its findings.
Traffic · last six messages
(4.0)
Isolation
Every sandbox is its own VM with its own guest kernel, inside a hypervisor boundary. When source code, credentials or customer data need more, the hardware can encrypt the sandbox's memory while it runs.
CPU, memory and disk. Confidential sandboxes run on AMD SEV-SNP processors.
Your machine, or ours. It runs the hypervisor and stays outside every sandbox.
Cloud Hypervisor on Linux, Virtualization.framework on macOS. One VM per sandbox.
One per sandbox. Never shared with the host or another sandbox.
The agent and your code. auth · codex · 8 GB
Each sandbox's memory is encrypted with its own key. The host kernel and hypervisor only see ciphertext, and cw report auth verifies it with the processor's attestation.
*In private alpha, access available upon request.
(5.0)
Program it
SDKs
from codewire import Codewire cw = Codewire() env = cw.environments.create( name="api", repo_url="https://github.com/acme/api", image="workspace", wait=True, ) result = env.exec(command=["pytest", "-q"]) port = env.create_port(port=3000, label="app") # example.py
(6.0)
Open source
Run Codewire on your own machine for free. The CLI, dashboard, control plane and SDKs are open source.
AGPL-3.0
The control plane, web dashboard and CLI.
MIT
The SDKs for TypeScript, Python and Go.
Per second
Pay for hosted compute while sandboxes run. No plans, no seats.
| Feature | Codewire | Cloud-only sandboxes |
|---|---|---|
| On your own machine | Yes | No |
| In the cloud | Yes | Yes |
| Session-to-session mesh | Encrypted, private | Varies |
| Source code | AGPL-3.0 · MIT | Closed |
Install Codewire to run locally without an account, or request access to the hosted beta.
Request cloud accessInstall · Linux and macOS
curl -fsSL https://get.codewire.sh | sh