Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions docs/AGENTROUTER.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,36 @@ designed as a drop-in `ANTHROPIC_BASE_URL` replacement for the official Claude C
client, so it only accepts traffic that matches the Claude Code wire image (specific
User-Agent, `anthropic-beta` flags, Stainless SDK headers, etc.).

OmniRoute supports AgentRouter through the **Claude Code compatible** provider type
(`anthropic-compatible-cc-*`), which speaks the Anthropic Messages API with the
correct wire image. A generic `openai-compatible-chat` provider pointing at
`https://agentrouter.org` will **not** work — the upstream WAF rejects requests that
do not look like Claude Code.
## Quick start — use the native `agentrouter` provider (recommended)

For most users, **no special setup is required**. OmniRoute ships a built-in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The "Prerequisites" section at line 42 (which includes a feature flag requirement) might confuse users following this "Quick start" path. Clarifying that the native provider is independent of that flag would improve the onboarding experience.

Suggested change
For most users, **no special setup is required**. OmniRoute ships a built-in
For most users, **no special setup or feature flags are required**. OmniRoute ships a built-in

`agentrouter` provider with the full Claude Code wire image already baked in (see
`open-sse/config/providerRegistry.ts` → `agentrouter`). To use it:

1. Open **Dashboard → Providers → Add Provider**.
2. Select **AgentRouter** from the list.
3. Paste your `sk-...` API key and save.

That's it — no environment variables, no custom provider type. Built-in models
include `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `glm-5.1`, and
`deepseek-v3.2`.
Comment on lines +19 to +21

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding the model prefix (agentrouter/) to the "Quick start" section ensures users know how to correctly reference these models in their requests without having to scroll down to the "Advanced" usage section.

Suggested change
That's it — no environment variables, no custom provider type. Built-in models
include `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `glm-5.1`, and
`deepseek-v3.2`.
That's it — no environment variables, no custom provider type. Reference models using the `agentrouter/` prefix (e.g., `agentrouter/claude-opus-4-6`). Built-in models include `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `glm-5.1`, and `deepseek-v3.2`.


The rest of this guide covers the **advanced path**: using the
`anthropic-compatible-cc-*` provider type. Use that when you need more control
over the wire image — for example, when connecting to other AgentRouter-style
relays that are not yet in the native provider registry, or when overriding the
base URL, chat path, or header set.

---

## Advanced: connecting via the Claude Code compatible provider type

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the "Prerequisites" section immediately following this heading includes a feature flag requirement that is only necessary for the advanced path, adding a mention of the flag to the heading helps distinguish it from the "Quick start" path.

Suggested change
## Advanced: connecting via the Claude Code compatible provider type
## Advanced: connecting via the Claude Code compatible provider type (requires feature flag)


OmniRoute also supports AgentRouter (and similar relays) through the **Claude Code
compatible** provider type (`anthropic-compatible-cc-*`), which speaks the
Anthropic Messages API with the correct wire image. A generic
`openai-compatible-chat` provider pointing at `https://agentrouter.org` will
**not** work — the upstream WAF rejects requests that do not look like Claude
Code.

---

Expand Down