[BUG] VSCode Extension: Ollama models not listed in `/model` command (works in CLI terminal)

Resolved 💬 3 comments Opened Feb 1, 2026 by homerokzam Closed Feb 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

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:

  1. Detect Ollama models from the configured ANTHROPIC_BASE_URL
  2. List available Ollama models in the /model command dropdown
  3. Allow users to select and use Ollama models seamlessly
  4. 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):

  1. Open Claude Code chat panel in VSCode (using the extension icon or command)
  2. Type /model in the chat
  3. Expected: A list of available Ollama models should appear (e.g., kimi-k2.5:cloud, qwen3-coder)
  4. 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

<img width="1746" height="1054" alt="Image" src="https://github.com/user-attachments/assets/375f79cc-3275-415e-aae6-c9e490559ec0" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗