Viro API

Set up without code

Viro is an AI service that runs on clean energy. If you build with an AI coding tool, such as Cursor, Claude Code, Codex, OpenCode or Cline, you can have the tool set itself up to use Viro. All you do is copy and paste.

1. Get your Viro key

Sign in and go to API Keys, then click to create a key. It starts with viro_sk_live_. Copy it somewhere safe: it is shown once, and it works like a password, so don't post it or share it.

New accounts get $0.25 of free credit to try things out. Add more from Billing when you need it.

2. Paste this into your AI tool

Open a new chat in your AI coding tool and paste the prompt below. It will ask for your key, set itself up to use Viro, send a test request, and tell you the last step to switch over (usually restarting the tool).

Switch the coding tool you are running in (you, this agent) to use the Viro API as its default model provider. This is about your own configuration, not this project's code: do not add Viro to the project's source files.

About Viro: an OpenAI-compatible inference API at https://api.viro.app/v1 that only routes to verified-renewable or renewable-matched compute. Auth is a standard Bearer key (starts with viro_sk_live_ or viro_sk_test_) from https://console.viro.app/api-keys.

Do this:
1. Work out which tool you are and follow its Viro setup guide: https://console.viro.app/docs/integrations/<tool>, where <tool> is claude-code, codex, opencode, openclaw, cursor, hermes, cline, aider or continue. Fetch the guide instead of working from memory: each tool names models and config files differently.
2. Add Viro as a provider in the tool's user-level (global) config so it applies to every project, and make it the default. Default model: the viro/clean router (renewable-verified only), written the way the guide shows for this tool. If the tool has a separate small or background model, use viro/gpt-oss-20b for it. Keep my other providers available; only change the default.
3. Never write the API key into a config file that could be committed or shared. Read it from the VIRO_API_KEY environment variable, or the tool's own secret store, as its guide says. If I haven't given you a key, ask me for one or tell me exactly where to put it.
4. Before you finish, prove it works: send one short chat request through Viro with that key (model viro/clean) and tell me which model answered (the x-viro-resolved-model response header).
5. You cannot change the model of the session you are running in. End by telling me the exact step that switches me over in this tool (a command, a menu, or a restart) and how I'll know it worked.

Viro speaks OpenAI chat completions, OpenAI's Responses API and Anthropic's Messages API, so tools built on any of them work. If this tool can't take a custom provider at all, tell me plainly instead of setting up config that will never be used.
3. Check it worked

Ask your tool anything, then open Usage. Each request it sent through Viro is listed there, with what it cost and the energy it used.

If your tool has Viro's MCP server connected (the Viro plugin for Claude Code and Codex does this), you can also just ask it: "is my Viro key working?", "what did I spend this week?" or "why did my last request fail?".

Just want to try it?

The Playground lets you chat with any Viro model in your browser, no setup needed. To compare models by price and energy, see Models.

Stuck? Email nick@viro.app.