> For the complete documentation index, see [llms.txt](https://xriddle.gitbook.io/popai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xriddle.gitbook.io/popai/api-key.md).

# API  Key

Popai stores your API keys locally in your browser's storage for security. The keys are never uploaded to Popai's servers or databases. This means:

* API keys are only stored on your local device
* Keys are automatically cleared when you clear browser cache/data
* Keys are removed when you log out of Popai
* You'll need to re-enter API keys after clearing cache or logging back in
* Each browser/device needs its own API key configuration

This design ensures your API keys remain private and under your control at all times.

### Provider

#### OpenRouter

{% stepper %}
{% step %}

### Get your API key

<https://openrouter.ai/settings/keys>&#x20;
{% endstep %}

{% step %}

### Add Credit

<https://openrouter.ai/credits>
{% endstep %}
{% endstepper %}
