Skip to content
MCP server

OpenRouter 工作台 Local

Local OpenRouter cost analytics, reports, experiments and routing presets over stdio

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted, macOS
Runs
Locally
Version
0.6.0-alpha.3
Listing updated
today

Similar MCP servers

About OpenRouter 工作台 Local

OpenRouter 工作台 Local is an open-source MCP server for analytics and data. It runs locally on your machine and is started by your AI client.

This alpha package gives an assistant 28 tools for understanding your own OpenRouter spending. They cover cost analytics, call metadata, anomaly investigation, saved reports, cost experiments and versioned routing presets, with records kept in a local SQLite database that survives restarts and package removal. It is a third-party project, not an OpenRouter product, and its interface text is mainly Chinese.

It needs Node.js 22.22 or newer or 24+, your own OpenRouter management key supplied through client secret settings, and a dedicated private data directory. A doctor command checks the Node version, key permissions and directory access, making at most two fixed read requests, or none with an offline flag.

The local edition has no dashboard, scheduler or automatic Telegram delivery, and it runs no paid inference, top-ups, key changes or production routing switches. It is Apache-2.0 licensed and version 0.6.0-alpha.3.

Install

Run in a terminal

claude mcp add openrouter-analytics-mcp --env OPENROUTER_MANAGEMENT_KEY='<OPENROUTER_MANAGEMENT_KEY>' --env OPENROUTER_WORKBENCH_DATA_DIR='<OPENROUTER_WORKBENCH_DATA_DIR>' -- npx -y @cyuanxv/openrouter-analytics-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "openrouter-analytics-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OPENROUTER_MANAGEMENT_KEYYour own OpenRouter Management Key; keep it in the MCP client secret environment.Required
  • OPENROUTER_WORKBENCH_DATA_DIRAbsolute dedicated private data directory for the local SQLite database.Required

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

routerlens_status
Reports mode, adapter version and what has been verified.

What it does

28 tools
Cost analytics, reports, experiments and routing presets.
Local SQLite storage
Records stay in a private data directory.
Doctor command
Checks Node, key and directory setup, online or offline.
Read-focused safety
No paid inference, top-ups or key changes.
Anomaly investigation
Looks into cost spikes and call metadata.
Versioned presets
Saves model routing presets with versions.

Good for

  • See where OpenRouter spending goes
  • Investigate an unexpected cost spike
  • Run a cost experiment between models
  • Save a routing preset with version history

Pricing

Open source

Free alpha under Apache-2.0; requires your own OpenRouter account

OpenRouter 工作台 Local FAQ

What do I need?

Node.js 22.22+ or 24+, an OpenRouter management key and a private data directory.

Does it change my account?

No. It does not modify keys, top up or switch routing.

Is it official?

No. The README says it is a third-party project.

What licence?

Apache-2.0.

Is OpenRouter 工作台 Local free?

Yes. OpenRouter 工作台 Local is open source, so you can use and self-host it for free.

How do I add OpenRouter 工作台 Local to Claude Code?

Run this command in your terminal: claude mcp add openrouter-analytics-mcp --env OPENROUTER_MANAGEMENT_KEY='<OPENROUTER_MANAGEMENT_KEY>' --env OPENROUTER_WORKBENCH_DATA_DIR='<OPENROUTER_WORKBENCH_DATA_DIR>' -- npx -y @cyuanxv/openrouter-analytics-mcp

What are the best alternatives to OpenRouter 工作台 Local?

The closest alternatives to OpenRouter 工作台 Local are headroom, omniget, next-ai-draw-io, mcp-for-blender and Agent-Native Analytics.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers