Secrets for AI coding agents
Give AI agents your secrets without pasting them into the chat.
envshed run puts the values into the process the agent starts. Where a value would appear in the output, it prints [ENVSHED:KEY_NAME].
No card required. The free plan covers 2 people and 3 projects.
npx envshed@latest init- AES-256-GCM at rest
- Audit log with hash chaining
- Security ›
$ envshed run --redact -- printenv DATABASE_URL STRIPE_SECRET_KEY marbleox / marble-api / development ✓ Loaded 12 secrets Masking 12 secret values in output, 0 too short or common to mask. Output is piped, so the command may drop colors. [ENVSHED:DATABASE_URL] [ENVSHED:STRIPE_SECRET_KEY]
This is real envshed run output. Inside Claude Code, masking is on without --redact.
Demo repository: envshed/agent-demo ›- MCP
No values over MCP
Agents list keys and see which ones are missing. They can ask a person to fill one. No tool returns a secret value, and no tool has a field for one.
- run
Masked output
envshed run replaces each value with
[ENVSHED:KEY_NAME]in stdout and stderr. - OIDC
OIDC in GitHub Actions
The job proves its repository id. It gets a read-only session that lasts one hour at most.
Get started
Three commands to your first secret
Sign in
$ npx envshed@latest login ✓ Logged in successfully.
Opens the browser to approve this device. The first sign-in creates your account.
Link this folder
$ npx envshed@latest init ✓ Created .envshed.json
Pick or create the organization, project and environment. init writes .envshed.json. In a monorepo, it maps each workspace.
Run with your secrets
$ npx envshed@latest run -- npm run dev ✓ Loaded 12 secrets
Values go into the process, not onto disk. For a tool that reads a file, envshed pull writes a .env. To keep the CLI installed, run npm install -g envshed.
No card required. The free plan covers 2 people and 3 projects.
Full quickstart in the docs ›How it works
Agents get key names. Processes get values.
A value an agent sees ends up in its transcript and at the model provider. Envshed puts values into the environment of the command the agent runs. The agent gets key names and the state of each key. It can also ask a person for a missing key.
// list_secret_keys · marble-api · production { "key": "DATABASE_URL", "status": "set" }{ "key": "STRIPE_SECRET_KEY", "status": "set" }{ "key": "OPENAI_API_KEY", "status": "placeholder" }{ "key": "SENTRY_DSN", "status": "missing" }// request_secret · SENTRY_DSN { "status": "pending", "url": "https://app.envshed.com/..." }
$ envshed request SENTRY_DSN --reason "errors in staging" ✓ Requested SENTRY_DSN. Waiting for SENTRY_DSN... ✓ SENTRY_DSN is ready. The value was not printed.
Tool names and CLI lines are the real ones, from the MCP server and envshed request docs.
envshed run
Puts values into the process the agent starts. With --redact, stdout and stderr show
[ENVSHED:KEY_NAME]instead of the value. Inside Claude Code, masking is on by default.MCP server
Lists organizations, projects, environments and key names with the state of each key. No tool returns a secret value, and no tool has a field for one. The server is available on every plan.
Secret requests
When a key is missing, the agent calls request_secret. A person enters the value in the dashboard. The agent only learns that the key is ready.
Agent sessions
envshed agent session gives an agent read-only access to one environment for a set time, up to 24 hours. You can limit it to chosen keys. The server enforces these limits. Every read goes to the audit log under the agent's name.
GitHub Actions with OIDC
envshed run --oidc signs in with the job's ID token. The policy matches repository_id and repository_owner_id. Envshed refuses pull_request_target, issue_comment and workflow_run. The session lasts one hour at most. Output is masked by default.
envshed scan
Searches the Claude Code history on your machine for vault values and known token formats. It reports the key, file and date. Each vault value it finds marks that secret as exposed. It never prints the value.
Connect Claude Code
claude mcp add --transport http envshed https://app.envshed.com/api/mcp
Limits
What Envshed guarantees, and what it does not
Masking and the MCP server reduce accidental leaks. They are not a barrier against an agent with a shell.
What the MCP server does not protect against ›What Envshed enforces
- No MCP tool returns a secret value or has a field for one.
- A machine token or an agent session reads only its environment and keys. The server refuses the rest.
- An OIDC session needs the policy's repository_id and repository_owner_id. It ends after one hour at most.
- Envshed writes every MCP call and every agent read to the audit log, with the client name or the token id.
What Envshed does not stop
- An agent with a shell can read the values envshed run injects. A command that transforms a value or writes it to a file gets past the mask. envshed secret get works with the access of the agent's login.
- A person can still paste a value into the chat.
- Key names, and the fact that a key exists, reach the model's context.
- Whoever holds a token has its access until someone revokes it or it expires.
For the team
What goes wrong when .env files travel by chat
Secrets pasted in Slack
API keys sit in chat history anyone can search.
Envshed stores values encrypted, with access per organization, project and environment.
A new hire waits days
Someone has to find and send every .env file.
Invite them to the organization. Then envshed pull writes the values they can read.
"Works on my machine"
Every laptop has a slightly different .env.
Per-user overrides change a value for you only. The shared value does not change.
Nobody knows who changed it
Production broke after an edit. Nobody knows who made it, or when.
The audit log records who changed what and when. Version history lets you roll back.
The same URL in five files
Copies drift apart, and one of them is wrong.
Define the value once. Other keys and environments link to it or reference it.
Keys expire at 3 AM
A third-party key runs out and nobody was warned.
Set an expiry date. The dashboard shows a warning before and after it.
Built for teams
See which environments have each key, and which lack it.
Organizations hold projects. Projects hold environments. Compare a key across environments. Fill a gap with the value from another environment. Keep your own local value without touching the shared one.
- Org roles are owner, admin and member. Project roles are admin, editor and viewer.
- Per-user overrides and placeholders for personal keys
- One .envshed.json at the repo root maps every workspace
- Version history, snapshots and rollback per environment
| Key | Development | Staging | Production |
|---|---|---|---|
| DATABASE_URL | ••••••••••Override | •••••••••• | •••••••••• |
| REDIS_URL | •••••••••• | ••••••••••Linked | ••••••••••Linked |
| STRIPE_SECRET_KEY | Placeholder | •••••••••• | •••••••••• |
| SENTRY_DSN | •••••••••• | •••••••••• | Fill value |
| OPENAI_API_KEY | •••••••••• | Fill value | •••••••••• |
- DATABASE_URL••••••••••Override••••••••••••••••••••
- REDIS_URL••••••••••••••••••••Linked••••••••••Linked
- STRIPE_SECRET_KEYPlaceholder••••••••••••••••••••
- SENTRY_DSN••••••••••••••••••••Fill value
- OPENAI_API_KEY••••••••••Fill value••••••••••
Illustration of the dashboard. Values are always masked. A missing value shows Fill value, as in the app.
Integrations, live and planned
Five integrations work today. Eight more are on the roadmap. Bitbucket Pipelines waits for requests: email us if you need it.
- GitHub ActionsLive
- DockerLive
- Node.js SDKLive
- CLI (any shell)Live
- CoolifyLive
Planned: Vercel, GitLab CI, Python SDK, Netlify, CircleCI, Terraform provider, AWS Secrets Manager, Kubernetes (ESO), Bitbucket Pipelines (email us to ask for it). See the roadmap ›
From the founder
We built Envshed for our own team first. If something breaks or the docs miss the mark, email me.
Encrypted at rest.
Envshed encrypts each value with AES-256-GCM, with its own IV and tag.
Free for 2 people.
The Developer plan covers 2 members and 3 projects, with no card.
One file per repository.
A .envshed.json at the repo root maps every workspace of a monorepo.
Pricing
$5 per user. No sales call.
Start free. Upgrade when you pass 2 people or 3 projects. Paid plans start with a 14-day trial.
Developer
For one or two people.
$0forever
Start free- Up to 2 members
- Up to 3 projects
- Unlimited secrets and environments
- CLI, API, MCP server
- Service tokens, webhooks, audit log
- For teams
Team
For teams of 3 people or more.
$5per user / month
Start 14-day trial- Unlimited members
- Unlimited projects
- Everything in Developer
- 14-day free trial
Business
For organizations that sign in with SAML SSO.
$9per user / month
Start 14-day trial- Everything in Team
- SAML SSO (Okta, Entra ID, Google Workspace)
- Priority support
No charge during your 14-day trial on paid plans.
Straight answers
What your security reviewer will ask
Who at Envshed can see my secrets?
Envshed is not a zero-knowledge vault. It encrypts values at rest with AES-256-GCM. Envshed keeps the key in production infrastructure, not on laptops. If you need client-side encryption, email contact@envshed.com before you sign up.
What if Envshed is down?
A .env you already pulled keeps working. New pulls and runs need the API until we are back.
Can I leave?
envshed pull --format env writes a .env with your values in plaintext. Exporting has no fee and needs no ticket.
SOC 2?
Envshed is not SOC 2 certified. The security page lists the controls in place today.
Run your first agent with Envshed
The Developer plan is free for 2 people and 3 projects, with no card. Sign in, connect Claude Code to the MCP server and run a command through envshed run.