Secrets & config manager

Every variable, every environment, one place.

env-ctrl keeps one list of the environment variables your app needs, a value for each environment, and gives every app a single token. See at a glance which environment is missing which key.

  • AES-256-GCM encryption
  • Works with any language
  • MCP server included
Demo Shop · keys & values
Keydevstageprod
DATABASE_URLsecretsetsetset
STRIPE_SECRET_KEYsecretsetmissingset
API_URLconfigsetsetset
LOG_LEVELconfigsetdefaultdefault
SENTRY_DSNsecretdefaultsetmissing
$ export ENVCTRL_TOKEN=ec_svc_••••••
$ npx @env-ctrl/cli run -- npm start
✓ 14 variables for stage loaded

“Works on dev, crashes on stage.” A key someone added locally and forgot everywhere else.

Secrets in chat messages. .env files passed around in DMs and pasted into CI by hand.

“What is FEATURE_X for?” Nobody remembers, and nobody dares to delete it.

Everything about your configuration, in one place

env-ctrl is the single source of truth for what your apps need to run, in every environment.

See every gap at a glance

A matrix of keys × environments shows what is set, what falls back to a default and what is missing, before a deploy finds out for you.

One token per app

Apps get ENVCTRL_TOKEN instead of twenty variables. Rotate a secret once and every environment that uses it picks it up on the next start.

Documentation that stays current

Each key carries a description, type, validation rule and a link to where the value comes from. .env.example is generated, never hand-edited.

Built for coding agents

An MCP server lets agents find missing keys and add new ones while they write the code that needs them, without ever seeing production secrets.

History and rollback

Every change is a new version with its author, person or token. Look at an older value and roll back in one click.

Compare and promote

Diff two environments without exposing values, spot secrets accidentally shared between stage and prod, and copy what is missing.

How it works

Three steps, no changes to your application code.

  1. 1

    Define the keys

    Import an existing .env file or add keys one by one: secret or config, type, description, validation and where to get the value.

  2. 2

    Fill each environment

    Set a value per environment. The matrix highlights every gap; protected environments such as prod need an admin.

  3. 3

    Run with one token

    Create a token for the app's environment and start it through the CLI, or call the REST API.

    ENVCTRL_TOKEN=ec_svc_… \
      npx @env-ctrl/cli run -- npm start

Security by default

A secrets manager has one job: keep secrets secret. env-ctrl is built around that.

  • Envelope encryption. Every value, secret or config, is encrypted with AES-256-GCM under a per-project key, which is itself encrypted with a master key kept outside the database.
  • Protected environments. Only admins can change or reveal values in prod. Agents can never write there.
  • Roles. Owner, admin, developer and viewer, per workspace. Viewers see the schema and gaps, never values.
  • Hashed tokens. Tokens are shown once and stored as hashes. Public tokens only reach configs you mark public.
  • Audit log. Who changed what, which app fetched values, and every single secret reveal.
MCP server

Your coding agent knows what's missing

Connect Claude Code, Cursor or any MCP client. When the agent writes code that reads a new variable, it adds the key with a description and fills it where it's allowed to. Secret values stay hidden unless you grant access.

claude mcp add --transport http env-ctrl \
  https://api.envctrl.com/mcp \
  --header "Authorization: Bearer ec_mcp_…"

tools: list_environments  list_keys  find_missing
       create_key  set_value  get_values  env_example

Questions and answers

What is env-ctrl?

env-ctrl is a hosted manager for environment variables, secrets and configuration. You define the list of keys an application needs once, store a value for each environment (local, dev, test, stage, prod and so on), and each application fetches all of its values with a single token.

How does an application get its variables?

Give the app one environment variable, ENVCTRL_TOKEN, and start it with the env-ctrl CLI: npx @env-ctrl/cli run -- npm start. The CLI fetches every value for that token's environment over HTTPS and starts your command with them already set, so application code keeps reading process.env or System.getenv and nothing is written to disk. Apps can also call the REST API directly.

How do I see which environment is missing a key?

The dashboard shows a matrix of keys by environments. Every cell is either set, using the default, missing or optional, and each environment shows how many required keys it is missing. The CLI command envctrl check fails a CI pipeline when a required key is missing.

How are secrets protected?

Every value is encrypted with AES-256-GCM using envelope encryption: a per-project data key, itself encrypted with a master key kept outside the database. Production-like environments can be marked protected so only admins can change or reveal them. Access tokens are stored as hashes, and every secret reveal is written to an audit log.

Can frontends read configuration too?

Yes. A public token returns only the configuration values you explicitly mark as public, never secrets. It can be restricted to allowed origins and IP ranges and is rate limited.

Does env-ctrl work with AI coding agents?

Yes. env-ctrl includes an MCP server. Claude Code, Cursor and other MCP clients can list keys, find which environments are missing values, add new keys when code starts reading a new variable, and fill values in non-protected environments. Secret values stay hidden from agents unless you grant the secrets:read scope.

Is env-ctrl a replacement for .env files?

For shared and deployed environments, yes: values live in one place instead of files passed around in chats. For local development you can still pull a .env file with envctrl pull, and env-ctrl generates a documented .env.example from the schema.

Stop guessing which environment is missing what.

Set up your first project in minutes: import a .env file and see the gaps right away.

Get started
env-ctrlEnvironment variables, secrets and configs for every environment.