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
~/my-app
$ stash run --env prod -- npm start
> my-app@1.0.0 start
> node server.js
npm startenvironmentrunning
  • DATABASE_URL••••••••
  • API_KEY••••••••
  • REDIS_URL••••••••
  • JWT_SECRET••••••••
  • STRIPE_SECRET_KEY••••••••
In the memory of that process only. Nothing is written to disk.

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

Chat messagesShared notesLocal .env filesCI settings

Nobody 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.

  1. Create a project

    It starts with dev, staging and prod environments. Add your secrets in the web app or import a .env file.

  2. Bring in your team

    Create an organization, invite teammates and choose what each one can access.

  3. Run with your secrets

    Start your app with stash run locally, in CI or on a server. When a tool needs a file, stash pull writes 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.

CI/CD guide

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
  • Accessread or read_write
  • Creator leaves the organizationToken stops working
  • Revokestash 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-GCM

Encrypted before storage

Every value is encrypted and bound to its environment and key name. All traffic uses HTTPS.

key id

Keys rotate without downtime

Each ciphertext records the key that produced it, so encryption keys can be replaced and secrets re-encrypted.

roles

Access per environment

Owner, Admin, Developer and Viewer, plus custom roles, and members limited to the projects and environments they need.

audit log

Who viewed what, and when

Each project logs who viewed, created, changed or deleted secrets. Rollback restores an earlier value as a new version.

2FA

Two-factor sign-in

Turn on two-factor authentication, and get an email whenever your account signs in from a new device.

0600

Careful on your machine

Pulled files and the CLI session are written with owner-only permissions. Refresh tokens rotate on every refresh.

ed25519

Verified updates

stash update only installs a release whose checksum and signature verify.

sealed box

Encrypted 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.

StashVercel target
devDevelopment
stagingPreview
prodProduction

GitHub Actions

Each Stash environment maps to repository or environment secrets.

StashGitHub
devRepository secrets
prodEnvironment secrets
You connect with your own access token, stored encrypted with the secrets keyring.

Take 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.

  1. Install the CLI
    $ curl -fsSL https://github.com/bushcoding/stash/releases/latest/download/install.sh | sh
  2. Sign in and pick your project
    $ stash login
    $ stash config set --project my-app --env dev
  3. Run your app with its secrets
    $ stash run -- npm start
Linux and macOS. On Windows, use the installer.