Preflight Checklist
What's Wrong?
When using Claude Code with Ollama as a local model provider, the /model command works correctly in the integrated VSCode terminal but fails to list available Ollama models in the VSCode extension's chat interface.
What Should Happen?
Current Behavior
- ✅ CLI Terminal:
/model command lists and allows selection of Ollama models
- ❌ VSCode Extension:
/model command only shows Anthropic models
- ✅ CLI Terminal: Can successfully use Ollama models (e.g.,
/model kimi-k2.5:cloud)
- ❌ VSCode Extension: Cannot select or use Ollama models through the UI
Expected Behavior
The VSCode extension should:
- Detect Ollama models from the configured
ANTHROPIC_BASE_URL
- List available Ollama models in the
/model command dropdown
- Allow users to select and use Ollama models seamlessly
- Maintain feature parity with the CLI terminal experience
Error Messages/Logs
Steps to Reproduce
Setup Ollama with Claude Code:
# Set environment variables
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_API_KEY=""
# Start Ollama server
ollama serve
In VSCode Integrated Terminal (✅ WORKS):
# Open project with Claude Code support
cd /Users/homerokzam/iCloud-Local/Projects/CleanMyMac
source .venv/bin/activate
# Launch Claude Code in terminal
claude
# Switch model - this WORKS
/model kimi-k2.5:cloud
# Output: ✓ Set model to kimi-k2.5:cloud
In VSCode Extension Chat Panel (❌ FAILS):
- Open Claude Code chat panel in VSCode (using the extension icon or command)
- Type
/model in the chat
- Expected: A list of available Ollama models should appear (e.g.,
kimi-k2.5:cloud, qwen3-coder)
- Actual: Only Anthropic models are listed (Haiku 4.5, Sonnet 4.5, Opus 4.5, claude-sonnet-4-5-20250929), Ollama models are missing
Claude Model
Other
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
2.1.29
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information

Preflight Checklist
What's Wrong?
When using Claude Code with Ollama as a local model provider, the
/modelcommand works correctly in the integrated VSCode terminal but fails to list available Ollama models in the VSCode extension's chat interface.What Should Happen?
Current Behavior
/modelcommand lists and allows selection of Ollama models/modelcommand only shows Anthropic models/model kimi-k2.5:cloud)Expected Behavior
The VSCode extension should:
ANTHROPIC_BASE_URL/modelcommand dropdownError Messages/Logs
Steps to Reproduce
Setup Ollama with Claude Code:
In VSCode Integrated Terminal (✅ WORKS):
In VSCode Extension Chat Panel (❌ FAILS):
/modelin the chatkimi-k2.5:cloud,qwen3-coder)Claude Model
Other
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
2.1.29
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information