Your Coding Agent Can Now Run on Clean Energy
The Viro API now works with Claude Code and Codex as well as OpenCode, Cline, Aider, Continue, OpenClaw and Hermes. Tested setup guides, a one-command plugin, and an agent that can check your own usage.
Coding agents do a lot of AI work. Every step of a task sends your code back to a model, so an agent uses far more compute than a chat does (here’s where it goes). We think that work should run on clean energy, and as of this week you can do that with the agent you already use.
The Viro API routes every request to models running on 100% renewable energy, or to frontier models with their electricity matched with renewables, labelled so you always know which is which.
What’s new
Claude Code and Codex now run on Viro directly. The Viro API now speaks Anthropic’s Messages API (what Claude Code uses) and OpenAI’s Responses API (what Codex uses), alongside OpenAI chat completions. Point either agent at Viro with a few settings and keep everything else: your CLAUDE.md or AGENTS.md, skills, MCP servers and habits.
Tested guides for eight agents. We ran a real task (run a failing test, fix the bug, run it again) through each agent against the live API, then rewrote each guide around what actually happened: Claude Code, Codex, OpenCode, Hermes Agent, Cline, Aider, Continue and OpenClaw, plus Cursor. They’re all in the integrations docs.
A one-command plugin for Claude Code and Codex. Install it and ask your agent to “run on Viro”. It asks for your key, sets itself up, sends a test request and tells you how to switch over.
/plugin marketplace add nick-viro/viro-skills
/plugin install viro@viro
(For Codex: codex plugin marketplace add nick-viro/viro-skills, then codex plugin add viro@viro.)
Your agent can check your account. Viro’s MCP server gives your agent our docs and live model list, and, with your API key, your own account. Ask “is my Viro key working?”, “what did I spend this week?” or “why did my last request fail?” and it answers from your usage. Prompts are never stored, so they’re never shown.
Setup without code. Not a developer? Set up without code walks you through it in three steps: get a key, paste one prompt into your AI tool, check it worked.
Picking a model
Start with viro/clean. It’s a router that picks a model on 100% renewable-powered infrastructure for each request, and never falls back to anything else. viro/optimized picks the cheapest model that can handle the task, and viro/frontier the strongest one available. Prices for every model are on the models page, and every request shows up in your console with its cost and estimated energy.
Try it
Get a free Viro API key (no card needed), then follow the guide for your agent. If something doesn’t work the way the guide says, tell us at nick@viro.app and we’ll fix it.
Frequently asked questions
Which coding agents work with the Viro API?
Claude Code, Codex CLI, OpenCode, Hermes Agent, Cline, Aider, Continue and OpenClaw, each tested end to end against the live API, plus Cursor through its OpenAI base URL setting. Anything that takes a custom OpenAI-compatible base URL works too.
Do I have to change how I work?
No. Only the model provider changes. Your agent, its config, your instruction files and MCP servers stay the same.
What does clean energy mean here?
Viro's open models run on infrastructure verified as 100% renewable-powered. Frontier models from OpenAI, Anthropic, Google and xAI run on their makers' infrastructure, and Viro matches their electricity with renewable energy, labelled Energy Matched.
How much does it cost?
You pay per token at each model's price, listed on the models page. New accounts get free credit and no card is needed.
Sources
- Viro API integrations, Viro
- Viro MCP server, Viro
- Viro plugin for Claude Code and Codex, GitHub
Cover photo by Andreas Gücklhorn on Unsplash



