developers · reference · shipped
APIs & SDKs
Public API base URLs
All developer integrations talk to public HTTPS origins — no private network, VPN, or internal ports are required:
| Base URL | Surface | Primary Purpose |
|---|---|---|
https://mcp.aitherium.com | Public MCP & Inference Gateway (canonical) | OpenAI-compatible /v1/* inference, embeddings, audio, Streamable HTTP /mcp, OAuth 2.1 discovery, auth, billing/x402, memory, skills, agents, artifacts. (Alias: https://gateway.aitherium.com fronts the same gateway origin.) |
https://api.aitherium.com | Platform & Workspace API | Workflows, Agent Notebooks (.anb), Research Notebooks, Forge/Expeditions, licenses, OpenAW, artifact shares, doors. (Replaces retired portal.aitherium.com.) |
https://retrieval.aitherium.com | AitherRetrieval API | Hybrid, vector, full-text, graph, code, and memory search; document & artifact ingest; collections; leases; recursive answers. |
https://id.aitherium.com | AitherIdentity (IdP) | OIDC / OAuth 2.1 + PKCE, RFC 8628 CLI device flow (adk login), 2FA/WebAuthn, personal API keys. (Aliases: idp.aitherium.com, identity.aitherium.com.) |
https://mesh.aitherium.com | AitherMesh Discovery | Node and peer-agent discovery. |
https://tunnel.aitherium.com | Tunnel Service | Managed HTTPS tunnels for self-hosted and edge nodes (adk up). |
https://mediaforge.aitherium.com | Media Forge | Commercial-safe image and video rendering pipelines (forge.aitherium.com for studio UI). |
https://studio-api.aitherium.com | Studio API | WebMCP Design Studio & app creation backend (create.aitherium.com). |
https://weights.aitherium.com | Weights & Artifact CDN | SHA-256-verified public GGUF weights (artifact.aitherium.com for release bundles). |
https://developer.aitherium.com | Developer Portal & Specs | Docs, openapi.json, llms.txt, llms-full.txt, developers/awpack-schema.json. |
Authentication (fail-closed)
- ACTA API Keys (
aither_sk_live_*): PassAuthorization: Bearer $AITHER_API_KEYtohttps://mcp.aitherium.com. Plan tier and credit balance are enforced fail-closed. - OAuth 2.1 + PKCE & OIDC:
- IdP metadata:
GET https://id.aitherium.com/.well-known/openid-configurationand/.well-known/oauth-authorization-server - MCP protected-resource metadata (RFC 9728):
GET https://mcp.aitherium.com/.well-known/oauth-protected-resource - Personal API keys:
GET/POST/DELETE https://id.aitherium.com/auth/me/api-keys(and/rotate)
- IdP metadata:
- CLI Device Flow (RFC 8628 — used by
adk login):POST https://id.aitherium.com/auth/device/code(orPOST https://mcp.aitherium.com/v1/auth/device/code)- Human approves at
verification_uri - Poll
POST https://id.aitherium.com/auth/device/token(or/v1/auth/device/poll) until issued
- Workspace & External Agent Keys:
ak_*,atk_*,aither_ext_*viaAuthorization: Bearer <key>orX-API-Key: <key>. Node endpoint tokens are managed under/v1/workspace/api-keys/endpoint-token(POST,/renew,/enrollment-token/exchange,GET /endpoints,DELETE /endpoints/{node_id}). - Endpoint-Scoped Bearers:
- AitherRetrieval requires scope
endpoint:retrieval(strictly tenant-pinned; mismatched tenant payloads fail closed withRET-1003). - A2A requires scope
endpoint:a2a(tenant-pinned) orX-API-Keyfor registration routes.
- AitherRetrieval requires scope
- Anonymous Hosted Floor:
POST https://mcp.aitherium.com/api/v1/anon/registerissues a short-livedX-Anon-TokenforPOST /api/v1/chat/hosted(daily per-principal and per-IP caps; inline base64 images up to 5 MB).
Public API families
1. Gateway & MCP (https://mcp.aitherium.com)
- Discovery & health:
GET /health,GET /.well-known/oauth-protected-resource,GET /.well-known/mcp.json,GET /.well-known/mcp-registry.json,GET /.well-known/doors.json,GET /capabilities,GET /tools/manifest,GET /v1/tools/search,GET /v1/mcp/config/{ide} - MCP transport:
POST /mcp,GET /mcp,DELETE /mcp(Streamable HTTP withMcp-Session-Id) - Inference, embeddings & audio:
GET /v1/models,POST /v1/chat/completions,POST /v1/hosted/chat/completions,POST /v1/hosted/chat/completions/stream,POST /api/v1/chat/hosted,POST /v1/embeddings,POST /v1/audio/speech,POST /v1/audio/transcriptions,POST /chat/stream(SSE) - Auth, wallet & x402:
POST /v1/auth/{register,login,validate,entitlements,api-key},GET /v1/auth/me,GET /v1/billing/balance,GET /v1/billing/x402/quote,POST /v1/billing/x402/topup,GET /v1/wallet,GET /v1/wallet/ledger,POST /v1/subscribe - Memory, skills, agents, workspace & artifacts:
POST /v1/memory/{teach,recall},GET /v1/skills,GET /v1/skills/{name},GET /v1/agents,GET /v1/agents/discover,GET /workspace/{info,export},POST /v1/workspace/{sync,agent-routing},POST /artifacts/store,GET /artifacts/{list,mailbox,stats},POST /artifacts/{id}/read,POST /media/upload,GET /media/{filename},POST /doors/{knock,present}
2. AitherRetrieval (https://retrieval.aitherium.com)
- Readiness & contract discovery:
GET /ready,GET /version,POST /v1/meta(returns supported modalities, pagination rules, and the fullRET-*error catalog) - Search:
POST /v1/search(unified),/v1/vector/search,/v1/vector/embed,/v1/text/search,/v1/hybrid/search,/v1/graph/search,/v1/code/search,/v1/memory/search,POST /v1/recurse/answer - Ingest & documents:
POST /v1/ingest,/v1/ingest/batch,/v1/artifacts/ingest,/v1/artifacts/ingest-bundle,POST /v1/documents/delete,GET/DELETE /v1/documents/{doc_id},POST /v1/export - Collections & knowledge graph:
GET/POST /v1/collections/{collection}/points/{scroll,upsert,delete},GET /v1/graph/neighbors/{node_id},GET /v1/graph/path/{source_id}/{target_id} - Leases & sessions:
POST /v1/leases/{acquire,heartbeat,release},POST /v1/session/{exec,close},GET/POST /v1/config
3. A2A — Agent-to-Agent Protocol
Google A2A v0.3.0 compatible, with optional Ed25519 request signing (X-Signature +
X-Public-Key) via adk mesh and adk invoke:
- Discovery:
GET /.well-known/agent-card.json(canonical; replaces deprecated/.well-known/agent.json),GET /agents/{agent_id}/.well-known/agent.json - JSON-RPC 2.0 (
POST /,POST /rpc):message/send,message/stream(SSE),tasks/send,tasks/get,tasks/cancel,tasks/resubscribe,agents/list - REST tasks & SSE:
POST /tasks,POST /tasks/sendSubscribe(SSE),GET /tasks/{task_id}/subscribe(SSE),GET /tasks/{task_id},DELETE /tasks/{task_id} - Registry & delegation:
GET /agents,POST /agents/register,GET /agents/me,DELETE /agents/{agent_id}/unregister,GET /skills,POST /skills/{skill_id}/execute,POST /delegate
4. Workflows (https://api.aitherium.com/workflows/*)
- Definitions:
GET/POST /workflows/,GET/PUT/DELETE /workflows/{id},POST /workflows/from-yaml,GET /workflows/{id}/yaml,POST /workflows/estimate-cost - Execution & replay:
POST /workflows/{id}/execute,GET /workflows/runs/{run_id},GET /workflows/runs/{run_id}/timeline,GET /workflows/runs/{run_id}/lineage,POST /workflows/runs/{run_id}/replay/{stage_id},POST /workflows/runs/{run_id}/gate/{stage_id}
5. Agent Notebooks .anb (https://api.aitherium.com/notebooks/*)
Executable, reviewable, cost-tracked DAGs of 14 typed cells (context, plan, note,
result, prompt, tool_call, agent_delegate, service_call, transform, checkpoint,
parallel_block, loop, condition, script):
- Authoring & templates:
GET/POST /notebooks/,GET/PUT/DELETE /notebooks/{id},POST /notebooks/plan,GET/POST /notebooks/templates,POST /notebooks/estimate-cost,GET /notebooks/{id}/export(.ipynb), cell CRUD/notebooks/{id}/cells[/{cell_id}] - Execution & interactive sessions:
POST /notebooks/{id}/execute,POST /notebooks/{id}/replay,GET /notebooks/{id}/stream(SSE),POST /notebooks/{id}/sessions,POST /notebooks/sessions/{sid}/execute/{cell_id},/run-all,/interrupt,/sandbox,/save,GET /notebooks/sessions/{sid}/stream(SSE),POST /notebooks/execute-cell, human approval/gate/{cell_id} - Review workflow:
/notebooks/{id}/review/{approve,reject,changes,apply} - Note: Source-grounded document chat and podcast synthesis live separately under
/research-notebooks/*.
6. Developer Portal, Forge, Licenses & OpenAW (https://api.aitherium.com)
- Developer portal:
POST /developer/agents/register,/verify,GET /developer/agents,GET /developer/agents/{id},GET /tools,PUT /tools/{allowlist,denylist},GET /usage,GET/PUT/POST /security-policy,GET /developer/tiers - Forge & expeditions:
/forge/dispatch(+/sync,/dispatch-parallel,GET /forge/sessions/{id}/stream),/expedition/{intake,{id}/plan,{id}/execute,{id}/stream,gates/{gate_id}/respond} - Licenses:
/v1/licenses/{validate,heartbeat,exchange-pull-token} - OpenAW:
GET /openaw/projects,GET /openaw/projects/{slug},GET/POST /openaw/projects/{slug}/posts,GET /openaw/me
Real-time streaming (SSE & WebSocket)
- Server-Sent Events (
text/event-stream):POST /v1/chat/completions(stream: true),POST /chat/stream,POST /v1/hosted/chat/completions/stream,GET /v1/events/stream,POST /tasks/sendSubscribe,GET /tasks/{id}/subscribe,GET /notebooks/{id}/stream,GET /notebooks/sessions/{id}/stream,GET /forge/sessions/{id}/stream,GET /expedition/{id}/stream, and Streamable HTTP/mcp. - WebSockets:
/ws,/ws/events,/ws/tasks,/ws/voice,/ws/ui,/ws/notifications.
Error envelopes by API family
- Public Gateway
POST /v1/chat/completions(flat JSON):
Status codes:{ "error": "rate_limit_exceeded", "retry_after": 60 }400invalid payload or unknown model,402insufficient balance,403tier or allowlist denied,429rate/capacity cap (retry_afterseconds),502/503/504upstream error. Missing/unknown bearer falls back to the anonymous free tier (aither-small) rather than returning401. Strict-auth hosted routes (/v1/hosted/chat/completions) always enforce401on missing/invalid credentials. - OpenAI-compatible nested error shape (upstream / embeddings):
{ "error": { "message": "...", "type": "invalid_request_error", "code": "..." } } - AitherRetrieval structured envelope (
RET-*):
Code bands:{ "success": false, "error": { "code": "RET-1003", "message": "...", "details": {} }, "request_id": "...", "metadata": { "api_version": "..." }, "duration_ms": 1.2, "data": {} }RET-1001..1004auth/tenant,RET-2001..2005validation/pagination,RET-3001..3002not found,RET-4001..4003idempotency/lease conflict,RET-4291rate limit,RET-5001..5005upstream,RET-6001..6002internal/not ready. - A2A & MCP (JSON-RPC 2.0):
{"jsonrpc": "2.0", "id": "...", "error": {"code": -32602, "message": "...", "data": ...}} - Platform REST (FastAPI / Identity / Genesis):
{"detail": "..."}(withRetry-Afteron429), or UnifiedResponse{"success": false, "data": null, "error": "...", "request_id": "..."}.
Official SDKs & CLIs
| Package / Tool | Install | Language | Licence | Role |
|---|---|---|---|---|
| OpenAI SDKs | pip install openai / npm i openai | Python / TS / Go | Apache-2.0 / MIT | Drop-in client against https://mcp.aitherium.com/v1 or adk bonsai-local |
awdk v4.0.0 (adk CLI) | pip install awdk | Python 3.10+ | BUSL-1.1 | Sovereign agent SDK & 146-command CLI (adk bonsai-local, adk login, adk mcp, adk pack, adk skills, adk notebook, adk workflow, adk mesh, adk invoke, adk home). Replaces retired aithersdk / aither-adk. |
awrouter v0.3.1 | pip install "awrouter[serve]" | Python | BUSL-1.1 | Standalone OpenAI-compatible multi-backend router with failover & context fitting |
aitherium-awflow v0.2.3 | pip install aitherium-awflow (import awflow) | Python | Apache-2.0 | Deterministic journaled multi-agent workflow runtime with prefix replay & hard token budgets (do not install the unrelated third-party PyPI package named awflow) |
@aitherium/awsh v2.0.0 | npm i -g @aitherium/awsh | Node / TS | BUSL-1.1 | Terminal agent cockpit & headless pipe CLI (awsh, aither). Replaces retired aithershell. |
@aitherium/awbonsai | npm install @aitherium/awbonsai | TypeScript / WebGPU | Public runtime | Consent-gated in-browser Bonsai inference runtime |
aither-sdk v0.1.0 | pip install aither-sdk | Python | MIT | Business services client (Directory, Auth, Vault, CA, Mail) |
awnode | pip install awnode | Python | MIT | Lightweight local hardware & MCP node daemon (awnode mcp, awnode hub serve) |
awkno | pip install awkno | Python | Public CLI | Offline developer manual covering 102 bricks, 29 stacks, 14 guides, and 32 laws |
Machine-readable specifications & discovery
- OpenAPI 3.1.0:
https://developer.aitherium.com/openapi.json - LLM indexes:
https://developer.aitherium.com/llms.txtandhttps://developer.aitherium.com/llms-full.txt - Tool pack JSON Schema:
https://developer.aitherium.com/developers/awpack-schema.json - Discovery endpoints:
/.well-known/openid-configuration,/.well-known/oauth-protected-resource,/.well-known/mcp.json,/.well-known/mcp-registry.json,/.well-known/agent-card.json,/.well-known/doors.json