> ## Documentation Index
> Fetch the complete documentation index at: https://docs.osschat.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# /api/openrouter-key

> Store and check user OpenRouter key presence without exposing raw key material.

# /api/openrouter-key

Supports `GET`, `POST`, and `DELETE`.

## GET

Returns key presence only:

```json theme={null}
{ "hasKey": true }
```

## POST

Stores encrypted OpenRouter key.

```json theme={null}
{ "apiKey": "sk-or-v1-..." }
```

## DELETE

Removes stored key for authenticated user.

## Security

* No response ever includes raw key.
* Same-origin + auth + rate limiting are enforced.
