Free and open source
A free extension that connects Visual Studio Code to OpenRouter, so you can chat with hundreds of AI models and let an agent work on your code with your own API key.
OpenRouter is a single API that reaches hundreds of AI models from Anthropic, OpenAI, Google, Meta, DeepSeek, Mistral and others. One key, one endpoint, one balance, instead of a separate account and bill for every provider.
OpenRouter Client is our free, open source extension that brings it into Visual Studio Code. It adds a chat sidebar, answers as @openrouter in the VS Code Chat window, and puts OpenRouter models in the editor's own model picker. We built it, we publish the source, and it costs nothing: you only pay OpenRouter for the tokens you use.
A sidebar chat with streaming replies, your current selection as context, saved history and slash commands.
It reads, searches and edits files and runs terminal commands, with a diff to approve before anything changes.
Sort the catalogue by recommended, cheapest, strongest or largest context, and filter to tool-capable, free or vision models.
Your real OpenRouter balance is read with your key, and every request reports its own cost. Nothing is estimated.
Select Install in VS Code on this page, or search for OpenRouter Client in the VS Code Extensions view. It is free, open source, and needs VS Code 1.145 or later.
Sign in at openrouter.ai and create an API key at https://openrouter.ai/keys. Keys start with sk-or-v1-. Add credits, or start with the models that cost nothing.
Open the OpenRouter tab in the right sidebar of VS Code, paste the key, then choose a model and ask it to explain, write or fix code. You can also type @openrouter in the VS Code Chat window.
Need a key? Create one at openrouter.ai/keys.
There are several hundred models and the prices differ by orders of magnitude, so the extension shows what each one costs and lets you sort and filter the list.
Models with the best published benchmark scores that can also call tools, so the agent can edit files
Free models first, then the lowest price per million tokens
Highest published benchmark score, cost aside
Most context tokens first, for working with very large files
Tool support, free only, vision, or a single vendor such as Anthropic or OpenAI
Each row shows the price per million tokens for input and output, the context window, whether the model supports tools, vision and reasoning, and its benchmark score where one is published. Free models cost nothing but have lower rate limits.
Yes. OpenRouter Client is free and open source under the MIT licence. You pay only OpenRouter for the tokens you use, and some models cost nothing at all.
Install the free OpenRouter Client extension from the VS Code Marketplace, open the OpenRouter tab in the right sidebar, and paste an API key from openrouter.ai. You can then chat with models and let an agent work on your code.
Yes. OpenRouter Client is an independent, open source extension. Install it from the VS Code Marketplace at https://marketplace.visualstudio.com/items?itemName=IoannisKokkinis.openrouter-client, or read the source at https://github.com/upggr/openrouter-client.
Every chat model in the OpenRouter catalogue, which is several hundred and changes often, from Anthropic, OpenAI, Google, Meta, DeepSeek, Mistral, Qwen and more. There is also automatic routing, which picks a model for each request.
https://openrouter.ai/api for Claude and the Anthropic SDK, and https://openrouter.ai/api/v1 for OpenAI-compatible clients. The extension fills this in for you. Requests use your API key as a bearer token.
Some models on OpenRouter are free to use, with lower rate limits, and the extension can filter the list to show only those. For everything else you add credits to your OpenRouter account and pay per token.
In VS Code secret storage, never in your project files. The extension also removes the key from the environment of any terminal command the agent runs.
Yes, and you stay in control. There are four permission modes, from asking before every change to accepting edits automatically, and file changes are shown as a diff you approve. You can also undo a whole turn's changes in one click.
No. OpenRouter Client is an independent project by BUY IT and is not affiliated with or endorsed by OpenRouter. OpenRouter is a product of OpenRouter, Inc.
It works alongside it. The extension registers as a model provider, so OpenRouter models appear in the VS Code Chat model picker and can be used by VS Code's own Agent mode, next to anything else you have installed.
OpenRouter is a product of OpenRouter, Inc. OpenRouter Client is an independent open source project by BUY IT and is not affiliated with or endorsed by OpenRouter.