Skip to the collection

agent-native · LLM Gateway & Routing

XiuRouter

Listed on The Agent-Native Index

Claude, GPT, Gemini, and more through one API

What it does

XiuRouter is a hosted model API for developers and AI agents. One account and scoped API key can call models through OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, or Gemini GenerateContent. The public Agent integrations workspace documents protocol-aware setup and replacement paths for 14 supported clients, including Codex, Claude Code, Cursor, Cline, Continue, OpenClaw, Hermes Agent, Aider, Open WebUI, LibreChat, and Vercel AI SDK.

The control boundary is intentionally narrower than a full agent identity platform. XiuRouter provides constrained keys and request-level usage records, but it does not claim persistent cross-service agent identity, delegated user authorization, automatic provider fallback, or trajectory-level tracing.


Agent-facing interfaces

How agents onboard

Interaction pattern: scoped API key + the native protocol used by the agent client.

export XIUROUTER_API_KEY=...

curl https://router-api.xiu.ai/v1/models \
  -H "Authorization: Bearer $XIUROUTER_API_KEY"

See the full onboarding section in the dossier.

Protocol surface

Interface Detail
GET /v1/models Lists models visible to the current API key.
POST /v1/chat/completions OpenAI Chat Completions route.
POST /v1/responses OpenAI Responses route for Codex and Responses clients.
POST /v1/messages Anthropic Messages route for Claude Code and Anthropic SDKs.
POST /v1beta/models/{model}:generateContent Gemini GenerateContent route.
Agent integrations Client-specific setup, replacement, rollback, and real-request verification for 14 apps.

OpenAI-style clients use https://router-api.xiu.ai/v1; Messages and Gemini clients use the API root when they append their own route.