.amika/config.toml file committed at the root of your repo.
When a sandbox 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 sandboxes created from a repository.
Each section maps to one dimension of the sandbox:
[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.
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 sandbox at once. A value
saved through the web UI becomes the “Database” layer and overrides the
corresponding
.amika/config.toml value for all future sandboxes; the UI shows
a notice when a value originates from the TOML file.
Setting a value across surfaces
Setting the sandbox preset is a good example — you can declare it once in the repo, override it per sandbox 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 sandbox created from
the repo.
Multi-repo sandboxes
A sandbox 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 sandboxes
A repository is optional. A sandbox 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 sandbox — repo detection and
--no-git - Repository configuration — reference-tab summary
- Manage secrets — pushing secrets referenced from
[env]