Quick start
The CLI integrates automatically with the following model providers — no extra configuration needed beyond installing the relevant provider package.-
Install provider packages
Each model provider requires installing its corresponding LangChain integration package. These are available as optional extras when installing the CLI:
-
Set credentials
Most providers require an API key. Set the appropriate environment variable listed in the table below. Some providers use other credentials (for example, Vertex AI uses
GOOGLE_CLOUD_PROJECTplus ADC). Refer to each integration package’s docs for details.
Provider reference
Using a provider not listed here? See Arbitrary providers — any LangChain-compatible provider can be used in the CLI with some additional setup.Switching models
To switch models in the CLI, either:-
Use the interactive model switcher with the
/modelcommand. This displays a hardcoded list of known model profiles sourced from each LangChain provider package.Note that these profiles are not an exhaustive list of available models. If the model you want isn’t shown, use option 2 instead (useful for newly released models that haven’t been added to the profiles yet). -
Specify a model name directly as an argument, e.g.
/model openai:gpt-4o. You can use any model supported by the chosen provider, regardless of whether it appears in the list from option 1. The model name will be passed to the API request. -
Specify the model at launch via
--model, e.g.
Setting a default model
You can set a persistent default model that will be used for all future CLI launches:-
Via model selector: Open
/model, navigate to the desired model, and pressCtrl+Sto pin it as the default. PressingCtrl+Sagain on the current default clears it. -
Via command:
/model --default provider:model(e.g.,/model --default anthropic:claude-opus-4-6) -
Via config file: Set
[models].defaultin~/.deepagents/config.toml(see Configuration). -
From the shell:
-
From the shell:
-
Via command:
/model --default --clear -
Via model selector: Press
Ctrl+Son the currently pinned default model.
Model resolution order
When the CLI launches, it resolves which model to use in the following order:--modelflag always wins when provided.[models].defaultin~/.deepagents/config.toml— The user’s intentional long-term preference.[models].recentin~/.deepagents/config.toml— The last model switched to via/model. Written automatically; never overwrites[models].default.- Environment auto-detection — Falls back to the first available startup credential, checked in order:
OPENAI_API_KEY,ANTHROPIC_API_KEY,GOOGLE_API_KEY,GOOGLE_CLOUD_PROJECT(Vertex AI).
--model, /model, and saved defaults ([models].default / [models].recent).
Model routers and proxies
Model routers like OpenRouter and LiteLLM provide access to models from multiple providers through a single endpoint. Use the dedicated integration packages for these services:
OpenRouter is a built-in provider — install the package and use it directly:
Advanced configuration
For detailed configuration of provider params, profile overrides, custom base URLs, compatible APIs, arbitrary providers, and lifecycle hooks, see Configuration.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

