ask_openrouter
Reach models not covered by dedicated tools and compare answers across AI labs by sending a single question to any OpenRouter-hosted model via one API key.
Instructions
Ask ONE model on OpenRouter — a single gateway fronting ~400 models from every major lab (Anthropic, OpenAI, Google, DeepSeek, Meta, Qwen, Moonshot, xAI, Mistral, …) behind one API key. Use it to reach a model this server has no dedicated tool for, or to compare the same question across labs without configuring each provider separately. Guarded and single-turn, same scope rules as every other ask tool. PICK A MODEL FIRST: call list_openrouter_models(task='…') — the catalog is free and needs no key — then offer the user the ranked shortlist with its prices before spending anything. Omitting model uses the server default. effort is quick/standard/deep (default deep); because OpenRouter publishes each model's supported reasoning efforts, deep asks for the most the chosen model actually supports instead of guessing. COST: this bills the operator's OpenRouter credit per token, and the result reports the real dollar cost of the call. Prefer a dedicated tool when one exists for the same model — ask / ask_opus5 (Claude on the operator's OAuth session, no per-token cost), ask_grok, ask_kimi, ask_deepseek. Grok and Kimi ids are rerouted to those local CLIs automatically when they are installed. Any model here also works in ask_council, ask_chain, and ask_debate as an 'openrouter:' token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | OpenRouter model id (e.g. 'anthropic/claude-fable-5.1', 'openai/gpt-5.6-sol', 'deepseek/deepseek-v4-pro', 'google/gemini-3.8-flash'). Omit to use the server's default. Call `list_openrouter_models` to see the live catalog with pricing and per-model reasoning support, then offer the user a selection menu. | |
| effort | No | Answer budget / reasoning depth (default 'deep' — max reasoning). 'quick' (~1k tokens, concise), 'standard' (~4k tokens), 'deep' (~16k tokens). Unlike Atlas, OpenRouter publishes each model's supported reasoning efforts, so 'deep' sends the highest effort the CHOSEN model actually accepts and omits the field entirely for non-reasoning models — no wasted probe request. | deep |
| context | No | Optional code snippets, file paths, or structural context. | |
| question | Yes | A specific software/engineering question to ask an OpenRouter model. | |
| context_ref | No | Key(s) of context saved with `context_write` to pull in and prepend to `context` — paste a big context ONCE, reference it by key here. Missing keys are reported, not fatal. |