The safe way to let coding agents run

Run them on your laptop, a server or a VM, sandboxed natively or in Docker. Set rules once for files, APIs and MCP. Your agent uses your credentials without ever seeing them.

Works with Claude Code, Codex and others.Open-source CLI. Set up in minutes.

$curl -fsSL https://stashbase.dev/cli/install.sh | bash

Free forever: sandboxing, the local proxy and unlimited profiles.

1.0Secure

Give agents access, not your credentials

Claude Code and Codex hold a placeholder. Every request goes through the proxy, which adds the real key only when your profile allows it.

Agent
Sandbox

Block .env so the agent can’t read your local secrets.

On your phone? Copy the steps now and run them later on macOS or Linux.

1. Install the CLI

curl -fsSL https://stashbase.dev/cli/install.sh | bash

2. Run stashbase agent init local, then paste into .stashbase/agents/local.toml

egress_hosts = [
  "api.anthropic.com",
  "platform.claude.com",
]

[filesystem]
deny_read = [".env"]
deny_write = [".env"]

3. Run your agent

stashbase agent run --profile local -- claude

The agent cannot read the .env file in your project.

1.1 A profile is the policy

Let it call your real APIs

GitHub, Stripe, Linear: the agent gets a placeholder, and the proxy adds the real key only for hosts you approve.

Let it run without babysitting

Approve less. The sandbox blocks everything outside your rules, and the agent can’t switch it off.

Let it work in your actual project

Full access to your code and packages, while .env files, keys, and certificates stay unreadable. Registries never see a credential.

1.2 Where the key is added

Local proxyFree

Runs on your machine for the session. Keys come from a local file, a Stashbase project, or both.

$ stashbase agent run --profile claude -- claude

Remote proxyPro & Scale

Keys are added on Stashbase servers, so they never reach your laptop or VM.

$ stashbase agent run --remote --profile claude -- claude

2.0Run

Run coding agents wherever you work

Start Claude Code or Codex on a VM for agents, your laptop or your own server. Same command, same profile, same sandbox and proxy on each.

Managed. Keeps working when you disconnect. 2 vCPU · 8 GB RAM · 50 GB SSD

$ ssh my-vm$ stashbase agent run --profile claude -- claude> Debug the Stripe integrationreading webhooks/stripe.ts …Connection to my-vm closed.# an hour later$ ssh my-vm✓ signature check fixed, webhook tests pass
Sandboxfree on every host
  • nativeOS-level, nothing to install
  • dockerA container that sees only your project
Works with your setup

Not a replacement for the tools you use. Put stashbase agent run in front of the agent command and keep everything else.

  • Terminal
  • tmux
  • screen
  • zellij
  • SSH
  • Herdr
  • Orca
  • Rex

2.1VMs for agents

A dev machine for every member

Ready with zero setup: Claude Code, Codex and the Stashbase CLI come preinstalled, so your agents run with the same profiles, sandbox and credential proxy as on your laptop.

Your virtual machine2 vCPU · 8 GB RAM · 50 GB SSD
$ ssh my-vm# resumed in 13s · files from yesterday intact# preinstalled: claude, codex, stashbase, docker, node, python ...$ docker compose up -d postgres$ stashbase agent run --profile claude -- claude> Debug the Stripe integration# close the app, the agent keeps going✓ webhook signature fixed, branch pushedidle, machine suspended · files kept
  1. 08:40· running

    Connect from anywhere

    SSH in from anywhere, use the Stashbase CLI, or open the browser terminal in the dashboard.

  2. 08:41· running

    Start working, nothing to set up

    Profiles, sandboxing and credentials work just like on your laptop. Docker, Node and Python are already there.

  3. 11:30· suspended

    It suspends when the work is done

    After 30 minutes idle it suspends itself with your session kept, so it never burns hours overnight.

  4. Next day· running

    Pick up where it left off

    It resumes in about 13 seconds, with your files and session where you left them.

10 free hours to try. Pro includes 25 machine hours and 25 GB egress per member, Scale 50, pooled across the workspace. Extra usage stays off unless the owner turns it on.

3.0Review

See every request your agent made

The audit log shows which requests got the key and which were stopped. It's local, and it holds metadata only, never values.

Audit logprofile claude
14:01:52filesystem_deniedread .env
14:02:11injectedPOST api.stripe.com/v1/payment_intents
14:03:40host_deniedPOST collector.example/upload
Agent Proxy blocked 1 request in this run. Review: stashbase agent allow --session ags_...

3.1Secrets

Group secrets for your apps and your agents

Group secrets however you work. Keep agent secrets apart from your app's, and give an agent an app secret only when a task needs it, like STRIPE_SECRET_KEY for debugging payments.

app
api-developmentWhat the API runs with
  • DATABASE_URLapp
  • REDIS_URLapp
  • STRIPE_SECRET_KEYappagent · via profile
agentsTokens only agents use
  • GITHUB_TOKENagent
  • LINEAR_API_KEYagent
agents-databaseRead-only data access
  • READONLY_DATABASE_URLagent

Your app

Loads api-development at runtime, so there is no .env file on disk and nothing to pass around by hand.

Your agent

Uses its own environments, plus any app secret its profile grants. Always as a placeholder.

Your team

Roles and teams decide who can read or change each environment.

Let your agents do more, starting today.

Sandboxing, proxy access, and unlimited profiles are free forever. Start with one project and bring in your team when you’re ready.