OpenRouter in VS Code

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.

What is OpenRouter?

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.

How to use OpenRouter in VS Code

Install in VS Code View on the VS Code Marketplace

Need a key? Create one at openrouter.ai/keys.

Choosing a model

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.

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.

Questions

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.