diff --git a/docs/customize/model-providers/top-level/openrouter.mdx b/docs/customize/model-providers/top-level/openrouter.mdx index b20f9022864..552b0d633b9 100644 --- a/docs/customize/model-providers/top-level/openrouter.mdx +++ b/docs/customize/model-providers/top-level/openrouter.mdx @@ -89,6 +89,54 @@ For example, to prevent extra long prompts from being compressed, you can explic +## App Identification Headers + +Continue automatically sends [OpenRouter identification headers](https://openrouter.ai/docs/api-reference/overview#headers) on every request so that activity shows up under Continue in OpenRouter's dashboard and App Showcase: + +- `HTTP-Referer: https://www.continue.dev/` +- `X-OpenRouter-Title: Continue` +- `X-OpenRouter-Categories: ide-extension` + +These are sent by default and require no configuration. If you need to override any of them (for example, to attribute traffic to your own app), set the corresponding header in `requestOptions.headers` — user-provided headers take precedence over the defaults: + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: + provider: openrouter + model: + requestOptions: + headers: + HTTP-Referer: https://your-app.example.com/ + X-OpenRouter-Title: Your App + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "openrouter", + "model": "", + "requestOptions": { + "headers": { + "HTTP-Referer": "https://your-app.example.com/", + "X-OpenRouter-Title": "Your App" + } + } + } + ] + } + ``` + + + ## Model Capabilities OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the function calling support of the original model.