Swobu — LLM Router for VS Code, Claude Code & Codex
Use VS Code Agent with your own model providers. Keep the client. Swap the backend.
Put OpenRouter, Ollama, Bedrock, Azure, local models or other capacity behind one stable Swobu route. Change providers or fail over without changing the model selected in VS Code.
VS Code BYOK supports Agent/chat without a GitHub Copilot plan. Inline completions and semantic-search features are separate.
Swobu routes appear in Chat and Agent as native models. Open Manage Language Models, choose Swobu, and select a route such as code.
Models contributed through a LanguageModelChatProvider can also be consumed by other VS Code extensions through the Language Model API.
VS Code → Swobu route
Claude Code → same Swobu
Codex → same Swobu
Direct provider configuration couples the client to capacity. Swobu keeps the client-facing route stable and moves provider selection, balancing and fallback underneath it.
The code route stays selected while Swobu recovers through another target.
- Install Swobu for VS Code and run Swobu: Set Up.
- Create a Swobu route with your model capacity.
- Select the route in Manage Language Models and give Agent a task.
- VS Code Agent with Ollama or another local model
- VS Code Agent with OpenRouter
- Connect Claude Code through Swobu
- Connect Codex through Swobu
- Keep a route available with provider fallback
- The extension source is open.
- Provider credentials remain in Swobu.
- The VSIX contains no Swobu executable.
- Request content exists transiently in extension memory but is not independently persisted or logged by the extension.
No. VS Code supports BYOK models in Agent and chat without a GitHub Copilot plan. Inline completions and semantic-search features are separate.
Yes. Add Ollama, LM Studio, vLLM, llama.cpp or another compatible local endpoint to a Swobu route, then select that route in VS Code.
No. The extension can connect their official clients to the same Swobu installation and routes.
In Swobu, not this extension. The extension talks to your ordinary Swobu runtime.
Yes, when the selected Swobu route uses reachable local capacity. VS Code or other extensions may still use their own online services.
Swobu routes are normal VS Code language models.
const models = await vscode.lm.selectChatModels({
vendor: "swobu"
});Extensions using the standard Language Model API can consume the user's Swobu routes instead of implementing another provider stack.
English · 简体中文 · 日本語 · Português · Bahasa Indonesia · 한국어 · Español · Deutsch · Français · Русский · Українська
Report an issue with your VS Code version, platform and error message. Omit credentials and private request content.
Extension source is MIT licensed. Swobu is installed and licensed separately. Swobu is not affiliated with Microsoft, Anthropic or OpenAI.
Using Swobu successfully? A Marketplace rating helps other developers judge it.