.amika/config.toml file committed at the root of your repo.
When a rig is created from the repo, Amika reads the file and applies the
settings automatically, so every collaborator gets the same environment without
passing extra flags.
What a repo config controls
.amika/config.toml is a template for the rigs created from a repository.
Each section maps to one dimension of the rig:
[lifecycle]— setup and start scripts that provision the environment.[env]— environment variables and secret references.[services.<name>]— named services with port bindings and public URLs.[sandbox]— the default preset, size, and boot snapshot.[filesystem]— additional repos to clone alongside the primary one.[agent_credentials]— which stored credential each agent uses by default.[workflow]: a hosted multi-step agent workflow.
How configuration is applied
The same setting can be declared in more than one place. Amika resolves each setting independently, taking the first non-empty value in this order:
Resolution is per-dimension: a preset from a CLI flag, env vars from the TOML,
and a size from a UI setting can all apply to the same rig at once. A value
saved through the web UI becomes the “Database” layer and overrides the
corresponding
.amika/config.toml value for all future rigs; the UI shows
a notice when a value originates from the TOML file.
Setting a value across surfaces
Setting the rig preset is a good example — you can declare it once in the repo, override it per rig from the CLI, or set a repository default in the UI. All three feed the resolution table above.- .amika/config.toml
- CLI
- Web UI
Commit the default with your code. It applies to every rig created from
the repo.
Multi-repo rigs
A rig can clone more than one repository. List the extra repos under[filesystem].repos in the primary repo’s
config. Each is cloned into ~/workspace/<repo-name> alongside the primary.
Repo-less rigs
A repository is optional. A rig can boot with no repo — and therefore no.amika/config.toml. This is useful for scratch environments, or when you clone
repos yourself after connecting.
With no config file, every setting falls through to the API request / CLI flags
layer or the built-in default. Pass the preset, size, env vars, and credentials
you need at create time.
Related docs
- config.toml reference — full field-by-field spec
- Create a rig — repo detection and
--no-git - Repository configuration — reference-tab summary
- Manage secrets — pushing secrets referenced from
[env]