CAST
Docs menu

Connect an AI account

The people in the town are AI agents. Until CAST can reach a model through an AI account, nobody can read, write or run anything.

For CAST 0.1.0

Until you connect one, the top bar shows an amber Connect AI button, people wear a not connected chip and their chat box stays locked. You can still place projects, add jobs and pick each person's model meanwhile. They start working once their model's account is connected.

While CAST checks your accounts the button says Checking…, which can take a minute. If the check fails it says Check failed and CAST tries again by itself. If the CAST engine isn't built yet (source install), it says No agent: run bun run build in the CAST folder.

Sign in

Open Models & providers: the Connect AI button in the top bar (it shows how many providers are live once one is connected), or the Talent Agency building in the town. Press Sign in on a vendor's card.

You can also sign in from a terminal on the CAST machine, then press Refresh in Models & providers. Use agent/bin/cast-agent in a source install, or the cast-agent next to cast-server in the Linux build:

cast-agent login anthropic            # Claude Pro/Max
cast-agent login openai-codex         # ChatGPT Plus/Pro
cast-agent login google-gemini-cli    # Google account
cast-agent login openrouter           # OpenRouter

Claude, GPT, Gemini, DeepSeek and OpenRouter

These five have a card of their own in Models & providers. Claude, GPT, Gemini and DeepSeek also wear their own colour in the town.

VendorSign in with an accountOr an API key
AnthropicClaude Pro/MaxPaste API key on the card, or ANTHROPIC_API_KEY
OpenAIChatGPT Plus/ProPaste API key on the card, or OPENAI_API_KEY
Google GeminiGoogle accountPaste API key on the card, or GEMINI_API_KEY
DeepSeek–DEEPSEEK_API_KEY
OpenRouterOpenRouter accountOPENROUTER_API_KEY

API keys

Every other provider

Grok, Mistral, Kimi, GLM, GitHub Copilot, Amazon Bedrock and dozens more can be connected too. CAST is tested with Claude, GPT, Gemini and DeepSeek; people on other providers' models wear grey in the town.

ProviderEnvironment variable
xAI (Grok)XAI_API_KEY
MistralMISTRAL_API_KEY
Moonshot (Kimi)MOONSHOT_API_KEY or KIMI_API_KEY
Z.ai (GLM)ZAI_API_KEY
MiniMaxMINIMAX_API_KEY
GroqGROQ_API_KEY
CerebrasCEREBRAS_API_KEY
Together AITOGETHER_API_KEY
FireworksFIREWORKS_API_KEY
Hugging FaceHF_TOKEN
NVIDIANVIDIA_API_KEY

The full list is in the CAST engine's own docs, agent/docs/providers.md.

Model servers on your network

Run models yourself with llama.cpp, Ollama, LM Studio or any OpenAI-compatible server.

Small local models often get tool calls wrong. The CAST engine works best with a model trained for tool use and 32k or more of context.

Google accounts

Picking models