# AI_UNAVAILABLE

**What it means.** Drafting with AI is not set up on this server.

**What to do.** Set ANTHROPIC_API_KEY in the API's environment and restart it. Until then, write the page by hand; nothing else is affected.

- HTTP status: 503
- Retryable after applying the fix: no

Every failure from the CLI or an MCP tool has this shape:

```json
{
  "ok": false,
  "code": "AI_UNAVAILABLE",
  "message": "Drafting with AI is not set up on this server.",
  "fix": "Set ANTHROPIC_API_KEY in the API's environment and restart it. Until then, write the page by hand; nothing else is affected.",
  "file": "<where to edit, when known>",
  "retryable": false,
  "docs": "https://docs.uarpie.app/errors/AI_UNAVAILABLE"
}
```

Apply `fix` (edit `file` when it is given), then run the same command again.
