# env-ctrl > env-ctrl (envctrl.com) is a hosted manager for environment variables, secrets and configuration. You define the keys an application needs once, store a value per environment (local, dev, test, stage, prod and so on), and each application fetches all of its values with a single token. The dashboard shows which environment is missing which key; an MCP server lets AI coding agents work with the schema. ## Key facts - One schema per application: name, kind (secret or config), type (string, int, number, bool, url, json), description, validation regex, link to where the value comes from, default value for configs. - A value per environment. A matrix of keys by environments marks every cell as set, default, missing or optional, and counts missing required keys per environment. - One token per application: service tokens (`ec_svc_…`) return every value of one environment; public tokens (`ec_pub_…`) return only configs marked public, restricted by origin and IP; MCP tokens (`ec_mcp_…`) give coding agents scoped access. - CLI: `ENVCTRL_TOKEN=ec_svc_… npx @env-ctrl/cli run -- npm start` starts any command with the variables set; `envctrl check` fails CI when required keys are missing; `envctrl pull` writes a local .env. - REST: `GET https://api.envctrl.com/v1/env` with `Authorization: Bearer ec_svc_…` returns JSON or dotenv; missing keys are listed in the `X-EnvCtrl-Missing` header. - Security: AES-256-GCM envelope encryption with a per-project data key; protected environments (admin only); roles owner, admin, developer, viewer; tokens stored as hashes; audit log of changes, fetches and every secret reveal. - History: every change is a version with its author; values can be rolled back. Environments can be compared without exposing values and missing values promoted from one environment to another. - `${OTHER_KEY}` references are expanded at delivery. ## Questions and answers - What is env-ctrl? A hosted manager for environment variables, secrets and configuration: one list of keys per app, a value per environment, one token per app. - How does an application get its variables? It receives ENVCTRL_TOKEN and is started through the env-ctrl CLI (or calls the REST API); application code keeps reading process.env / System.getenv and nothing is written to disk. - How do I see which environment is missing a key? The dashboard matrix shows set / default / missing / optional per cell and missing counts per environment; `envctrl check` fails CI on missing required keys. - How are secrets protected? AES-256-GCM envelope encryption, protected environments for admins only, hashed tokens and an audit log of every secret reveal. - Can frontends read configuration? Yes, with a public token that only returns configs marked public, never secrets. - Does env-ctrl work with AI coding agents? Yes, through its MCP server (tools: list_environments, list_keys, find_missing, create_key, set_value, get_values, env_example); agents never write protected environments and see secrets only with the secrets:read scope. - Does it replace .env files? For shared and deployed environments, yes; locally `envctrl pull` writes a .env and a documented .env.example is generated from the schema. ## Links - [Home](https://envctrl.com/): overview, security, AI agents, FAQ - [Sign in / create an account](https://envctrl.com/login)