OpenRouter
OpenRouter is a first-class Kheish route driver. Use it when you want one daemon-owned route that can target vendor-prefixed model identifiers such as:openai/gpt-5.4-minianthropic/claude-sonnet-4google/gemini-2.5-pro
Recommended route file
model_support = "any" is the normal OpenRouter setting because the model strings are usually vendor-prefixed.
Bootstrap the secret slot before startup:
Route-aware selectors
Use the configured route id as the selector prefix:openrouter/openai/gpt-5.4-miniopenrouter/anthropic/claude-sonnet-4
provider means the route id. The backend request still receives the normalized model string without the openrouter/ prefix.
Current built-in surface
OpenRouter currently participates in these daemon-owned surfaces:- text runs
- vision-capable runs with supported image attachments
generate_imageedit_imagegenerate_audio- daemon-owned speech-to-text and canonical-text derivation for supported audio assets
multimodal_input = truenative_web_search = falseimage_generation = trueimage_edit = true
runtime get today. Audio generation and transcription are real OpenRouter-backed daemon features, but they are surfaced through tool availability and configured transcription backends rather than a dedicated runtime capability flag.
Audio and asset behavior
OpenRouter-backed audio generation is exposed throughgenerate_audio. The tool returns daemon-owned audio assets and may also return a transcript.
To make generated audio visibly part of the final answer, the agent must follow generate_audio with emit_output and either:
- include the returned asset ids in
parts - or set
include_artifacts_inline = true
audio/wavaudio/webmaudio/mpegaudio/mp4audio/m4a
microphone_segment sources still accept only audio/wav and audio/webm.
Operational notes
base_urlis optional. The built-in provider defaults already target the normal OpenRouter API.web_searchdoes not currently use an OpenRouter-native provider backend.runtime getdoes not currently expose anaudio_generationroute flag.generate_audioappears only when the daemon has an audio backend configured for one route. Today, the built-in audio-generation backend is OpenRouter.
