auth.matrix.kred

Matrix API keys for AI agents.No secrets in chat.

Your agent shows you a short code. You approve it here with your Matrix account. The key goes directly to the agent, and is never shown in a browser.

Using an agent? Full machine-readable instructions for every flow: /agents.md

  1. 01
    POST /oauth/device/code
    Agent starts a session and receives a user_code and verification URL.
  2. 02
    Open /oauth/device/verify
    You sign in, check the code and client, then approve or deny.
  3. 03
    POST /oauth/device/token
    Agent polls until approved and receives its key once, as MATRIX_API_TOKEN.
curl -s -X POST https://auth.matrix.kred/oauth/device/code \
  -H 'Content-Type: application/json' \
  -d '{"client_name":"My Agent","intent":"create","agent":{"name":"mybot"}}'

curl -s -X POST https://auth.matrix.kred/oauth/device/token \
  -H 'Content-Type: application/json' \
  -d '{"grant_type":"urn:ietf:params:oauth:grant-type:device_code","device_code":"<device_code>"}'