/switch --model <name>.
Capabilities legend:
- 👁 Vision — accepts images as input
- 🔧 Tools — native tool use (function calling)
- 📋 JSON Mode — guaranteed structured JSON output
- 💻 Code Exec — native code execution on the provider
- OpenAI
- Anthropic (Claude)
- AWS Bedrock (full catalog)
- Google (Gemini)
- xAI (Grok)
- GitHub Copilot
- ZAI (Zhipu AI)
- MiniMax
- Moonshot (Kimi)
- StackSpot
- OpenRouter
- Devin CLI (Cognition)
- Ollama (Local)
Models ideal for code generation and complex reasoning. Support both Chat Completions API and Responses API.
GPT-6.2 Astra (
gpt-6.2-astra) and GPT-6.2 Sol (gpt-6.2-sol, alias gpt-6.2), released Nov 17, 2026, are the 6.2 refresh of the top and mid tiers — there is no 6.2 Terra or Luna. Both: 1,050,000-token context, 128K output. Astra is $8/$40 per MTok (below GPT-6 Astra’s $10/$50) and Sol $2/$10; cached input is 5% of input and cache writes 1.25×; above 272K input tokens the request bills 2× input and 1.5× output. reasoning_effort accepts low, medium, high, xhigh and max — none and minimal are rejected. Tool calling requires the Responses API. From GPT-6.2 on the Responses API appends a top-level instructions after input, so on the structured request (API-key path) ChatCLI sends the system prompt as a leading developer message instead, which keeps it first and cacheable. Also on Copilot (gpt-6.2-astra, gpt-6.2-sol), OpenRouter (openai/gpt-6.2-astra, openai/gpt-6.2-sol) and Bedrock (global.openai.gpt-6.2-astra, global.openai.gpt-6.2-sol). ChatCLI sends the level the model accepts: xhigh and max reach the GPT-6 family and GPT-5.6 as they are; on GPT-5.2 through 5.5 max is lowered to xhigh; GPT-5, GPT-5.1 and the o-series stop at high. The same applies to the openai/* slugs on OpenRouter; Copilot and Bedrock still stop at high. GPT-6.2 Sol is the provider default (OPENAI_MODEL) since this refresh — it was gpt-6.1-sol, at the same price — and also the default on Copilot (COPILOT_MODEL; a seat that does not have 6.2 yet sets COPILOT_MODEL=gpt-6.1-sol) and on OpenRouter (openai/gpt-6.2-sol).GPT-6.1 Terra (
gpt-6.1-terra, Oct 26, 2026) is the mid tier of the 6.1 refresh, at half of Sol’s price: 1,050,000-token context, 128K output, knowledge cutoff Jun 1, 2026. $1/$5 per MTok, cached input $0.05 (5% of input), cache write $1.25; above 272K input tokens the request bills 2× input and 1.5× output. reasoning_effort accepts none, low, medium (default), high, xhigh and max — unlike 6.1 Sol, none is accepted. Tool calling requires the Responses API. Also on Copilot (gpt-6.1-terra), OpenRouter (openai/gpt-6.1-terra), Bedrock (global.openai.gpt-6.1-terra) and Devin (gpt-6.1-terra). The gpt-6.1 alias still resolves to gpt-6.1-sol.GPT-6.1 Sol (
gpt-6.1-sol, GA Sep 29, 2026): 1,050,000-token context, 128K output, knowledge cutoff Apr 30, 2026. $2/$10 per MTok, cached input $0.10 (5% of input), cache write $2.50. reasoning_effort accepts low, medium (default), high, xhigh and max — there is no none/minimal. Tool calling requires the Responses API (Chat Completions serves it without tools). There is no 6.1 Astra/Luna (Terra followed on Oct 26), and the -pro variant exists only on OpenRouter (not cataloged). Also on Copilot (gpt-6.1-sol), OpenRouter (openai/gpt-6.1-sol), Bedrock (global.openai.gpt-6.1-sol) and Devin (gpt-6.1-sol). The bare gpt-6 alias still resolves to gpt-6-astra. Effort hints (low/medium/high) now reach the whole GPT-6 family.GPT-5.6 (GA Jul 9, 2026) ships in three named tiers: Sol (flagship), Terra (balanced everyday) and Luna (fast and affordable) — $4/$20, $2/$12 and $0.20/$1.20 per MTok respectively (Sol dropped from $5/$30 to $4/$20 on Aug 21, 2026 — promotional rate listed through Nov 30, 2026; the post-promotion price is not published yet). All three work with an API key and with ChatGPT OAuth (
/auth login openai-codex); on the Codex backend ChatCLI sends the required client-identification headers automatically (without them the backend returns 404 for Luna).Specs re-verified Sep 2026:
gpt-5.4 runs the same 1.05M / 128K profile as 5.5/5.6 (its gpt-5.4-pro alias is Responses-only, $30/$180); gpt-5.4-mini/-nano are a separate 400K / 128K entry; gpt-5.3-codex (Responses-only) and gpt-5.2 (+ gpt-5.2-pro, Responses-only, $21/$168) are 400K / 128K. The aliases gpt-5.3, gpt-5.3-mini, gpt-5.3-nano, gpt-5.2-mini and gpt-5.2-nano were removed — no such models exist on the API — and so was gpt-5.3-codex-spark (Codex-app-only, never a platform id). Shut down by OpenAI and removed from the catalog: o3-mini, o4-mini and gpt-4.1-nano (Oct 23, 2026) — the cost tracker keeps their rates so old session logs still price. Upcoming OpenAI shutdowns: the dated gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro and o3 snapshots on Dec 11, 2026 (the bare o3 and gpt-5 aliases are not on the list); the remaining GPT-4o / GPT-4.1 snapshots on Jan 14, 2027; gpt-5.3-codex, gpt-5.4-nano and gpt-5.1 on Apr 1, 2027.Routing between Chat Completions and the Responses API is automatic per model via the catalog (
gpt-5.x, gpt-4.1 and o-series prefer Responses; gpt-4o stays on Chat Completions). Force Responses for every model with OPENAI_USE_RESPONSES=true. OAuth sessions always use the Responses API. Streaming is enabled for all models.How model selection works
ChatCLI picks the model with this priority, highest first:--modelflag on the command line:chatcli --model gpt-5.4/switch --modelor/modelduring a session:/switch --model claude-sonnet-4-6- The provider’s model variable —
OPENAI_MODEL,ANTHROPIC_MODEL,GOOGLEAI_MODEL,XAI_MODEL,ZAI_MODEL,MOONSHOT_MODEL,MINIMAX_MODEL,OLLAMA_MODEL,COPILOT_MODEL,BEDROCK_MODEL,OPENROUTER_MODELorDEVIN_MODEL(OPENAI_ASSISTANT_MODELfalls back toOPENAI_MODEL). It is read from the process environment first, then from the persisted configuration (.envand/config). - The provider’s built-in default from the catalog
--provider, from /switch or /provider during a session, or from LLM_PROVIDER (default OPENAI). Names are case-insensitive: OPENAI, OPENAI_ASSISTANT, CLAUDEAI, BEDROCK, GOOGLEAI, XAI, ZAI, MOONSHOT, MINIMAX, STACKSPOT, OLLAMA, COPILOT, OPENROUTER and DEVIN.
Switching the provider — /switch, /provider or the command palette — starts the new provider on its model through steps 3 and 4, exactly as startup does. StackSpot has no model variable: its “model” is the agent (/switch --agent-id).
Model aliases
Each model has aliases for easier typing. ChatCLI automatically resolves aliases to the canonical model ID. For example:
Aliases are defined in the model catalog and accepted in all contexts:
--model, /switch and the provider’s model variable (such as ANTHROPIC_MODEL).
Catalog system
Models are registered in thellm/catalog package with complete metadata. ChatCLI uses the catalog to automatically determine:
- API version — which endpoint and protocol version to use for each model
- Max tokens — context and output limits for managing prompts and responses
- Capabilities — which features are available (vision, tools, JSON mode, etc.)
- Provider-specific headers — for example, the
anthropic-versionheader varies per model
Dynamic model listing
ChatCLI fetches available models directly from each provider’s API, using the configured token or API key. This ensures you see exactly which models your account has access to — including new models not yet in the static catalog.How it works
- When ChatCLI starts or when you switch providers (via
/switch,/auth login, etc.), a background request queries the active provider’s models endpoint - Discovered models are cached for use in the
/switch --modelautocomplete - Each suggestion indicates its origin:
[API](dynamic) or[catalog](static)
Endpoints per provider
Smart autocomplete
When typing/switch --model and pressing Tab, ChatCLI suggests available models:
OAuth and dynamic listing
Dynamic listing works with both API key and OAuth:- Anthropic OAuth: uses
?beta=trueand Chrome-like headers, with automatic gzip decompression - OpenAI OAuth: queries the ChatGPT backend (
/backend-api/models) instead of the standard endpoint - GitHub Copilot OAuth: uses the Device Flow token to query
api.githubcopilot.com/models
/auth login, the model cache is automatically refreshed to reflect the new provider.
Anthropic API versioning
Claude models may use differentanthropic-version header values in API requests. The catalog manages this automatically:
- Newer models (claude-mythos-5-2, claude-mythos-5-1, claude-mythos-5, claude-fable-5-2, claude-fable-5-1, claude-fable-5, claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5, claude-opus-5, claude-sonnet-5, claude-opus-4-8, claude-opus-4-7, claude-sonnet-4-6) use the latest API version
- Every entry currently in the catalog ships with the default version; the retired Claude 3.x models that used older headers are no longer registered
- ChatCLI sends the correct header for each model without any user intervention