Skip to main content
Atomic ships built-in model catalogs for cloud subscriptions, API-key providers, and local inference servers, and lets you add custom endpoints without leaving your session. Use this guide to pick how to connect, switch models and thinking effort day to day, and configure scopes, fallbacks, and specialized models.

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:
Derived -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:
See CLI model options for all model flags and fuzzy matching rules.

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):
When a scope is active:
  • Startup model: A new session starts on your saved default if it is in scope, or on the first matched scoped model otherwise.
  • Ctrl+P and /model: Cycling walks only scoped models in order. /model opens filtered to scoped models (press Tab to 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.
Editing enabledModels through /scoped-models saves explicit provider/id strings to global settings.json, replacing hand-written globs and :thinking suffixes. Edit settings.json directly when you want to keep globs or per-model thinking suffixes. See enabledModels.

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 in fallbackModels. Child subagent fallbacks still stay within the session’s enabledModels scope.
  • Per-run overrides: Pass --fallback-models to replace the chain for one run, or --no-fallback to disable fallbacks. Passing --model on 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.
Because switching providers changes billing and data-handling terms, include only approved providers in 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): Leave decisionModel empty or "auto" to use your active chat model for structured decisions (structured_output and decide()), or pin a fast classifier such as typesafe/jev-latest, openai-decisions/gpt-6-luna, or a local llama.cpp/<id> model in /settings. Changes in /settings apply immediately without /reload. See decisionModel and 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 as morph/morph-compactor or your own endpoint, select it under /settings → Compaction model. See Custom compaction models.
  • Image models (openai-images and openrouter): Built-in openai-images models reuse your OpenAI API key (openai-api, openai API key, or OPENAI_API_KEY, skipping ChatGPT sign-in), while openrouter image 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 enabledModels is filtering the picker—press Tab inside /model to show all authenticated models.
    • Remember that classifiers, image models, and compactors never appear in /model.
    • On GitHub Copilot or OpenRouter, /model hides models your account or API key cannot access once an online refresh succeeds. Run atomic update --models or /login after plan changes.
    • On llama.cpp started with --no-models-autoload, load the model in /llama first before opening /model.
  • Auth works in one terminal window only: Environment variables (export ANTHROPIC_API_KEY=...) apply only to that shell. Run /login or atomic auth login <provider> to save credentials in ~/.atomic/agent/auth.json for every session.
  • Browser callback fails over SSH or on a remote host: Paste the final redirect URL or authorization code into the /login prompt, or run atomic auth login <provider> --no-browser for 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 developer role or reasoning_effort. Add compat flags (such as "supportsDeveloperRole": false and "supportsReasoningEffort": false) in ~/.atomic/agent/models.json, then open /model or run /reload. See OpenAI compatibility.
  • A -fast or -ultrafast model is missing or blocked for a subagent: Only eligible built-in models on openai, openai-api, openai-codex, anthropic, anthropic-api, and xai receive derived fast variants (plus account-advertised fast IDs on github-copilot). Custom entries under models in models.json never receive derived fast variants—use modelOverrides instead. If enabledModels is active, include the -fast or -ultrafast ID 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.