Skip to main content
Arcium.toml is auto-generated by arcium init and configures the Arcium CLI tooling. It lives at the root of your project alongside Anchor.toml. Most projects only need to edit this file when changing localnet behavior or adding a cluster offset for devnet or mainnet testing.

Localnet configuration

The [localnet] section controls your local development cluster. All required fields are auto-generated by arcium init with sensible defaults. Use the default values unless you need to test against a larger local cluster or a custom Docker network setup.

Choose a local validator

The CLI uses the legacy validator by default. To preview Surfpool after completing the optional installation, select it for each local command:
The validator choice is not stored in Arcium.toml. --validator takes precedence over ARCIUM_LOCAL_VALIDATOR; both accept legacy or surfpool. The CLI rejects --validator with a non-local --cluster.

Cluster configuration

The [clusters.<name>] sections map network names to cluster offsets. These entries are used by arcium test --cluster <name> to resolve the cluster offset for testing. The CLI reads these entries when you run commands such as:
For local tests without a --cluster argument, the CLI uses the [localnet] configuration.

Full example

Common mistakes