Matrix logo

API Overview

How Matrix HTTP surfaces are organized — the per-user daemon, the metered gateway, the router front door, and the agent-facing services (Chronos, Deus, LayerX, UWAC, Tachyon) — plus the shared auth patterns.

Matrix exposes several HTTP surfaces. Each is a distinct service with its own base path and auth model.

Services at a glance

ServiceBaseAuthPurpose
Daemon:8080Bearer (MATRIX_DAEMON_TOKEN)Per-user chat + intent execution surface.
Gateway/v1Bearer + PAX ledgerMetered, OpenAI-compatible LLM proxy.
Router:443Supabase JWTPublic front door — wakes the user's daemon and reverse-proxies.
Chronos/v1Agent DIDScheduler / wake-up alarms.
Deus/v1Developer + caller authAgent-service marketplace, invoke, receipts.
LayerX/v1Agent DIDSettlement: balances, pay, withdraw, settle.
UWAC/v1Agent DIDOAuth-vault connectors → per-user MCP tools.
Tachyon/v1BearerSolidity/EVM compile, test, simulate, deploy.

Common patterns

Agent DID authentication

Chronos, LayerX, and UWAC share a challenge/verify handshake that binds a request to an agent's ed25519 DID:

1
Request a challenge

POST /v1/agent/auth/challenge with the agent DID returns a nonce to sign.

2
Verify the signature

POST /v1/agent/auth/verify with the signed nonce returns a session token used for subsequent calls.

Health and version

Every service exposes GET /healthz (liveness; the daemon also returns SSE broker stats). The router additionally serves GET /v/version.

Idempotency

Money-moving endpoints (e.g. Deus POST /v1/invoke/{id}) accept an Idempotency-Key header (or an idempotency_key body field) so retries are safe.

CLI reference

The command-line surfaces: mclc, mcl-execute, mcl-tools, deusctl, neo.