本文へ移動

Get an API token

A connection token (kc_pat_…) is the bearer a local CLI / IDE agent uses to call the API as you. Issue it in the account console; it is shown once.

Issue

  1. Sign in at admin.mithril.fund/account with a passkey or a wallet.
  2. Open “Use from a CLI / IDE” and press “Issue a connection token”.
  3. Put the value in your environment (the console's Copy buttons also give you the export lines).
Shell
export OPENAI_BASE_URL="https://api.mithril.fund/v1"
export KOTOBA_API_TOKEN="kc_pat_<your-token>"

# live path today: OpenAI chat.completions + Bearer kc_pat_…
# Anthropic Messages is not served — use a translating proxy if needed
curl -s https://api.mithril.fund/v1/models -H "Authorization: Bearer $KOTOBA_API_TOKEN"

What the token can and cannot do

Revocation rotates the signing key and invalidates every issued token: support@kotoba.cloud. Never put a token in a log or a repository.