Documentation

Security

v0.1

API keys

  • Keys are generated with 256 bits of randomness and prefixed ok_live_.
  • Only a SHA-256 hash is stored. The plaintext key is shown once at creation.
  • Pause a key from Console → API keys to block requests without rotating the secret; resume it when you are ready.
  • Set a per-key usage window (allowed days, start/end time, timezone). Requests outside the window are rejected.
  • Edit the key name, expiry, IP allowlist and usage window at any time. Revocation is permanent and immediate.
  • Use a separate key per machine or project so you can rotate without downtime.

Teams

  • Group keys under a team for a group, project or customer.
  • A team can share a monthly budget, usage window, allowed-model list and pause state.
  • Keys can have a narrower window of their own; both the key and team windows are enforced.
  • Team budgets are checked against usage in the current calendar month and stop requests once the budget is exhausted.
  • Team owners can invite members by email. Admins can manage the team and its members; viewers have read-only access.
  • Team members can open the team usage view for totals, daily spend, usage by key and model, and CSV export.
  • A team owner can move wallet credits into a prepaid team pool, reclaim unused credits, and disable the pool when it is empty. Team keys debit that pool when it is enabled; otherwise they use the owner's plan allowance first, then wallet credits.

Data handling

  • We do not train models on customer prompts or completions.
  • Request bodies are used to call the upstream provider and to meter usage, then discarded by OpenKodo. Upstream providers process them under their own terms.
  • We retain usage metadata (model, token counts, cost, latency, status, key ID) for billing and analytics.
  • We do not sell customer data.

Transport

All traffic uses HTTPS. The production API is served through Cloudflare with TLS 1.2+ and HSTS. Origin certificates are managed by Caddy.

Webhooks

Payment webhooks are verified before they change an account: Stripe events use the Stripe-Signature HMAC, Waffo events use RSA-SHA256, and WeChat Pay V2 callbacks are verified with the merchant signature key before amounts, merchant identity and order references are accepted. Events outside the signing window are rejected, and event IDs are stored for idempotency.

Account security

  • Customer sign-in uses GitHub or Google OAuth 2.0. X uses PKCE.
  • OAuth state is single-use, stored server-side, and expires after 10 minutes.
  • Operator accounts use Argon2id password hashes. Email signup and password reset are disabled.
  • Sessions are HTTP-only cookies with SameSite=Lax and a CSRF double-submit token.
  • Admin actions are written to an audit log.

Reporting a vulnerability

Email [email protected]. Please include a proof of concept and allow us time to respond before public disclosure. We do not pursue legal action against good-faith research.