
Use AI models configured in your local OpenCode (>= 2.0) installation inside Raycast AI Chat, Quick AI, and AI Commands — with full support for Raycast AI Extensions tool calling, prompt caching, vision attachments, reasoning effort variants, and clean Raycast system prompts.
| Feature | OpenCode (existing Store extension) | OpenCode Models (this extension) |
|---|---|---|
| Backend | OpenCode Console cloud endpoint + API key | Your local OpenCode (>= 2.0) installation & providers |
| Setup | Requires OpenCode Console API key | Zero-config auto-discovery of local opencode serve --service |
| Providers | OpenCode Console catalog only | Every provider configured in OpenCode (GitHub Copilot, OpenCode Go, xAI, Anthropic, OpenAI, Ollama, LM Studio, custom endpoints, etc.) |
| Tool Calling & Caching | Standard OpenAI-compatible chat endpoint | Full client-executed Raycast AI Extensions loop + OpenCode session prompt caching |
>= 2.0 installed and configured with at least one enabled provider.opencode auth / opencode models).Model Name (Provider).No manual configuration is required. If the OpenCode background service (opencode serve --service) is not already running, the extension automatically finds your opencode binary and starts it on demand.
When you run a completion in Raycast:
@opencode/client/service (or starts opencode serve --service if enabled).<supportPath>/opencode-workspace/), the extension creates a minimal isolated workspace containing .opencode/plugins/.
~/.config/opencode/ or any git repository.AGENTS.md with Raycast's own request.system prompt and temperature.rc with all built-in OpenCode filesystem/shell tools explicitly denied via session permissions).cache.read / promptCacheKey / session affinity) and provider reasoning state are preserved across tool loops and multi-turn chats.source: "raycast-opencode-models", automatically archived once idle so your OpenCode session list stays uncluttered, and garbage-collected after 24 hours (or capped at 50 sessions).All preferences are optional:
opencode executable (leave blank for automatic detection across Homebrew, ~/.opencode/bin, ~/.local/bin, ~/.bun/bin, and PATH).opencode serve URL instead of local service discovery. (Note: local workspace bridge features require the server to be able to read <supportPath>/opencode-workspace.)opencode serve --service when no local >= 2.0 service is running (enabled by default).opencode --version outputs 2.x in Terminal, or set OpenCode CLI Path to which opencode.Browse, enable, or disable models from your local OpenCode installation and check service status
Reload available AI models from your local OpenCode installation
>= 2.0) installation inside Raycast AI Chat, Quick AI, and AI Commands as Model Name (Provider).