# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xriddle.gitbook.io/popai/api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
