[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [OpenRouter provider directory](https://spiral.ai/integrations/vscode/openrouter-provider-directory)

# How to Use OpenRouter provider directory in VS Code

Returns OpenRouter's provider directory and published provider policy information. Use it for a directory-level policy review, then check the specific endpoint because its policy can differ.

|  |  |
| --- | --- |
| Model | OpenRouter provider directory |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with OpenRouter provider directory in VS Code

- Use OpenRouter provider directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OpenRouter provider directory and tell me what changed since last week.
- Check OpenRouter provider directory and summarize what you find in three bullet points.
- Pull the newest data from OpenRouter provider directory and give me the result as a table.
- Check OpenRouter provider directory every morning and tell me only when something changed.

## How to set up OpenRouter provider directory in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run OpenRouter provider directory**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "openrouter-ai/model-marketplace/list_providers",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds OpenRouter provider directory on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## OpenRouter provider directory tools and prices

- [OpenRouter · List providers](https://spiral.ai/tools/alexandria/openrouter-ai/model-marketplace/list_providers) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Case-insensitive substring of the provider slug or name. |

## What can you do with OpenRouter provider directory in VS Code?

Build a model selection report around the requirements in your project. An agent can compare OpenRouter catalog evidence with your document sizes and output needs, then identify candidates for testing.

### Investigate slow model responses

Compare serving endpoint measurements and model statistics, review the latency definitions, and consult the provider directory to identify the organizations behind the serving endpoints.

### Prepare a model migration review

Search for replacements, review the author's catalog, compare model details and pricing data, and summarize the provider policies relevant to the shortlist.

### Prepare a provider policy review

Read OpenRouter's policy documentation, review its provider directory, find candidate models, and inspect the specific serving endpoints before preparing questions for a policy review.

### Write a model selection brief

Combine catalog search, an author's listed models, pricing data, usage statistics, provider policies, and documentation into a source-based brief for a product team.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## OpenRouter provider directory in other agents

- [Amp](https://spiral.ai/integrations/amp/openrouter-provider-directory)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/openrouter-provider-directory)
- [Claude](https://spiral.ai/integrations/claude-desktop/openrouter-provider-directory)
- [Claude Code](https://spiral.ai/integrations/claude-code/openrouter-provider-directory)
- [Cline](https://spiral.ai/integrations/cline/openrouter-provider-directory)
- [Codex](https://spiral.ai/integrations/codex/openrouter-provider-directory)
- [Cursor](https://spiral.ai/integrations/cursor/openrouter-provider-directory)
- [Devin](https://spiral.ai/integrations/devin/openrouter-provider-directory)
- [dots](https://spiral.ai/integrations/dots/openrouter-provider-directory)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/openrouter-provider-directory)
- [Gemini](https://spiral.ai/integrations/gemini/openrouter-provider-directory)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/openrouter-provider-directory)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/openrouter-provider-directory)
- [goose](https://spiral.ai/integrations/goose/openrouter-provider-directory)
- [Grok](https://spiral.ai/integrations/grok/openrouter-provider-directory)
- [Grok Build](https://spiral.ai/integrations/grok-build/openrouter-provider-directory)
- [Hermes](https://spiral.ai/integrations/hermes/openrouter-provider-directory)
- [Instinct](https://spiral.ai/integrations/instinct/openrouter-provider-directory)
- [Manus](https://spiral.ai/integrations/manus/openrouter-provider-directory)
- [Muse](https://spiral.ai/integrations/muse/openrouter-provider-directory)
- [Muse Code](https://spiral.ai/integrations/muse-code/openrouter-provider-directory)
- [n8n](https://spiral.ai/integrations/n8n/openrouter-provider-directory)
- [Notion](https://spiral.ai/integrations/notion/openrouter-provider-directory)
- [OpenClaw](https://spiral.ai/integrations/openclaw/openrouter-provider-directory)
- [opencode](https://spiral.ai/integrations/opencode/openrouter-provider-directory)
- [Perplexity](https://spiral.ai/integrations/perplexity/openrouter-provider-directory)
- [Raycast](https://spiral.ai/integrations/raycast/openrouter-provider-directory)
- [Windsurf](https://spiral.ai/integrations/windsurf/openrouter-provider-directory)
- [Zapier](https://spiral.ai/integrations/zapier/openrouter-provider-directory)

## More VS Code guides

- [OpenRouter model usage statistics](https://spiral.ai/integrations/vscode/openrouter-model-usage-statistics)
- [Oracle Cloud SKU pricing](https://spiral.ai/integrations/vscode/oracle-cloud-sku-pricing)
- [OpenRouter model search](https://spiral.ai/integrations/vscode/openrouter-model-search)
- [Oracle Cloud price catalog](https://spiral.ai/integrations/vscode/oracle-cloud-price-catalog)
- [OpenRouter model pricing data](https://spiral.ai/integrations/vscode/openrouter-model-pricing-data)
- [Oracle Cloud price publication status](https://spiral.ai/integrations/vscode/oracle-cloud-price-publication-status)

## Questions about OpenRouter provider directory in VS Code

**Can VS Code use OpenRouter provider directory?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run OpenRouter provider directory like any built-in tool.

**How much does OpenRouter provider directory cost in VS Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need an Alexandria account to use OpenRouter provider directory in VS Code?**

No. Spiral runs OpenRouter provider directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up OpenRouter provider directory in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while OpenRouter provider directory runs?**

OpenRouter provider directory runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Does OpenRouter's default model list cover every output type?**

The documented default list covers text generation. OpenRouter also documents a broader listing across all modalities, including image, video, text, and speech.

**How quickly does OpenRouter update model information?**

OpenRouter says it publishes model information as soon as it confirms it. That statement does not establish a fixed hourly or daily refresh schedule.

**What time period do performance measurements cover?**

The routing guide describes rolling five-minute percentiles, while the endpoint response schema defines latency percentiles over 30 minutes. These are different measurement windows, so comparisons need to use the same window.

**Does the context window apply only to the input?**

Input and output share the context window. A long input therefore reduces the space available for the response, even when the model lists a larger maximum output ceiling.

**Are OpenRouter's coding and agentic benchmark fields still populated?**

The current schema says Artificial Analysis retired its Coding Index and Agentic Index. Both fields are null for every model.

