(Sandbox infrastructure)

For agents and their humans

Local · Cloud · Open source

Cloud private beta

(0.0) Overview

Sandboxes for
agents and humans.
Persistent VMs with a credential proxy and network controls, locally or in the cloud.

Construction
One VM per sandbox
Runs on
Linux, macOS, cloud
Network
Encrypted private mesh
Licence
AGPL-3.0 and MIT
Where
Local free, hosted available

Install Codewire

Read the install prompt

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.

Claude · Codex · Cursor · Kimi · Pi · Gemini CLI · Amp

Local VMs need no account

Or install it yourself

curl -fsSL https://get.codewire.sh | sh

(0.3)

Safety

Choose what your
agent can access.

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.

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

Made-up values. The auth header changes at the proxy; your API key never enters the VM.

Network egress control

Choose where your sandbox can connect.

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:443AllowedRefused
  • Your agentInside the VM
  • Network proxyOutside the VM
  • InternetDestination
  1. Request a connection

    The agent asks the proxy to reach the destination.

    registry.npmjs.org:443pastebin.com:443
  2. Check the destination against your rules

    The hostname and port must match an allow rule.

    Policy npm-only rev 1Allow registry.npmjs.org:443Refused: pastebin.com:443 by npm-only rev 1 (name not allowed)
  3. Open a separate connection

    The proxy connects to the allowed destination.

    registry.npmjs.org:443pastebin.com:443Not opened
  4. Receive the destination’s response

    The destination sends data back to the proxy.

  5. Relay the response to the agent

    The proxy sends the data back over the first connection.

Only an allowed destination gets a connection. Responses return through the proxy.

Illustrations: 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

Compatible with
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.

  • Rex

    Create, run, and attach to Codewire sessions from Rex’s command palette.

    Get the Rex plugin
  • Orca

    Give each Orca workspace its own local VM or cloud sandbox.

    Get the Orca plugin
    • Claude

    Your agents

    Run Claude, Codex, Cursor, Kimi, Pi, Gemini CLI, or Amp inside a persistent Codewire session, wherever your sandbox lives.

    Run your agent
  • pi-durable

    Give your pi-durable app a persistent sandbox for its code and state.

    Use pi-durable

(1.0)

Sessions

Size each sandbox for the task.

Fig. 1.1 · Six VMs, two locally, four on the cloud.

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.SessionAgentRunsMemory
1.1authcodexlocal8 GB
1.2apiclaudecloud32 GB
1.3billingclaudecloud16 GB
1.4docscodexlocal2 GB
1.5webcodexcloud8 GB
1.6infraclaudecloud16 GB

(2.0)

Local + cloud

Choose where your sandbox runs.

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

Agent-to-agent messaging.

Fig. 3.1 · Independent. Each sandbox is wired only to you.

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.

Auto

Traffic · last six messages

    (4.0)

    Isolation

    Choose your isolation.

    Fig. 4.1 · One sandbox, taken apart. Its own session, kernel and VM; three shared layers below.

    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.

    4.1Hardware

    CPU, memory and disk. Confidential sandboxes run on AMD SEV-SNP processors.

    4.2Host kernel

    Your machine, or ours. It runs the hypervisor and stays outside every sandbox.

    4.3Hypervisor

    Cloud Hypervisor on Linux, Virtualization.framework on macOS. One VM per sandbox.

    4.4Guest kernel

    One per sandbox. Never shared with the host or another sandbox.

    4.5Session

    The agent and your code. auth · codex · 8 GB

    4.6Encrypted memory

    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

    Create a sandbox from code.

    SDKs

    • TypeScript
    • Python
    • Go
    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

    Open source, from CLI to control plane.

    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.

    FeatureCodewireCloud-only sandboxes
    On your own machineYesNo
    In the cloudYesYes
    Session-to-session meshEncrypted, privateVaries
    Source codeAGPL-3.0 · MITClosed

    Run your first sandbox.

    Install Codewire to run locally without an account, or request access to the hosted beta.

    Request cloud access

    Install · Linux and macOS

    curl -fsSL https://get.codewire.sh | sh