# auth.md — olud.ai

> How an agent authenticates against the olud.ai API.
> Last updated: 2026-08-11

## Do you need to authenticate at all?

**No, for the website.** Every page on `olud.ai` is public: 10,000+ open-source
AI project pages, 436 model pages, 322 open-source alternatives, comparisons,
DNA families, languages, countries and archives. No account, no key, no token.
Crawl and read freely, subject to `/robots.txt`.

Every page also has a Markdown twin for lower token cost — send
`Accept: text/markdown`, or replace `.html` with `.md`:

```
GET https://olud.ai/language/rust.md
GET https://olud.ai/project/ollama-ollama.md
```

**Yes, for the JSON API.** The structured API requires a key. It is free to
obtain and has a free tier.

## Scheme

API keys, sent in a header. **There is no OAuth, no OIDC, no token endpoint,
and no dynamic client registration** — deliberately, because there is no
protected resource behind them. Do not look for
`/.well-known/openid-configuration` or `/.well-known/oauth-protected-resource`:
they do not exist, and their absence is a choice, not an oversight.

```
GET https://olud.ai/api/v1/projects
X-Api-Key: osk_your_key_here
```

The key may also be passed as a query parameter when headers are awkward:

```
GET https://olud.ai/api/v1/projects?key=osk_your_key_here
```

Keys are 44 characters: the prefix `osk_` followed by 40 hexadecimal digits.

## Registration flow

This is the complete flow. There is no OAuth step and no automated
registration endpoint — everything an agent needs is on this page.

**Agent audience.** Any external agent, crawler or LLM client that wants the
structured JSON API. Agents reading the website itself need nothing at all
(see above).

**Provisioning endpoint.** <https://olud.ai/account.html> — the account page.
This is where a key is created and where it is rotated. It is operated by a
human, not by an agent.

**Supported registration methods.**

| Method | Endpoint | Who performs it |
|---|---|---|
| Magic link by email | `https://olud.ai/account.html` | a human |
| Sign-in with GitHub | `https://olud.ai/api/github-auth.php` | a human |

There is **no password**, **no `POST /agent/auth`**, and **no dynamic client
registration**. An agent cannot self-register. Do not probe for a registration
endpoint: none exists, and its absence is deliberate.

**Credential use.** On first visit to the account page a key is issued
automatically under the free plan, shown in the **Developer API** section.
It is a bearer credential of the form `osk_` + 40 hexadecimal digits, sent on
every API call in the `X-Api-Key` header (or as `?key=`). It can be rotated
from that same section at any time; rotation revokes the previous key
immediately.

If your agent needs a key, ask the person operating it to obtain one. We do
not provision credentials to unattended agents: a key is tied to an
identifiable account, which is what lets us raise a quota, warn about a
breaking change, or revoke abuse.

## Plans and quotas

Quotas are per key, per UTC day, and reset at 00:00 UTC.

| Plan     | Requests / day |
|----------|----------------|
| free     | 500            |
| dev      | 5,000          |
| pro      | 50,000         |
| business | 500,000        |

Every response carries the remaining allowance:

```
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4873
```

Plans are changed from the account page, through Stripe. A cancelled or
unpaid subscription returns the key to the free plan.

## Errors

All errors are JSON. The API never redirects to an HTML page — an agent
expecting JSON will always receive JSON.

| Status | Code                | Meaning                                      |
|--------|---------------------|----------------------------------------------|
| 401    | `missing_key`       | No key was supplied.                         |
| 403    | `invalid_key`       | Key unknown, or revoked.                     |
| 429    | `quota_exceeded`    | Daily quota reached. Resets at 00:00 UTC.    |
| 503    | `graph_unavailable` | The dataset is being rebuilt. Retry shortly. |

```json
{
  "ok": false,
  "error": {
    "code": "quota_exceeded",
    "message": "Daily quota reached (500 requests/day on the \"free\" plan). Resets at 00:00 UTC."
  }
}
```

## Caching

Responses carry an `ETag` derived from the dataset generation timestamp. Send
`If-None-Match` and you will receive `304 Not Modified` when nothing has
changed — it costs you no quota and us no work. The dataset is rebuilt once
per night.

## Attribution

Every response includes an `attribution` field in its `meta` block. Scores and
indices are computed by olud.ai; contextual facts come from public sources —
GitHub, Hugging Face, OpenRouter, Artificial Analysis, PyPI, npm, Docker Hub.
Please keep the attribution when redistributing.

## Discovery

| Resource | URL |
|---|---|
| MCP server card | `/.well-known/mcp/server-card.json` |
| MCP endpoint (Streamable HTTP) | `/mcp.php` |
| OpenAPI description | `/openapi.json` |
| API root | `/api/v1/` |
| API catalog (RFC 9727) | `/.well-known/api-catalog` |
| Agent skills index | `/.well-known/agent-skills/index.json` |
| Site map for language models | `/llms.txt` |
| Methodology | `/methodology.html` |
| Sitemap index | `/sitemap-index.xml` |

## Contact

A wrong figure, a quota that does not behave, an integration question:
<hello@olud.ai> or <https://olud.ai/contact.html>.
