Set up a free, open-source AI coding agent in VS Code. Use any model — Claude, GPT, Gemini, DeepSeek, or run local models with Ollama. No paid subscriptions required.
Get a fully autonomous AI coding agent running in under 10 minutes:
Download Visual Studio Code from the official site:
https://code.visualstudio.com/Download
Available for Windows, macOS, and Linux.
Ctrl+Shift+X (or Cmd+Shift+X on Mac) to open ExtensionsRoo CodeOr install directly from: VS Code Marketplace
Roo Code needs an LLM provider. The easiest free option is OpenRouter:
OpenRouter gives you access to dozens of free models including DeepSeek, Qwen, Gemini, and more.
qwen/qwen3-coder:free — best free coding modeldeepseek/deepseek-chat-v3-0324:free — strong all-roundergoogle/gemini-2.5-flash:free — fast and capableFor full privacy, run models on your own machine with Ollama:
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen2.5-coder:7b
Then select Ollama as the provider in Roo Code settings.
Open any project folder in VS Code, click the Roo Code panel, and try a prompt:
Create a Python script that fetches the top 5 Hacker News stories and prints their titles.
Roo Code will create the file, write the code, and can even run it for you. It has full access to your terminal, file system, and browser (with your permission).
Enhance your AI development setup with these tools: