Skip to content

OpenRouter

MetadataValue
Categoryai
Capabilitieshttp
Websitehttps://openrouter.ai
  • api

OpenRouter lets AgentOS access models from multiple providers using one API key and one chat interface.

  1. Create an API key at https://openrouter.ai/keys
  2. Add credential in AgentOS Settings -> Skills -> OpenRouter

Use chat with a provider-qualified model ID:

Terminal window
curl -X POST http://localhost:3456/api/skills/openrouter/chat \
-H "X-Agent: cursor" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o-mini",
"messages": [
{ "role": "user", "content": "Summarize this in one sentence: AgentOS is local-first." }
]
}'

The response is normalized to AgentOS’ canonical shape: content, tool_calls, stop_reason, and usage.