Run a 120B parameter AI coding agent from your terminal β for free. No GPU, no expensive subscription, no local hardware requirements.
I built a complete production landing page β 3 files, animations, pricing tiers, dark UI β in under 2 minutes. Zero cost. This repo is the complete setup guide.
This repo contains everything you need to set up OpenCode as a fully autonomous AI coding agent connected to OpenRouter's free tier β so you can run a 120B parameter model from any machine without a GPU.
| Tool | Role |
|---|---|
| π» OpenCode | Agentic coding CLI β reads, writes, runs your code |
| π OpenRouter | Model gateway β one API key, 100+ models |
| π’ NVIDIA Nemotron 3 Super | 120B free model β 262K context window |
| π₯οΈ VS Code | Your editor β PowerShell terminal |
| Requirement | Detail |
|---|---|
| OS | Windows / Mac / Linux |
| Node.js | v18 or higher |
| Terminal | PowerShell (Windows) / Bash (Mac/Linux) |
| GPU | β Not required |
| API Key | Free β openrouter.ai |
π macOS
brew install node
node --versionπ§ Linux
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
node --versionnpm install -g opencode-aiVerify install:
opencode --versionShould show 1.14.24 or higher.
πͺ Windows (PowerShell)
mkdir opencode-demo
cd opencode-demoπ macOS / π§ Linux
mkdir opencode-demo && cd opencode-demo- Go to openrouter.ai
- Create a free account β no credit card required
- Go to API Keys β Create
- Name it
opencode-demo - Copy your key β starts with
sk-or-v1-
πͺ Windows β Session Only (PowerShell)
$env:OPENROUTER_API_KEY = "sk-or-v1-YOUR-KEY-HERE"πͺ Windows β Permanent (Recommended)
[Environment]::SetEnvironmentVariable("OPENROUTER_API_KEY", "sk-or-v1-YOUR-KEY-HERE", "User")Then close and reopen your terminal.
π macOS / π§ Linux β Session Only
export OPENROUTER_API_KEY="sk-or-v1-YOUR-KEY-HERE"π macOS / π§ Linux β Permanent
echo 'export OPENROUTER_API_KEY="sk-or-v1-YOUR-KEY-HERE"' >> ~/.zshrc
source ~/.zshrcFor bash:
echo 'export OPENROUTER_API_KEY="sk-or-v1-YOUR-KEY-HERE"' >> ~/.bashrc
source ~/.bashrcVerify:
echo $env:OPENROUTER_API_KEY # Windows
echo $OPENROUTER_API_KEY # Mac/LinuxList all models:
opencode modelsFilter free models only:
# Windows
opencode models | Select-String ":free"# Mac/Linux
opencode models | grep ":free"OpenCode config is stored globally at:
| OS | Path |
|---|---|
| Windows | C:\Users\<username>\.config\opencode\opencode.json |
| Mac/Linux | ~/.config/opencode/opencode.json |
Open config:
# Windows
code $env:USERPROFILE\.config\opencode\opencode.json# Mac/Linux
code ~/.config/opencode/opencode.jsonPaste this config:
{
"$schema": "https://opencode.ai/config.json",
"model": "openrouter/nvidia/nemotron-3-super-120b-a12b:free",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenRouter",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "{env:OPENROUTER_API_KEY}"
},
"models": {
"nvidia-nemotron-3-super": {
"name": "nvidia/nemotron-3-super-120b-a12b:free",
"limit": {
"context": 262144,
"output": 32768
}
}
}
}
}
}
β οΈ TheapiKeyfield reads from your environment variable β your actual key never sits in plain text.
opencode run "Who are you and what model are you running on?"You should see a response confirming OpenCode is running on NVIDIA Nemotron 3 Super via OpenRouter. β
Launch the full terminal interface:
opencode| Command | Action |
|---|---|
/models |
Switch model mid-session |
/theme |
Change UI theme |
/skills |
Browse available skills |
/sessions |
Manage multiple sessions |
/undo |
Undo last agent action |
/redo |
Redo undone action |
/thinking |
Toggle model reasoning visibility |
Ctrl+P |
Open command palette |
Esc x2 |
Interrupt current task |
Tab |
Toggle Plan / Build mode |
opencode run "Create a Python script called hello.py that prints Hello from OpenCode"Run this in your project folder:
opencode run "@
ACT AS: Senior Frontend Developer & UI/UX Designer.
TASK: Create a professional 3-file landing page for 'PitchZero Intelligence' β
an AI-powered platform tracking venture capital funding and startup investment signals.
BRANDING:
- Theme: Deep Obsidian black (#0a0a0a)
- Accent: Electric Ultraviolet (#8b5cf6)
- Tone: High-tech, minimalist, data-driven
SECTIONS:
1. Hero with headline and CTA
2. Intelligence Stack: Live Funding Tracks, Agentic Logic Analysis, Sector Velocity
3. PitchZero Feed: mock blog/newsletter layout
4. Pricing: Free, Pro, Enterprise tiers
FILES TO GENERATE:
- index.html (Semantic HTML5)
- style.css (Flexbox/Grid, neon-glow class)
- app.js (scroll animations, newsletter signup)
OUTPUT: Write all 3 files completely.
@"Open in browser:
# Windows
start .\index.html# Mac/Linux
open index.htmlYou type a prompt in OpenCode
β
OpenCode sends HTTPS request to OpenRouter API
β
OpenRouter routes to NVIDIA Nemotron 3 Super (free tier)
β
Model thinks, reasons, generates response
β
OpenCode acts β creates files, runs commands, edits code
β
Loop continues until task is complete
No GPU on your machine. No local model download. Everything runs in the cloud via OpenRouter.
| Item | Detail |
|---|---|
| Cost | $0.00 per request on free models |
| Rate limit | ~20 requests/minute |
| Daily cap | Token budget per model |
| Data policy | Free tier prompts may be used to improve models |
| Fix if you hit limits | Add $5 credits β goes a very long way |
π‘ Monitor your usage at openrouter.ai/activity
- Hit rate limit mid-task? Wait for daily reset or add $5 credits
- Wrong model ID error? Use the full ID:
openrouter/nvidia/nemotron-3-super-120b-a12b:free - API key not found? Close and reopen terminal after setting permanent env variable
- Want a different free model? Run
opencode models | grep ":free"and updateopencode.json - Sensitive data? Don't use free tier endpoints β prompts may be logged by providers
opencode-demo/
βββ opencode.json # Optional per-project config
βββ README.md # This file
βββ outputs/
βββ index.html # Generated landing page
βββ style.css # Generated styles
βββ app.js # Generated JavaScript
Found an issue or want to add more model configs? Pull requests welcome.
MIT License β free to use, modify and share.
Zero Cost. No GPU. Any Machine.
Built with OpenCode + OpenRouter + NVIDIA Nemotron 3 Super