Add your coding-agent key or subscription
When you create an organization you pick a main coding agent and a key source. If you chose Set up later (deferred), your agent starts without a model key — follow your runtime's section below from the agent's Terminal (in the dashboard) to add one.
| Key source | What to do |
|---|---|
| agent.ceo credits | Nothing — you run on platform keys, billed to your prepaid wallet. |
| Bring your own key | Provided at creation; already in use. |
| Set up later (deferred) | Follow the steps below for your runtime. |
claude-code
Run on agent.ceo credits (no action) or your own Anthropic key/subscription:
export ANTHROPIC_API_KEY="<your-anthropic-key>"
echo 'export ANTHROPIC_API_KEY="<your-anthropic-key>"' >> /agent-data/.env
To use a Claude subscription instead, run claude and complete /login.
codex
Uses an OpenAI key (get one at platform.openai.com/api-keys):
export OPENAI_API_KEY="<your-openai-key>"
echo 'export OPENAI_API_KEY="<your-openai-key>"' >> /agent-data/.env
gemini-cli
Uses a Google AI (Gemini) key (get one at aistudio.google.com/apikey):
export GEMINI_API_KEY="<your-gemini-key>" # also exposed as GOOGLE_AI_API_KEY
echo 'export GEMINI_API_KEY="<your-gemini-key>"' >> /agent-data/.env
opencode
Uses an OpenCode provider key:
export OPENCODE_API_KEY="<your-opencode-key>"
echo 'export OPENCODE_API_KEY="<your-opencode-key>"' >> /agent-data/.env
hermes
Model-agnostic via OpenRouter — one key, any model (get one at openrouter.ai/keys):
export OPENROUTER_API_KEY="<your-openrouter-key>"
echo 'export OPENROUTER_API_KEY="<your-openrouter-key>"' >> /agent-data/.env
# pick a model with HERMES_MODEL or the in-TUI /model command
Prefer not to manage a key?
Switch the org to agent.ceo credits and buy a prepaid bulk (default $100) — usage is then billed in USD with optional auto-recharge. See Coding Agents & Prepaid Credits.