Complete guide to setting up your AI agent development environment with VS Code + Roo Code extension, OpenRouter API and Browser-Use.
Follow these steps to configure your AI agent development environment:
Download and install Visual Studio Code from the official website:
https://code.visualstudio.com/Download
Choose the appropriate version for your operating system (Windows, macOS, or Linux).
Open VS Code and install the Roo Code extension:
Set up your OpenRouter API access with the deepseek model:
deepseek/deepseek-chat-v3-0324:free
Set up Browser-Use for web browsing capabilities by self-hosting:
git clone https://github.com/browser-use/browser-use
pip install browser-use
browser-use
Example test command (after setup):
// JavaScript example
const response = await fetch('https://api.browser-use.com/v1/search', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'current AI news',
max_results: 3
})
});
const data = await response.json();
console.log(data);
Create a test file with the following code to verify everything works:
// test-agent.js
const { RooAI } = require('roo-code');
const ai = new RooAI({
llm: {
provider: 'openrouter',
model: 'deepseek/deepseek-chat-v3-0324:free'
},
browser: {
provider: 'browser-use'
}
});
async function testAgent() {
// Test LLM
const response = await ai.ask('What is the capital of France?');
console.log('AI Response:', response);
// Test browser
const searchResults = await ai.browse('Latest AI news March 2025');
console.log('Search Results:', searchResults.slice(0, 2));
}
testAgent();
Run the file in VS Code's terminal to confirm both the LLM and browser functionality work.
Enhance your AI agent with these additional capabilities: