Skip to content
Warden 2.0 Explore the preview

Open source / MIT licensed

Give AI tools only the access they need.

Warden is a local sandbox for AI tools and MCP servers. Review packages before installing and set explicit permissions for files, networks, and secrets.

> npm i -g warden-sandbox-cli@beta
policy.yamlExample policy
command: ["/bin/cat", "./data/notes.txt"]
filesystem:
  read: ["./data"]
  write: []
network:
  allow: []
env:
  allow: []
warden run --policy ./policy.yaml

Start with the Warden 2.0 preview

Sandbox a local tool

Write a policy for the files, network destinations, and environment variables your command needs.

Run a tool with a policy

Try Autopilot for an offline task

In the Linux preview, approve an installed tool and run it in a read-only workspace without writing YAML.

Run the Autopilot quickstart

Review npm packages before installing

Install Guard checks the release age and looks for install hooks and native build metadata. With --strict, missing age metadata blocks the install too.

Dependency scripts stay disabled. An exact name@version allowlist entry can authorize a reviewed package’s hooks in a separate sandbox with network access denied.

Read the Install Guard guide
Install GuardStrict npm example
warden guard npm install [email protected] --output ./reviewed-npm --strict

Use a new output directory and a build that includes Install Guard.

Watch a two-hour-old release get blocked

Warden Autopilot preview

The Linux development preview detects project markers and installed tools. Approve an installed program for a project and Warden generates a read-only, offline policy without a YAML file. You choose when to run it and which arguments to pass. Edit mode previews changes and asks again before applying them to the original project.

Onboarding and native checks, each
5/5
Project detection
6.7 ms
Protected file read
79.5 ms

Tested with a development build on Linux amd64 with a Ryzen 5 7430U on November 24, 2026. Timings are medians of 10 fixture runs. The same read took 0.9 ms directly. Discovery ran no project scripts.

Claude Code and the direct Codex binary passed offline version checks. The Codex and OpenCode shell wrappers failed to launch, and the direct OpenCode binary could not resolve a home directory. Cloud-backed coding sessions were outside the benchmark.

Try the Autopilot quickstart

Define what tools can access

Local agents and MCP servers inherit the permissions of the user who starts them. With Warden, you declare access in a policy and review decisions in the audit log.

Filesystem
Share specific paths for reading or writing and keep the rest of your files private.
Network
Allow the destinations a tool needs and block connections to other hosts.
Environment
Pass selected environment variables without exposing the whole shell.
Runtime limits
Set resource limits and timeouts for sandboxed processes.
Walk through your first policy

Same tool. Smaller boundary.

In this example, the policy grants access to source files and one API. The sandbox blocks the other requests.

Without Warden
RequestResult
Read ./srcReadable
Read .envReadable
Connect to api.github.comReachable
Connect to api.openai.comReachable
With Warden
RequestResult
Read ./srcAllowed
Read .envDenied
Connect to api.github.comAllowed
Connect to api.openai.comDenied
Watch the Filesystem MCP demo

Keep credentials out of the agent workspace

Give Claude, Codex, OpenCode, or another local coding tool a temporary project where selected secrets are replaced with placeholders. Review the sanitized diff before any edits reach your real project.

Read the workspace guide
agent-policy.yamlReview required
agent:
  workspace: ./project
  redaction:
    apply: review
    env: [OPENAI_API_KEY]
    files:
      - path: .env
        format: dotenv
        fields: [DATABASE_URL]

See how Warden is verified

Warden publishes compatibility fixtures, sandbox proof harnesses, and platform limitations. Verification maturity varies by operating system.

Browse recorded test results

Run Warden on your machine

Warden uses OS-native sandboxing and runs locally.

Linux
Ubuntu, Debian, Fedora, and more
macOS
macOS 13+ on Apple Silicon
Windows
Windows 11 x64
Docker
Docker or Docker Compose
Check platform requirements

Start with one local tool

Choose your client, install Warden, and give your tool only the access it needs.

Find your setup guide