Loading the index…

All articles

Get started

Get an OpenRouter API key

Create an OpenRouter account, add credit and get an API key for your agent.

Your agent needs an LLM in order to understand and respond to your messages. OpenRouter is a service that lets you use any LLM, image generation or voice model, and you pay only for the tokens that were actually consumed.

1Create an account

Go to openrouter.ai and sign up for a free account.

2Buy credits

Find and open the Credits page in the left sidebar and purchase API credits. We recommend only buying $10 to begin with. You can always add more later once you have a feel for how much your agent uses.

3Create an API key

Open the API keys page and click Create key. Give the key a name you will recognise, such as the name of your agent.

While creating the key, you should also set a credit limit. This is the most your agent is allowed to spend with this key, and we recommend setting one so you are never surprised by your bill.

Once the key is created, copy it and keep it somewhere safe. It starts with sk-or-v1-, and OpenRouter will only show it to you once.

4Add the key to your agent

When you create your agent, paste the key into the OpenRouter API key field. If you already have an agent, open its Settings, scroll to the OpenRouter section, paste the key there and save.