Providers
Supported AI Providers
LimitAID queries three AI platforms, each with its own rate limiting and billing model.
Codex / OpenAI
Codex / OpenAI
Hits the chatgpt.com usage API and returns two independent rate-limit windows: a rolling 5-hour window for short-burst work, and a weekly window for sustained usage. It also reports your credits balance and any Spark sub-limits that apply to your plan tier. Credentials are pulled automatically from ~/.codex/auth.json.
GET https://chatgpt.com/backend-api/wham/usageReads ~/.codex/auth.jsonOpenRouter
OpenRouter
Exposes a single key endpoint that returns your credit limit, remaining balance, and a usage breakdown across daily, weekly, and monthly windows. Unlike Codex, there's no auto-discovery — you need to add your API key to keys.conf by hand.
GET https://openrouter.ai/api/v1/keyManual — add to keys.confZ.ai
Z.ai
Reports two hard limits: a 5-hour time-limit window that gates how long you can run agents, and a weekly token budget. The per-tool MCP breakdown lets you see exactly which tools (search-prime, web-reader, zread, etc.) are eating into your quota. Credentials come from your opencode config.
GET https://api.z.ai/api/monitor/usage/quota/limitReads ~/.config/opencode/opencode.json