To use your OpenRouter key in any app, paste it into a system-wide tool that works on selected text, so that one shortcut runs the model you chose on the text in front of you in Word, Slack, the browser or the terminal.
OpenRouter gives you one account and one key for models from many providers: OpenAI, Anthropic, Google, Meta, Mistral and others. Most people first use the key in a chat client or in code. This guide is about the third place: the text you are already working on, in whatever app it is in.
Disclosure: we make KeyShift, the tool used for the steps below. In KeyShift, your own key is part of the paid plan, Pro, at €5.99 a month. There are free open-source routes as well, and we list them first.
Free and open-source options
- Writing Tools (by theJayTea on GitHub) is free and open source. It acts on selected text with a hotkey on Windows and macOS. Its Mac version lists OpenRouter as a provider. Its Windows version accepts OpenAI-compatible endpoints, which is the format OpenRouter uses, though we have not tested that pairing ourselves.
- Chat clients such as Open WebUI, LibreChat and Jan connect to OpenAI-compatible services, OpenRouter among them, and give you a chat window. They suit long conversations.
- Editor extensions such as Cline use the key for code inside VS Code.
For a list by job, see the best BYOK AI apps.
What you need
- An OpenRouter account with some credit, or a model that OpenRouter offers at no charge.
- A Windows 10 or later PC, or a Mac with macOS 11 or later.
- KeyShift for desktop, on Pro.
Step 1: create a key and set a limit
- Sign in at openrouter.ai and open the Keys page.
- Create a key and name it after the app, for example "KeyShift". A separate key per app shows you what each one costs and lets you revoke one without touching the others.
- Set a credit limit on the key if OpenRouter offers it for your account. A limit turns a mistake into a small one.
- Copy the key. It starts with
sk-or-.
Step 2: connect it in KeyShift
- Open KeyShift and go to Settings, then AI Provider.
- Choose OpenRouter.
- Paste the key into API key. It is stored on your computer only.
- Pick a model. The list loads live from OpenRouter, so you see what is available today. Type in the search box to filter it, since every model name starts with the provider, such as
openai/oranthropic/. - Press Test connection.
The BYOK setup guide shows the same screen for the other providers.
Step 3: use it where you type
- Select text in any app and a small toolbar appears with Fix, Professional, Shorten and Translate. See the selection toolbar.
- Press Ctrl+Shift+A (Cmd+Shift+A on a Mac) for every action, including Summarize and Reply.
- Type the instruction. After your sentence, type
keyshiftand what you want, for examplekeyshift translate to German, and press space twice. - Press Ctrl+Shift+Space to ask the model a question from the AI launcher.
Requests go from your computer straight to OpenRouter with your key. They do not pass through our servers and do not use KeyShift credits.
Which model to pick
OpenRouter's catalogue is long, and the names change often, so we will not recommend one by name here. A way to choose:
- Fixing and short rewrites are easy work. Pick a small, fast, cheap model from any major provider. You will not notice the difference from a large one, and the answer arrives sooner.
- Translation benefits from a mid-sized model, above all for languages other than English.
- Long or delicate text, such as a difficult email to a client, is where a large model earns its price.
- Speed matters more than you expect. An action you run fifty times a day should feel instant. Sort by speed, not only by quality.
Test with your own writing. Run the same three real messages through two models and keep the one whose result you would send without editing.
What it costs
There are three parts:
- KeyShift Pro: €5.99 a month or €47.99 a year.
- The model: you pay OpenRouter per token, at the rate shown on each model's page. Short everyday actions on a small model cost a fraction of a cent each. Check the model page for the real rate before relying on an estimate.
- OpenRouter's own fees, if any, on buying credit. See its pricing page.
OpenRouter also lists some models at no charge, with rate limits. They are fine for trying things out. For daily work, a paid small model is more dependable and still costs very little.
Why OpenRouter and not a key from each provider
- One bill. You can try a model from another provider without opening another account.
- Easy switching. If a new model is better or cheaper, you change one setting.
- A single place for limits and for usage reports.
A direct key from OpenAI, Anthropic or Google is the simpler choice if you know you will stay with one provider. KeyShift accepts those too. See how to use your own API key in any app.
Privacy: where your text goes
With your own OpenRouter key, the text of each action goes from your device to OpenRouter and from there to the provider of the model you picked. What they keep is covered by OpenRouter's policy and by its settings for your account, where you can restrict which providers may handle your requests. Read those settings once.
If the text must not leave your machine at all, use a local model. The steps are in Ollama in any app and LM Studio in any app.
If it does not work
- "Invalid key". Copy the key again, with no space at the end. Check that it was not revoked.
- "Insufficient credits". Add credit at OpenRouter, or raise the limit on the key.
- The model returns an error. Some models are removed or renamed. Pick another from the live list.
- Slow answers. Choose a faster model. A large reasoning model is the wrong tool for fixing a sentence.
Where this fits
Good places to start: an email in Outlook or Gmail, a message in Slack, a command in the terminal. Once the key is in, every action in every app uses it.
Frequently asked
Can I use my OpenRouter key on KeyShift's free plan? No. The free plan includes every tool with 25 AI actions a month on our models. Your own key needs Pro.
Does it work on the phone keyboard? Yes. The Android and iPhone apps also accept an OpenRouter key on Pro, in the app's settings. This guide covers the desktop app.
Is OpenRouter the same as a ChatGPT subscription? No. A chat subscription and API credit are separate products with separate billing.
Can I use free OpenRouter models? Yes, if they appear in the list. Expect rate limits.
Can I save my own prompts? Yes. On Pro you can save an instruction as an action with its own hotkey. See how to create custom actions.
Download KeyShift and try the tools on the free plan first.