# Navon > Sovereign AI inference. OpenAI- and Anthropic-compatible APIs for open-weight models running on Navon hardware. Agents are welcome, and always act for a person who approved them. An agent never signs in and cannot create an account or invite anyone. A person on Navon approves it for one project, and it receives an agent key that works only in that project, only for the models, spend and time that person agreed to. The person can revoke it at any moment, and every request the agent makes is recorded under its name in the project's audit trail. ## Connect (OAuth 2.0 device authorization, RFC 8628) 1. Ask for access: POST https://cloud.navon.africa/agent/connect content-type: application/json {"agent_name": "research-bot", "project": "Research", "models": ["qwen/3.6-35b-a3b"], "spend_cap": "25", "expires_in_days": 30} Only `agent_name` is required. `models` omitted means any model the project allows. `spend_cap` is in the account's currency. `expires_in_days` defaults to 30, at most 365: agent keys always expire. The answer has `user_code` (like `BCDF-GHJK`), `device_code`, `verification_uri`, `verification_uri_complete`, `interval` and `expires_in` (900 seconds). 2. Give the person the `user_code` and `verification_uri_complete`. They sign in to the console, check what you asked for, choose the project, and approve or deny. 3. Poll no faster than `interval` seconds: POST https://cloud.navon.africa/agent/token content-type: application/x-www-form-urlencoded grant_type=urn:ietf:params:oauth:grant-type:device_code&device_code=... Errors are RFC 8628's: `authorization_pending` (keep polling), `slow_down` (add 5 seconds), `access_denied` (stop), `expired_token` (start again), `invalid_grant` (the code is unknown or already used). On approval you get, once: `access_token` (your agent key, `nvn_live_...`), `api_base`, `expires_in`, `project_id`, `models`. Store it as a secret; it is never shown again. ## Pick a model GET https://api.navon.africa/v1/models with `Authorization: Bearer ` lists only the models your key may call. Each has `id`, `context_length`, `licence` (SPDX), `licence_url`, `creator`, `residency` (where prompts and outputs are processed) and `pricing` (per million tokens, by completion window: `asap`, `flex`, `batch`; `input`, `cached_input`, `output`). ## Call the API Base URL https://api.navon.africa/v1. Send the key as `Authorization: Bearer ` or `x-api-key`. - POST /v1/chat/completions (OpenAI chat completions) - POST /v1/responses (OpenAI responses, including background mode) - POST /v1/messages (Anthropic messages) - POST /v1/embeddings - POST /v1/batches (batch, at the batch price) Existing OpenAI and Anthropic SDKs work by changing the base URL and the key. Refusals you should handle: 401 `key_revoked` or `key_expired` (stop and ask your person to connect you again), 403 `model_not_permitted` (use a model from /v1/models), 403 `spend_cap_reached` or 402 `credit_exhausted` (stop spending and tell your person), 429 `organisation_rate_limited` (wait for `retry-after`). ## Machine-readable - OpenAPI 3.1: https://api.navon.africa/openapi.yaml - This file: https://api.navon.africa/llms.txt - MCP server (Streamable HTTP, JSON responses): POST https://api.navon.africa/mcp with your agent key as a Bearer token. Tools: `list_models`, `usage`, `start_run`. Without a key it answers 401 and points to https://api.navon.africa/.well-known/oauth-protected-resource, which names https://cloud.navon.africa as the authorization server; its metadata (https://cloud.navon.africa/.well-known/oauth-authorization-server) offers the device authorization grant above. MCP clients that only support the authorization code flow cannot sign in by themselves yet: connect with the steps above and give the client the key. ## Post-quantum - TLS 1.3: cloud.navon.africa and api.navon.africa negotiate the hybrid post-quantum key exchange X25519MLKEM768 (ML-KEM-768 with X25519). - TLS 1.2: still accepted for older clients, with classical key exchange only. Use a TLS 1.3 client that offers X25519MLKEM768 by default: OpenSSL 3.5 or later (and curl or Python built on it), Node.js 24 or later, or Go 1.24 or later. - TLS 1.0 and 1.1: refused. - Agent keys are opaque random secrets, not signed tokens, so they are quantum-safe as they are. - The audit trail, agent actions included, is signed with ML-DSA-65 (FIPS 204). Older records are sealed under ML-DSA. - An automated check confirms all of this on the 1st of every month. TLS ends at Cloudflare's edge, and Cloudflare does not tell us which key exchange a request used, so there is no "post-quantum only" setting. Check your own side with `openssl s_client -tls1_3 -groups X25519MLKEM768 -connect api.navon.africa:443`. More: https://navon.africa/docs#post-quantum