Go Deeper Online models

How to get an OpenRouter API key

Create an OpenRouter account, make a capped key, and paste it into Kestrel, with free and paid options.

A note on providers. These steps cover OpenRouter because it is one of the most popular providers. Others work too, such as OpenModel (openmodel.ai), Anthropic and OpenAI, or any OpenAI-compatible service. OpenRouter is not affiliated with Kestrel in any way, and Kestrel gets nothing from it.

Create an OpenRouter account, open API Keys, create a key named Kestrel, copy it, paste it into Kestrel and press Connect. The key is free. OpenRouter bills you directly for the models you use, and Kestrel takes no cut. For the bigger picture, see Using an online model.

It takes about 10 minutes and needs an email address or a GitHub or Google account. You need a way to pay only if you choose paid models. OpenRouter's own pages say what it accepts, and its prices, limits and rules can change.

The OpenRouter home page

What an API key is

A long password made for programs. It tells OpenRouter which account pays, and it cannot be used to sign in. Kestrel keeps it on your computer and sends it only to OpenRouter.

Free models or paid

Free models Paid models
Cost $0 Pay per use, often cents per run
Speed Often much slower and less reliable Usually faster and more reliable
Limits Set by OpenRouter, per minute and per day. They can change, so check OpenRouter's limits page Your balance and your key's spending limit
Privacy Free models may use your prompts for training unless you deny that in OpenRouter's privacy controls, and denying can leave no free model You can choose providers that do not train

Start with free models, and switch to paid if searches are too slow. Choose a model in Kestrel; the key identifies the same provider account. The limits and terms above are OpenRouter's, not Kestrel's. Kestrel does not control them, so read OpenRouter's pages before you rely on them.

1. Open OpenRouter

Go to openrouter.ai and select Get API Key. With an existing account, sign in at openrouter.ai/sign-in and skip to step 4.

The Get API Key button on the OpenRouter home page

2. Create your account

The OpenRouter sign up form, with GitHub, Google and email options
  1. Choose GitHub, Google or email.

  2. For email, enter your email address and a password (your name is optional), tick the agreement box, and select Continue.

  3. If asked to verify your email, follow the link in the message. Check spam if it does not arrive.

Always sign in the same way. An account opened with GitHub and then with Google is a second, empty account.

3. Sign in

If you are not signed in already, use the method from step 2.

The OpenRouter sign in form

4. Open the API Keys page

If you land on the Workspaces page, open Default Workspace.

The Workspaces page, with Default Workspace listed

Then, under WORKSPACE in the left sidebar, choose API Keys, or go to openrouter.ai/settings/keys.

The API Keys page in the Default Workspace, with the New Key button at the top right

The + New Key button is at the top right; on a new account it may appear mid-page as Create. Do not use Management Keys under ACCOUNT.

5. Create the key

Select + New Key and fill in the dialog.

The Create key dialog, filled in with Name Kestrel, Expiration 1 year, Credit limit 1, and Reset limit N/A
Field Enter Why
Name Kestrel So you can see what this key spends
Expiration 1 year A forgotten key stops on its own
Credit limit Custom amount, then 1 Requests stop once this key has spent $1, until you raise it
Reset limit every... N/A One total cap. Choose Monthly for a budget that resets

Then select Create.

The $1 limit is a cap, not a purchase. It is enough to run Kestrel for a while, and a leaked key can spend at most $1. Some accounts show Credit limit (optional) instead; enter the same values.

6. Copy the key

The dialog shows Your new key:, starting sk-or-v1-, once. Select the copy icon and paste the key into Kestrel or a password manager before you close the dialog. If you lose it, delete the key and create another.

7. Connect the key in Kestrel

During setup, choose Online model on Thinking, select OpenRouter, paste the key, review What leaves this computer, tick I understand what gets sent, then select Connect.

Later, open Models, then Set up or Manage keys under Online with your key. Select OpenRouter and follow the connection form. Testing a key does not send your role or profile text.

Online model connection controls

8. Choose a model and review its terms

Use Change beside the scoring step in Models. Free only filters the list where available. Review price, available capacity, What is sent, and the provider confirmation before saving.

Free models have usage limits and may permit training on inputs. OpenRouter's data policy can leave no free model available if you deny collection. Check OpenRouter's current privacy controls and choose paid or local AI if the available terms do not suit you. Do not relax privacy controls merely to make a run succeed.

Scheduled online work can use the approval you save. Some actions have a separate confirmation. Read Your data and privacy.

9. Optional: add credit

For paid models, use Credits. Review current prices, fees, and your key's spending cap before adding credit. Adding credit does not raise the key's limit. With this key, the status area at the bottom of Kestrel's sidebar shows what the key has spent this month. If the key runs out of credit, Kestrel says so once, names OpenRouter's credits page, and stops sending until you top up or change the key. See Using an online model.

Keep the key safe

Treat the key like a password and keep it out of email, chat, screenshots and shared code. To raise its limit or delete it, use the three-dot menu on the Kestrel row in API Keys. If a key is exposed, delete it and paste a new one into Kestrel.

If something does not work

An invalid key may have expired or been removed. Make another key and reconnect it. An insufficient-credit response can mean your balance or key limit was reached. Kestrel then says your OpenRouter credit has run out and sends nothing more to OpenRouter. For rate limits, wait before retrying. A data-policy refusal means no available provider meets your chosen policy; keep that policy or choose a different model.

If the key connects but scoring fails, read the message on Runs and use Troubleshooting. Never post the key in a bug report.

Sources

Written on October 17, 2026 from OpenRouter's documentation and the provider pages captured then. Kestrel connection instructions were updated October 26, 2026. The OpenRouter screenshots come from a live account on that date, with key names and spend blurred. If a label has changed, the path is the same: Workspaces > Default Workspace > API Keys.

Checked against Kestrel 0.7.6 on November 11, 2026.