Anthivo home

Getting StartedBring Your Own Key

Bring Your Own Key

Connect your own LLM provider key, so you pay the provider directly.

Anthivo never resells model usage. AMI and its agents call your LLM provider with your key, so you choose the model, keep the usage data, and pay the provider at their rates.

Add your key

Put the key in the env file your config loads, then point the provider at it. Keys never belong in anthivo.config.ts itself.

.env.test
ANTHROPIC_API_KEY=sk-ant-...
anthivo.config.ts
export default defineConfig({  provider: { name: "anthropic", apiKey: process.env.ANTHROPIC_API_KEY! },})

Never commit an API key. Add your env files to .gitignore and use repository secrets in CI.

Where keys are stored

Local runs read the key from your environment and send it only to your provider. Keys saved in the control panel are encrypted at rest and decrypted only inside the run that uses them.

Cost

Each run spends tokens in proportion to the number of agents and suites. Cap spend in your provider's dashboard, or lower ami.agents for smaller runs.