LLM Providers
Seven first-class providers with live model discovery, streaming, and full tool support. Switch mid-conversation without losing context.
Supported Providers
OpenAnalyst Default
OpenAnalyst's own API with models fetched live.
OPENANALYST_AUTH_TOKEN
Anthropic / Claude OAuth
Claude Opus, Sonnet, Haiku with extended thinking support.
openanalyst login or ANTHROPIC_API_KEY
OpenAI / Codex OAuth
GPT-4o, o3, Codex Mini via direct OpenAI API.
openanalyst login or OPENAI_API_KEY
Google Gemini OAuth
Gemini 2.5 Pro, Gemini 2.5 Flash with live model discovery.
openanalyst login or GEMINI_API_KEY
xAI / Grok
Grok-3, Grok Mini with streaming tool support.
XAI_API_KEY
OpenRouter
350+ models from any provider through a single gateway.
OPENROUTER_API_KEY
Amazon Bedrock
AWS-hosted models with live discovery from your Bedrock account.
BEDROCK_API_KEY
Mid-Conversation Model Switching
One of OpenAnalyst's defining features: switch models without losing your conversation context.
# Start with Claude
openanalyst --model opus
> explain this codebase
# Switch to GPT-4o mid-conversation
/model gpt-4o
> now refactor the auth module
# Switch to Gemini for review
/model gemini-2.5-pro
> review the changes for security issues
Model Aliases
Use short aliases instead of full model IDs:
| Alias | Resolves To | Provider |
|---|---|---|
opus | claude-opus-4-6 | Anthropic |
sonnet | claude-sonnet-4-6 | Anthropic |
haiku | claude-haiku-4-5 | Anthropic |
gpt-4o | gpt-4o | OpenAI |
o3 | o3 | OpenAI |
codex-mini | codex-mini-latest | OpenAI |
gemini-2.5-pro | gemini-2.5-pro-preview | |
gemini-2.5-flash | gemini-2.5-flash-preview | |
grok | grok-3 | xAI |
grok-mini | grok-3-mini | xAI |
Live Model Discovery
All providers support live model discovery — available models are fetched from the provider's API at runtime, so you always have access to the latest models without updating the CLI.
# List available models for current provider
/model
# List models from a specific provider
openanalyst models --provider openai
Provider Feature Matrix
| Feature | OpenAnalyst | Anthropic | OpenAI | Gemini | xAI | OpenRouter | Bedrock |
|---|---|---|---|---|---|---|---|
| Streaming | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Tool calling | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Live discovery | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Extended thinking | ✓ | ✓ | — | — | — | Varies | — |
| OAuth login | ✓ | ✓ | ✓ | ✓ | — | — | — |