Viro API

MCP server

Viro runs an MCP server at https://console.viro.app/mcp (Streamable HTTP). Connect it to your coding agent and the agent can read these docs and look up live models instead of guessing, and, with your API key, answer questions about your own account: "is my Viro key working?", "what did I spend this week?", "why did my last request fail?".

Tools
ToolWhat it doesKey?
search_docsSearch these docs.No
read_pageRead one docs page as Markdown.No
list_pagesEvery docs page, with a one-line description.No
list_modelsLive models, prices, context windows and energy standard.No
check_setupIs the key working, the balance, the rate and spend limits.Yes
get_usageSpend, requests, errors, tokens and energy by model and day.Yes
list_requestsRecent requests: status, error code, model, cost, latency.Yes
get_requestOne request by id (the x-request-id response header).Yes

All read-only and free. The account tools use the Account & usage API. Prompts are never stored, so request details never include them.

Your key

Create a key on API Keys and export it as VIRO_API_KEY in your shell profile, so it never sits in a config file you might share. The server reads it from the Authorization: Bearer (or x-api-key) header on each request, passes it to the API and doesn't store it. Without a key, the docs tools still work and the account tools say how to add one.

Connect it

Using Claude Code or Codex? The Viro plugin connects it for you. Otherwise:

Claude Code

In a terminal:

claude mcp add --transport http --scope user viro-docs https://console.viro.app/mcp --header "Authorization: Bearer $VIRO_API_KEY"

The Viro plugin sets this up for you and reads VIRO_API_KEY when Claude Code starts.

Codex CLI

In a terminal:

codex mcp add viro-docs --url https://console.viro.app/mcp --bearer-token-env-var VIRO_API_KEY

Codex skips this server entirely if VIRO_API_KEY isn’t set. The Viro plugin connects it in a way that keeps the docs tools without a key.

OpenCode

In ~/.config/opencode/opencode.json, next to your provider settings:

"mcp": {
  "servers": {
    "viro-docs": {
      "type": "remote",
      "url": "https://console.viro.app/mcp",
      "headers": { "Authorization": "Bearer {env:VIRO_API_KEY}" }
    }
  }
}

Cline

With the Cline CLI:

cline mcp add viro-docs https://console.viro.app/mcp --transport http --header "Authorization: Bearer $VIRO_API_KEY" --yes

In the VS Code extension, add it as a remote (Streamable HTTP) server with the same URL and Authorization header.

Continue

In ~/.continue/config.yaml, with the key in ~/.continue/.env as VIRO_API_KEY=...:

mcpServers:
  - name: viro-docs
    type: streamable-http
    url: https://console.viro.app/mcp
    requestOptions:
      headers:
        Authorization: Bearer ${{ secrets.VIRO_API_KEY }}

OpenClaw

In ~/.openclaw/openclaw.json, with the key in ~/.openclaw/.env:

"mcp": {
  "servers": {
    "viro-docs": {
      "transport": "streamable-http",
      "url": "https://console.viro.app/mcp",
      "headers": { "Authorization": "Bearer ${VIRO_API_KEY}" }
    }
  }
}

Other MCP clients

Add a remote (Streamable HTTP) server with the URL https://console.viro.app/mcp and the header Authorization: Bearer <your key>. For docs only, leave the header out. Apps that only connect through a sign-in flow, such as claude.ai and ChatGPT connectors, can't send an API key, so the account tools won't work there; we haven't tested those apps yet.