Skip to content

Using the CLI

The settings file

What .catalyst/catalyst.toml declares and how a change reaches Catalyst Cloud.

Every repository Catalyst works on can carry one settings file, .catalyst/catalyst.toml, on its default branch. You do not have to write it: the /catalyst-onboard skill reads what your repository needs and proposes the file for you. This page is the reference for what it contains.

#:schema https://staging.catalystcloud.dev/schemas/catalyst.schema.json
[project]
linear_team = "ENG"

[project] with linear_team, the key of the Linear team this repository’s work belongs to, is required. Every other section is optional. The #:schema line lets your editor check the file as you type.

[project] linear_team on the default branch decides which project a repository is in. When Catalyst reads the file, it moves the repository into the project for that Linear team and out of any other project it was in. If your workspace has no project for that team yet, Catalyst creates one. You do not pick the team or the repository in a form for this, and nobody approves it in Catalyst. Your branch protection and review rules are the gate.

Catalyst reads the file right away when a push to the default branch changes it. It also reads it within about five minutes of any other default-branch commit it has not read yet.

Upgrading? A repository you paired with a project in the app keeps that project until Catalyst next reads a valid [project] linear_team on its default branch. From then on the file wins. If it names a different team, the repository leaves the project you picked and joins that team’s project, and pairing it again in the app does not change that. Edit the file to move it. A repository with no file, or a file with no valid linear_team, keeps the project the app gave it. Tickets, runs and history stay where they were and stay readable. Before you upgrade, check that each repository’s file names the team you want.

Nothing changes, and the repository stays where it was, when:

  • the file is on another branch or in a fork, or only in an open or closed-unmerged pull request;
  • the team’s project is archived, or the team belongs to another Catalyst workspace;
  • Linear has no team with that key, or linear_workspace names a different Linear workspace;
  • the file is invalid.

A project’s home repository lists the repositories in that project:

[project.repositories]
list = ["myorg/api", "myorg/web"]

Each entry is a GitHub repository written owner/name. The list holds at most 64 entries and no name twice, ignoring case. An entry that is not connected to your workspace shows on the team’s settings page. To connect it, grant it to the GitHub App from Settings → Integrations if it is not granted yet, then commit a change to this file on that repository’s default branch, with [project] linear_team naming the team. Otherwise, remove it from the list.

Catalyst reads the list on each push to the home repository’s default branch. When the file does not validate, Catalyst keeps the last valid list and the team’s settings page says so. catalyst env check finds a TOML syntax error, but it does not check this list, so compare the table with the rules above.

The cloud builds and tests your repository in a fresh container. It needs the names of the variables and secrets the build reads, and any install or test commands of your own. You write names; you enter values in the app.

[[environment.variables]]
name = "DATABASE_URL"
required = true
[[environment.variables]]
name = "STRIPE_API_KEY"
required = true
secret = true
[[environment.setup]]
name = "install"
run = ["npm", "ci"]
  • Each [[environment.variables]] entry names one variable and says whether it is required. Add secret = true for a secret. A value never goes in this file.
  • [[environment.setup]] steps are your own install commands, run before the agent’s session starts, in place of the automatic dependency install. run is an argument list, not a shell string. verify steps have the same shape and carry your test commands.
  • Leave platform bindings and deploy-only secrets out. Containers build and test; they do not deploy.

The /catalyst-onboard skill drafts this section from the repository’s own build files: the README’s setup section, the scripts in package.json or its equivalent, the CI workflows, and a .env.example if one exists. It says which file each name came from, and a name it cannot tie to a file is named as a guess rather than listed. It can propose and approve the workspace-wide declaration itself.

  1. Commit the file and merge it to the default branch, the same way as any code change. Your branch protection and review rules are the gate.
  2. Catalyst reads each default-branch push that changes the file and applies the new declaration for the next phase. Settings shows that reaching the default branch approved it, and names the commit. When the change came in through a merged pull request, it names that pull request too.
  3. From then on, a phase gets exactly the secrets the declaration names. Secret values go on the Secrets tab at Settings → (your project) → (repository) → Environment, write-only; plain values on the Environment variables tab.

Nobody approves the file in Catalyst. A change on any other branch, a fork or an open pull request is never applied.

Leave the Require this declaration switch at Settings → (your project) → (repository) → Environment off for now: with it on, work waits for an environment check that is not yet recorded in production.

Until a declaration is in effect, the cloud still runs your repository with its automatic install and every ordinary secret you have stored. It only narrows what a phase can see once it is in effect.

You can change the file from the app instead of editing it by hand. A change on the Environment variables, Secrets, MCP servers or Skills tab at Settings → (your project) → (repository) → Environment opens a pull request against .catalyst/catalyst.toml. Later changes join the same pull request until it merges. The file holds names only. A variable’s value and a secret’s value are stored in Catalyst, never in the file. The page shows the change after the pull request merges.

A repository that needs more disk space per phase can declare a budget for a supported self-hosted runner:

[runner]
disk_budget_gib = 64

runner.disk_budget_gib accepts a whole number of GiB from 1 to 1048576. Merge the change to the repository’s default branch. It applies to newly granted phases after Catalyst reads that revision; an active phase keeps the budget it started with.

Remove the key to use the machine’s CATALYST_SLOT_DISK_BUDGET_GIB default again. An invalid runner table keeps the last valid runner settings. If no valid settings exist, the machine default applies.

The setting does not increase the machine’s total CATALYST_DISK_BUDGET_GIB or resize a disk. The machine must have enough available space and total budget for the requested phase. A runner with an older version that cannot honor the repository budget cannot start that work. This setting does not change Catalyst Cloud capacity.

The same file can name which provider and model run each stage, when Catalyst stops retrying and asks a person, where your thoughts repository lives, and how Catalyst’s stages map onto your team’s Linear states. Those sections are documented as they open up; the schema link above is always current.