App Attribution

Send HTTP-Referer and X-AnyRouter headers to attribute usage to your app and appear in public rankings.

Send HTTP-Referer on your requests to tie usage to your app, get per-app analytics and, once you meet the thresholds, appear in the public rankings and the "Top apps" strip on model pages. Without HTTP-Referer no app page is created.

Send the headers

bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer sk-ar-your-key" \
  -H "Content-Type: application/json" \
  -H "HTTP-Referer: https://myapp.com" \
  -H "X-AnyRouter-Title: My AI Assistant" \
  -H "X-AnyRouter-Source: web-app" \
  -H "X-AnyRouter-Version: 1.0.0" \
  -H "X-AnyRouter-Categories: general-chat,personal-agent" \
  -d '{"model": "google/gemma-4-26b-a4b-it", "messages": [{"role": "user", "content": "Hello"}]}'
HeaderPurpose
HTTP-RefererRequired. Your normalized URL is the app id: host lowercased, path dropped, scheme and non-default port kept.
X-AnyRouter-TitleDisplay name. Without it the Referer host is shown.
X-TitleOpenRouter's display-name header, read as a fallback. X-AnyRouter-Title wins if both are sent.
X-AnyRouter-SourcePlatform or channel id (web-app, desktop, vscode-extension) for dashboard filtering. Claude Code, claude-code and claude_code are the same app.
X-AnyRouter-AppAlias for X-AnyRouter-Source; X-AnyRouter-Source wins.
X-AnyRouter-VersionVersion string, semver recommended.
X-AnyRouter-CategoriesUp to 2 comma-separated categories per request, lowercase, hyphenated, each at most 30 characters. Unknown values are ignored. Merged across requests, 10 total.

Categories: cli-agent, ide-extension, cloud-agent, programming-app, native-app-builder (Coding); creative-writing, video-gen, image-gen (Creative); writing-assistant, general-chat, personal-agent (Productivity); roleplay, game (Entertainment). To suggest another, email support@anyrouter.dev.

Apps on localhost, 127.0.0.1, ::1 or *.localhost must also send X-AnyRouter-Title, or they are not tracked. They register as local://<title-slug>.

GitHub Actions

GitHub Actions is one app, not generic github.com traffic. To break usage down per repository, add ref to the header:

HTTP-Referer: https://github.com/features/actions?ref=https://github.com/<owner>/<repo>

Only https://github.com/<owner>/<repo> is accepted (case-insensitive); anything else is ignored. Repository names are public on the app page. To hide them, turn on Hide repository names on public app pages under Dashboard → Privacy; usage then shows as "Private repo", including past rows.

Get your app listed

Send both HTTP-Referer and X-Title (or X-AnyRouter-Title). A browser's automatic Referer or a title guessed from User-Agent never counts. An app shows in a model's Top apps strip (last 7 days) when:

  • Requests with both headers number at least 50 to that model in the window, each counted on its own (requests with only one header never count).
  • They come from at least 5 different users.
  • The host is a public domain name (not localhost, an IP address, or .local / .internal).

Unlisted apps are shown by origin, not title. To get a display name, logo and link, email support@anyrouter.dev to join the curated registry. The same rules decide whether /app?id=yourapp.com shows usage. Public data is the origin or curated name, logo, and share of listed tokens; prompts, completions, keys, account details and request counts are never shown. The list refreshes about hourly.

To merge two Referer URLs after a migration, email support@anyrouter.dev with both.

Hide a workspace from public listings

A workspace owner or admin can turn on Hide this workspace from public app listings under Dashboard → Privacy. It also applies to past traffic. Rankings update within minutes and model pages within an hour. Your own dashboard analytics are unaffected.

AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer