Running work
Environment and secrets
What a phase's container receives, where values live, and how they get there.
The container that builds and tests your repository needs the names of the variables and secrets your build reads. You write the names; you enter the values in the app; a value never goes in a file in the repository. The declaration itself lives in .catalyst/catalyst.toml, covered in The settings file. This page is the value side.
Names and values
Section titled “Names and values”- A variable is readable in the app. Use it for values that are not sensitive.
- A secret is write-only: once stored, it is never displayed again. Use it for keys and tokens.
- A name is one or the other, never both.
- A variable may reference a vault secret by name; it is expanded only inside the container.
Three scopes
Section titled “Three scopes”A secret is stored at one of three scopes, and the scope decides which containers receive it:
- Workspace secrets go to every project’s containers. Use them for development tools every project shares, such as a component registry key or a design tool key.
- Project secrets go to every repository in that project, and to no repository outside it. Use them for keys that belong to one product, such as its own Cloudflare account, PostHog project or build cache.
- Repository secrets go only to that repository. Once its declaration is in effect, a phase receives only the repository secrets the declaration names.
When two scopes hold the same name, the narrowest one wins: the repository value over the project value, and the project value over the workspace one.
A workspace or project secret never reaches a container through a declaration, so a repository does not have to list it. Admin tokens and the other credentials that run the platform itself are refused at both of those scopes. A few keys are repository-only, OPENROUTER_API_KEY, GEMINI_API_KEY_MCP and DEVIN_API_KEY among them: store one on the repository that needs it.
Expiry and rotation notes
Section titled “Expiry and rotation notes”A secret can carry three optional fields: an expiry date, a short note on how to rotate it, and a link to the rotation steps. Set them when you add the secret, or later from its row under Settings → Environment → Secrets (or on the repository’s Environment page) with the calendar button. They work at every scope, including your own personal secrets.
- The date is in UTC. From 14 days before it, the secret’s row shows how many days are left, with your note and link beside it. A date in the past shows how long ago the secret expired.
- Setting a new value for the secret clears the date, because the old date described the old value. Set a new date in the same step to keep one. The note and link stay.
- The note is plain text. Never paste the value into it: the app refuses a note or link that contains the value you are saving.
- The value is still write-only. The fields hold no part of it, and editing them does not store a new value or change what a phase receives.
The same fields are on GET /api/v1/me/secrets, as expiresAt (epoch milliseconds, or null), rotationNote and rotationUrl. POST /api/v1/me/secrets/:name/expiry changes them without a value: a field you leave out stays as it is, and null clears it. rotatedAt is when the value was last replaced.
Where they live
Section titled “Where they live”- Settings → Environment → Environment variables for workspace variables.
- Settings → Environment → Secrets for workspace secrets, and, under Project secrets on the same page, each project’s secrets.
- Each repository’s own page, Settings → (your project) → (repository) → Environment, for its declaration, its values and its secrets.
On Settings → (your project) → (repository) → Environment, a change on the Environment variables, Secrets, MCP servers or Skills tab opens a pull request against .catalyst/catalyst.toml. The file gets the name, and the value stays in Catalyst. Change it from Settings has the detail.
A repository without its project’s Linear team receives nothing, including secrets. If a phase cannot find its environment, check that the repository belongs to the intended project and that the project has its Linear team.
Commands
Section titled “Commands”Store a secret for one repository, from a command (its text is audited, so never put a value in it), stdin, or a hidden prompt:
catalyst secret set STRIPE_API_KEY --repo myorg/myrepo --command 'op read op://Vault/stripe/api-key'catalyst secret set stores a secret for one repository only. A secret for every repository of a project goes under Project secrets on Settings → Environment → Secrets, and a secret for the whole workspace goes on the same page.
A setting that is not sensitive, such as an endpoint URL, can stay readable as a variable. Leave out --repo for a value the whole workspace shares:
catalyst var set API_BASE_URLImport a set of them from a file, rotating named entries:
catalyst secret import values.env --repo myorg/myrepo --rotate STRIPE_API_KEYScan a checkout offline for the variable names it actually reads, grouped build/test, deploy-only and bindings, with where each was found. No login, no network, never a value:
catalyst env inventoryRead your workspace’s own declaration, or propose a change to it from a JSON file:
catalyst environment readcatalyst environment propose --file account-declaration.jsonA workspace changes its declaration only through the catalyst.toml file in its config repository. propose opens a pull request against that file, and merging the pull request is the approval, so there is nothing to approve in Catalyst. A workspace with no config repository gets a refusal that says so. An owner or admin chooses one in Settings, Environment.
What the container never gets
Section titled “What the container never gets”Containers build and test; they do not deploy. Leave deploy-only secrets and platform bindings out of the declaration, unless your build genuinely needs one.
When a declaration takes effect
Section titled “When a declaration takes effect”A repository’s declaration takes effect when its .catalyst/catalyst.toml merges to the default branch. Catalyst reads each default-branch push that changes the file and applies the new declaration for the next phase, and Settings shows the commit it came from. Nobody approves it in Catalyst: your branch protection and review rules are the gate. Until a declaration is in effect, the cloud runs your repository with its automatic install and every ordinary secret you have stored. Once in effect, it narrows the repository’s own secrets to the names it lists. Workspace and project secrets are not narrowed by it. The workspace-wide declaration comes only from the settings file in the config repository: its pull request is reviewed and merged in GitHub, and Catalyst applies it when it lands on the default branch.
- The settings file for the declaration’s shape.
- Where work runs for the container itself.