Pick how to connect
Switch models and thinking levels
Once at least one provider is authenticated, switch models and reasoning effort interactively or from the command line. Every interactive model or thinking change saves automatically as your startup default in~/.atomic/agent/settings.json.
Interactive commands and shortcuts
Atomic saves your active model under
defaultProvider and defaultModel, and saves your reasoning level under both modelThinkingLevels["<provider>/<id>"] and defaultThinkingLevel. Open /settings and select Default thinking level per model to inspect saved per-model levels.
Fast and Ultrafast models
Fast and Ultrafast inference are selectable model IDs ending in-fast or -ultrafast, not a separate toggle. Select them anywhere you name a model, including /model, --model, enabledModels, fallbackModels, and subagents:
-fast and -ultrafast variants are generated for eligible models on openai, openai-api, openai-codex, anthropic, anthropic-api, and xai. GitHub Copilot publishes its own account-advertised fast model IDs. See Fast models and Fast and Ultrafast tiers.
Override for a single run from the shell
Inspect available models or start one session on a specific provider, model, and thinking level without changing your saved defaults:Scope models and set fallbacks
Limit active models with /scoped-models and enabledModels
If you have credentials for many providers, narrow your daily rotation so Ctrl+P, /model, and subagents stay on the models you approve.
Run /scoped-models in interactive mode to toggle and reorder models; every change saves immediately to global ~/.atomic/agent/settings.json as explicit provider/id entries. For glob patterns, per-entry :thinking levels, or project-scoped lists, edit enabledModels directly in settings.json (or pass --models for one run):
- Startup model: A new session starts on your saved default if it is in scope, or on the first matched scoped model otherwise.
Ctrl+Pand/model: Cycling walks only scoped models in order./modelopens filtered to scoped models (pressTabto view all models).- Subagents: Child subagents inherit the active scope and reject any model outside it. Because Fast and Ultrafast variants have their own IDs (
-fast,-ultrafast), end a pattern with*(such as"openai-codex/gpt-6.2-sol*") or list those IDs explicitly if you want subagents to use them.
Recover from limits and outages with fallbackModels
Configure an ordered fallback chain in settings.json so main-chat turns switch automatically when a model hits rate limits, exhausted quota, content filters, auth errors, refused TLS certificates, or outages:
- Main chat stays independent of
enabledModels: You can keep an out-of-scope emergency model infallbackModels. Child subagent fallbacks still stay within the session’senabledModelsscope. - Per-run overrides: Pass
--fallback-modelsto replace the chain for one run, or--no-fallbackto disable fallbacks. Passing--modelon the CLI runs strictly as named unless you also pass--fallback-models. - Skipped candidates: Providers without configured credentials are skipped before any request, and a provider that rejects credentials mid-turn is skipped for the rest of that chain.
fallbackModels. See fallbackModels.
Use specialized models
In addition to chat models, Atomic supports three specialized model kinds. None of them appear in/model or run as your chat model.
- Decision models (
decisionModel): LeavedecisionModelempty or"auto"to use your active chat model for structured decisions (structured_outputanddecide()), or pin a fast classifier such astypesafe/jev-latest,openai-decisions/gpt-6-luna, or a localllama.cpp/<id>model in/settings. Changes in/settingsapply immediately without/reload. SeedecisionModeland Structured decisions. - Compaction models (
compactionModel): By default Atomic uses memory compaction ("auto"), which clears the window and lets the agent recover verbatim details from session history. To send context to a remote compactor such asmorph/morph-compactoror your own endpoint, select it under/settings→ Compaction model. See Custom compaction models. - Image models (
openai-imagesandopenrouter): Built-inopenai-imagesmodels reuse your OpenAI API key (openai-api,openaiAPI key, orOPENAI_API_KEY, skipping ChatGPT sign-in), whileopenrouterimage models reuse your OpenRouter credential. See Use image models and Codemode image generation.
How Atomic picks your startup model
When Atomic starts, it resolves the initial chat model in this order:1
CLI flags
Explicit
--model (with optional --provider) on the command line wins for that run.2
Resumed session model
When you run
--continue, --resume, or /resume, Atomic restores the model last used in that session (if still available and authenticated).3
Saved defaults and model scope
For a new session, Atomic uses
defaultProvider and defaultModel from settings.json when authenticated and inside any active enabledModels / --models scope. If your saved default is outside an active scope, Atomic starts on the first matched scoped model instead.4
Automatic preferred-provider selection
When no saved default applies (for example on first run, or when the saved model lacks credentials), Atomic walks its built-in preferred provider order and picks the first authenticated provider’s preferred default model. If none of those preferred IDs are available, it picks the first available authenticated model.
Unsupported saved
defaultProvider: If defaultProvider names a removed or unregistered provider even after extensions load, Atomic does not switch providers silently. Interactive mode warns and leaves model selection open, print and JSON modes write an error to stderr and exit nonzero, and RPC rejects prompt until you select an available model.Startup provider selection order
When multiple providers are authenticated and no saved default applies, Atomic checks providers in this built-in priority order and picks each provider’s preferred model first:/model and /scoped-models display cached catalogs immediately while refreshing network-backed catalogs in the background for up to 15 seconds. Run atomic update --models from the shell to refresh cached catalogs ahead of time.
Troubleshooting
- A model does not appear in
/model:- Verify credentials for its provider with
atomic auth check --provider <provider>(see Verify credentials before a session). - Check whether
enabledModelsis filtering the picker—pressTabinside/modelto show all authenticated models. - Remember that classifiers, image models, and compactors never appear in
/model. - On GitHub Copilot or OpenRouter,
/modelhides models your account or API key cannot access once an online refresh succeeds. Runatomic update --modelsor/loginafter plan changes. - On
llama.cppstarted with--no-models-autoload, load the model in/llamafirst before opening/model.
- Verify credentials for its provider with
- Auth works in one terminal window only: Environment variables (
export ANTHROPIC_API_KEY=...) apply only to that shell. Run/loginoratomic auth login <provider>to save credentials in~/.atomic/agent/auth.jsonfor every session. - Browser callback fails over SSH or on a remote host: Paste the final redirect URL or authorization code into the
/loginprompt, or runatomic auth login <provider> --no-browserfor a device-code or copy-code flow. - An OpenAI-compatible or local endpoint rejects requests: Servers such as Ollama, vLLM, and SGLang often reject the
developerrole orreasoning_effort. Addcompatflags (such as"supportsDeveloperRole": falseand"supportsReasoningEffort": false) in~/.atomic/agent/models.json, then open/modelor run/reload. See OpenAI compatibility. - A
-fastor-ultrafastmodel is missing or blocked for a subagent: Only eligible built-in models onopenai,openai-api,openai-codex,anthropic,anthropic-api, andxaireceive derived fast variants (plus account-advertised fast IDs ongithub-copilot). Custom entries undermodelsinmodels.jsonnever receive derived fast variants—usemodelOverridesinstead. IfenabledModelsis active, include the-fastor-ultrafastID explicitly (for example"openai-codex/gpt-6.2-sol*").
Next steps
Connect model providers
Sign in with subscriptions, store API keys, and configure cloud or specialized providers.
Run local models with llama.cpp
Discover, download, load, and run local GGUF chat models and classifiers.
Configure custom models
Add Ollama, LM Studio, vLLM, API proxies, image models, and remote compactors.
Models and thinking settings
Complete reference for
enabledModels, fallbackModels, decisionModel, and thinkingBudgets.