Every secret your app needs, one command away.
Stash is a secrets manager for your team: keep API keys and environment variables for dev, staging and production in one encrypted place, and load them into your apps with a single command.
- Encryption
- AES-256-GCM
- CLI
- Windows, macOS, Linux
- Languages
- EN, ES, PT
- DATABASE_URL••••••••
- API_KEY••••••••
- REDIS_URL••••••••
- JWT_SECRET••••••••
- STRIPE_SECRET_KEY••••••••
Stop chasing secrets across chats and files
Environment variables get hard to track once they live in chat messages, shared notes, local .env files and CI settings. Stash keeps them in one place, per project and environment, with clear control over who can see them.
Today wherever someone pasted them
.env filesCI settingsNobody is sure which copy is current, or who still has the production keys.
With Stash one project, every environment
- Single source of truth for each environment
- Role-based access for safer collaboration
- The same command locally and in CI
How it works
Create the project in the web app, then use the CLI wherever your code runs.
Create a project
It starts with dev, staging and prod environments. Add your secrets in the web app or import a .env file.
Bring in your team
Create an organization, invite teammates and choose what each one can access.
Run with your secrets
Start your app with
stash runlocally, in CI or on a server. When a tool needs a file,stash pullwrites one.
$ stash login Login successful! $ stash config set --project my-app --env dev Project set to: my-app (6650c1f2a9b3e4d5f6a7b8c9) Environment set to: dev $ stash run -- npm run dev # DATABASE_URL, API_KEY… are now set for this process only $ stash pull Pulling secrets from my-app (dev)... Saved to .env.dev File permissions: 0600 (readable only by you)
Environments and service tokens for CI
A service token gives a pipeline or server access to one project environment, with no user account and no login.
Create a token, hand it to GitHub
The token is printed once, alone on stdout, so it can be piped straight into a secret store.
$ stash tokens create github-actions --project my-app --env prod --access read --expires-in-days 90 | gh secret set STASH_TOKEN
- ScopeOne project environment
- Access
readorread_write - Creator leaves the organizationToken stops working
- Revoke
stash tokens revoke
GitHub Actions
With STASH_TOKEN set, the CLI resolves the project and environment from the token.
# .github/workflows/deploy.yml jobs: deploy: runs-on: ubuntu-latest env: STASH_TOKEN: ${{ secrets.STASH_TOKEN }} steps: - uses: actions/checkout@v4 - name: Install stash run: | curl -fsSL \ https://github.com/bushcoding/stash/releases/latest/download/install.sh | sh echo "$HOME/.local/bin" >> "$GITHUB_PATH" - run: stash run -- ./deploy.sh # or write a file for tools that read .env: - run: stash pull --file .env --force
How your secrets are protected
The details, as they are documented in the Stash backend and CLI.
AES-256-GCMEncrypted before storage
Every value is encrypted and bound to its environment and key name. All traffic uses HTTPS.
key idKeys rotate without downtime
Each ciphertext records the key that produced it, so encryption keys can be replaced and secrets re-encrypted.
rolesAccess per environment
Owner, Admin, Developer and Viewer, plus custom roles, and members limited to the projects and environments they need.
audit logWho viewed what, and when
Each project logs who viewed, created, changed or deleted secrets. Rollback restores an earlier value as a new version.
2FATwo-factor sign-in
Turn on two-factor authentication, and get an email whenever your account signs in from a new device.
0600Careful on your machine
Pulled files and the CLI session are written with owner-only permissions. Refresh tokens rotate on every refresh.
ed25519Verified updates
stash update only installs a release whose checksum and signature verify.
sealed boxEncrypted on the way to GitHub
Values synced to GitHub are encrypted with the repository's public key before upload.
https://No plain HTTP
The CLI refuses an API URL that isn't HTTPS, except for localhost during development.
Synced to Vercel and GitHub
Map each environment once. Every create, update, delete, import or rollback is pushed automatically, and a sync only deletes variables that Stash created.
Vercel
Each Stash environment maps to Vercel targets.
devDevelopmentstagingPreviewprodProductionGitHub Actions
Each Stash environment maps to repository or environment secrets.
devRepository secretsprodEnvironment secretsTake your .env files out of the chat.
Create a free account, import the .env file you already have, and start your app with stash run.
- Install the CLI
$ curl -fsSL https://github.com/bushcoding/ stash/ releases/ latest/ download/ install.sh | sh - Sign in and pick your project
$ stash login
$ stash config set --project my-app --env dev - Run your app with its secrets
$ stash run -- npm start