| summary | read_when | |||
|---|---|---|---|---|
Kimi provider notes: cookie auth, quotas, and rate-limit parsing. |
|
Tracks usage for Kimi For Coding in CodexBar.
- Displays weekly request quota (from membership tier)
- Shows current 5-hour rate limit usage
- Automatic and manual authentication methods
- Automatic refresh countdown
Choose one of two authentication methods:
No setup needed! If you're already logged in to Kimi in Arc, Chrome, Safari, Edge, Brave, or Chromium:
- Open CodexBar settings → Providers → Kimi
- Set "Cookie source" to "Automatic"
- Enable the Kimi provider toggle
- CodexBar will automatically find your session
Note: Requires Full Disk Access to read browser cookies (System Settings → Privacy & Security → Full Disk Access → CodexBar).
For advanced users or when automatic import fails:
- Open CodexBar settings → Providers → Kimi
- Set "Cookie source" to "Manual"
- Visit
https://www.kimi.com/code/consolein your browser - Open Developer Tools (F12 or Cmd+Option+I)
- Go to Application → Cookies
- Copy the
kimi-authcookie value (JWT token) - Paste it into the "Auth Token" field in CodexBar
Alternatively, set the KIMI_AUTH_TOKEN environment variable:
export KIMI_AUTH_TOKEN="jwt-token-here"When multiple sources are available, CodexBar uses this order:
- Manual token (from Settings UI)
- Environment variable (
KIMI_AUTH_TOKEN) - Browser cookies (Arc → Chrome → Safari → Edge → Brave → Chromium)
Note: Browser cookie import requires Full Disk Access permission.
Endpoint: POST https://www.kimi.com/apiv2/kimi.gateway.billing.v1.BillingService/GetUsages
Authentication: Bearer token (from kimi-auth cookie)
Response:
{
"usages": [{
"scope": "FEATURE_CODING",
"detail": {
"limit": "2048",
"used": "214",
"remaining": "1834",
"resetTime": "2026-01-09T15:23:13.716839300Z"
},
"limits": [{
"window": {"duration": 300, "timeUnit": "TIME_UNIT_MINUTE"},
"detail": {
"limit": "200",
"used": "139",
"remaining": "61",
"resetTime": "2026-01-06T13:33:02.717479433Z"
}
}]
}]
}| Tier | Price | Weekly Quota |
|---|---|---|
| Andante | ¥49/month | 1,024 requests |
| Moderato | ¥99/month | 2,048 requests |
| Allegretto | ¥199/month | 7,168 requests |
All tiers have a rate limit of 200 requests per 5 hours.
- Ensure "Cookie source" is set correctly
- If using Automatic mode, verify you're logged in to Kimi in your browser
- Grant Full Disk Access permission if using browser cookies
- Try Manual mode and paste your token directly
- Your token has expired. Paste a new token from your browser
- If using Automatic mode, log in to Kimi again in your browser
- You're not logged in to Kimi in any supported browser
- Grant Full Disk Access to CodexBar in System Settings
- The API response format may have changed. Please report this issue.
- Core files:
Sources/CodexBarCore/Providers/Kimi/ - UI files:
Sources/CodexBar/Providers/Kimi/ - Login flow:
Sources/CodexBar/KimiLoginRunner.swift - Tests:
Tests/CodexBarTests/KimiProviderTests.swift