[Providers](https://spiral.ai/providers) › [OpenRouter](https://spiral.ai/providers/openrouter)

# How to Use OpenRouter in Any AI Agent

To use OpenRouter in Claude, connect Spiral to Claude once, then ask for what you want in plain words. Claude can then reach all 270 OpenRouter tools on Spiral, priced per run from one balance.

## Prompts that work in any agent

- Ask OpenRouter through Spiral to review the diff on this branch and list the three riskiest changes.
- Get a second opinion from OpenRouter on this function, then tell me what the call cost.
- Summarize these release notes with OpenRouter in five bullet points.
- Ask OpenRouter to review this plan and list the three biggest risks, with a fix for each.
- Compare OpenRouter with my current model on this prompt and tell me which answer is better and what each cost.

## OpenRouter tools and prices

- [Meta: Llama 4 Maverick](https://spiral.ai/tools/openrouter/meta-llama/llama-4-maverick) (OpenRouter): Up to $0.005342 per run at the default inputs. $0.455 per 1M input tokens, $1.30 per 1M output tokens.
- [MoonshotAI: Kimi K2.6](https://spiral.ai/tools/openrouter/moonshotai/kimi-k2.6) (OpenRouter): Up to $0.018189 per run at the default inputs. $0.845 per 1M input tokens, $4.433 per 1M output tokens.
- [DeepSeek: DeepSeek V4 Flash 0731](https://spiral.ai/tools/openrouter/deepseek/deepseek-v4-flash-0731) (OpenRouter): Up to $0.368053 per run at the default inputs. $0.05759 per 1M input tokens, $0.39 per 1M output tokens.

## Use OpenRouter in your AI agent

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

## What can you do with OpenRouter in an AI agent?

### Second opinions

Have another model review a diff or a plan before you commit to it.

### Cheaper bulk work

Send summaries, tagging and rewrites to a smaller model and keep your agent's own model for hard steps.

### Models your agent lacks

Reach open and frontier models your agent's vendor does not offer.

### Long documents

Summarize reports and contracts too long to read in one sitting.

### Long documents

Send a long spec or contract to a model with a large context window.

### Structured output

Turn messy notes into JSON your code can read.

## Related

- [xAI](https://spiral.ai/providers/xai)
- [Replicate](https://spiral.ai/providers/replicate)
- [Vizard](https://spiral.ai/providers/vizard)
- [WaveSpeed AI](https://spiral.ai/providers/wavespeed)
- [OpenAI](https://spiral.ai/providers/openai)
- [fal](https://spiral.ai/providers/fal)

## Common questions

**Which AI agents can use OpenRouter?**

Any agent Spiral connects to: Claude, ChatGPT, Gemini, Grok and Perplexity, coding agents such as Cursor, Claude Code and Codex, and workflow tools such as Zapier and n8n. Each agent's guide below shows its setup.

**How much does OpenRouter cost through Spiral?**

Each OpenRouter tool is priced per run, shown before it starts, and paid from one Spiral balance. Each run is charged for its measured usage.

**Do I need a OpenRouter account to use it in an AI agent?**

No. Spiral runs OpenRouter on its own account and charges your Spiral balance, so your agent needs no OpenRouter key.

**How do I set up OpenRouter in my agent?**

Connect Spiral to your agent once (a skill, an MCP server, the CLI or the API), then ask for a OpenRouter tool by name. Each agent's guide on this page has its exact steps.

**Can my agent compare OpenRouter tools?**

Yes. Ask it to run the same request on two OpenRouter tools and show both results with what each cost.

**What happens if a run fails in your agent?**

It is not charged. Spiral holds a run's estimated price when it starts and returns it to your balance if the run fails on Spiral's side or the provider's, and your agent gets the error to retry or try another tool.

**Is there a subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up and balance alerts keep runs from stopping when the balance runs low.

**How is a run priced?**

When a run starts, its estimate is held from your balance; when it finishes, you are charged for the measured usage and the rest of the hold is released. Each tool shows its price before a run.

