r/opencodeCLI • • 6h ago

[Release Candidate] Plugin opencode-models-discovery v2.0.0-rc.2 is here β€” Full OpenCode v2 Support is ready for testing!

Hey r/opencodeCLI! πŸ‘‹

With OpenCode v2 rolling out, the way plugins interact with the core runtime has taken a massive leap forward. Today, we’re excited to announce opencode-models-discovery v2.0.0-rc.2 β€” completely rebuilt to bring full, native support for OpenCode v2 while making dynamic model discovery faster, safer, and truly reactive.

If you use local models or custom gateways (vLLM, LiteLLM, Ollama, LM Studio, Bifrost, etc.), we’d love for you to take rc.2 for a spin!

πŸš€ What Changes in the V1 βž” V2 Evolution?

In OpenCode v1, model discovery relied on disk-based caches, file locks, and static configuration updates that often required app restarts.

In v2.0.0, we’ve redesigned the plugin around OpenCode v2’s native architecture:

  • ⚑ Native Reactive Catalog (Zero Restarts)
  • Models from your OpenAI-compatible endpoints are discovered and transformed directly through OpenCode v2’s dynamic provider controller. No config rewrites, no restarting the CLI or TUI.
  • πŸ”’ Native ctx.storage Engine (No More Disk-Cache Baggage)
  • Gone are the legacy XDG disk-cache files and file-lock contention. Caching now uses OpenCode v2’s isolated storage API. Discovered caches and enrichments are managed cleanly without leaking credentials or API keys to disk.
  • πŸŽ›οΈ Live Model Overrides in Console
  • Fine-tune model capabilities, context windows, and reasoning tiers right from the OpenCode model console. Custom tweaks are persisted under clean, scoped override keys instead of manual config edits.
  • πŸ”‘ Seamless /connect Integration
  • First-class credential resolution: works out-of-the-box with OpenCode v2’s managed connections, integration IDs, and environment variables without needing duplicate API keys in your config.
  • πŸ›‘οΈ Hardened & Standardized Token Limits
  • Whether you're pulling metadata from models.dev, LiteLLM, LM Studio, or raw OpenAI /v1/models responses, context and output token limits are normalized to match OpenCode v2’s token budgeting specifications.

πŸ“¦ Quick Start with OpenCode v2

You can try 2.0.0-rc.2 today by adding it to your opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": [
    "npm:opencode-models-discovery@2.0.0-rc.2"
  ],
  "providers": {
    "local-gateway": {
      "name": "Local Gateway",
      "package": "@opencode-ai/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "http://127.0.0.1:8000/v1",
        "modelsDiscovery": {
          "enabled": true,
          "smartModelName": true,
          "modelInfoFormat": "models.dev"
        }
      }
    }
  }
}

πŸ’¬ Help Us Test Before Final v2.0.0 GA!

We are putting the final touches on v2.0.0 and want to ensure rock-solid compatibility across all OpenCode v2 setups, environments, and local model servers.

Give v2.0.0-rc.2 a spin and let us know your thoughts, feedback, or any issues you encounter in the comments below!

5 Upvotes

Duplicates