AI Limits — Claude, Codex, Kimi
Monitor Claude Code, Codex and Kimi Code usage limits directly in the VS Code status bar. Each service has its own independent indicator with progress bars, usage percentages, and reset countdowns.
Features
- Separate Claude, Codex and Kimi indicators — each service keeps its complete status text and can be positioned independently by VS Code
- Claude limits — 5-hour session, 7-day all-models limit, and the optional 7-day Sonnet limit
- Codex limits — displays the real usage windows returned by the local Codex app-server
- Kimi Code limits — 5-hour window and monthly limit (weekly too, if your plan has one), read-only
- Visual progress bars — compact six-segment bars with percentage usage
- Reset countdowns — shows the approximate time until each available window resets
- Warning indicators — 🟡 at 60–79% usage and 🔴 at 80%+
- Shared refresh — click any indicator to refresh all services together
- Automatic refresh — all services update every 5 minutes
- Compact view — letters instead of words, no service names, no progress bars,
5h instead of Session — mix as you like
- Per-service visibility — show each indicator automatically, always, or never
- Russian and English labels — switch languages without restarting VS Code
- Account tooltips — hover over any indicator to see the signed-in account name and email
Status Bar
Example with Russian labels:
Claude: Сессия: ████░░ 62% (~2ч) | Неделя: ███░░░ 51% (~2д15ч)
Codex: Сессия: █░░░░░ 9% (~4ч) | Неделя: █░░░░░ 14% (~6д16ч)
Kimi: Сессия: ░░░░░░ 5% (~2ч) | Месяц: ░░░░░░ 1% (~30д)
The same in the most compact view (letters, 5h, no names, no bars — each line starts with the service logo):
5ч: 🟡62% (~2ч) | Н: 51% (~2д15ч)
5ч: 9% (~4ч) | Н: 14% (~6д16ч)
5ч: 5% (~2ч) | М: 1% (~30д)
Each service is a separate status bar item. Other extensions may appear between them. Clicking any item runs the same refresh command and updates all services.
The displayed percentage is the portion of the limit already used. A value of 100% means the limit is exhausted.
How It Works
Claude Code
Every 5 minutes, the extension reads the Claude OAuth token from ~/.claude/.credentials.json, requests current usage from the Anthropic API via curl, and stores the latest result in ~/.claude/limits.json.
On first activation, the extension also configures a Claude Code Stop hook. The hook refreshes limits.json after a Claude session, and the extension watches that file for immediate updates.
If the stored data stops being updated, the indicator keeps the last known numbers but marks them with a warning icon, and the tooltip shows the reason. Percentages are never silently presented as current when they are not.
Codex
The extension requests live rate-limit data from the local Codex app-server. If live data is temporarily unavailable, it can read the most recent rate-limit event from local Codex session logs.
Codex requests allow up to 60 seconds for slow responses, reuse the current authentication without forcing a token refresh on each poll, and avoid overlapping requests.
The signed-in Codex account shown in the tooltip (name and email) comes from the local ~/.codex/auth.json; the app-server answer is used only as a fallback, because it returns the email without the name.
Only windows actually returned by Codex are displayed. For example, an account that exposes only a weekly limit shows only Week / Неделя.
Kimi Code
Every 5 minutes, the extension reads the access token from ~/.kimi-code/credentials/kimi-code.json and requests https://api.kimi.com/coding/v1/usages — the same endpoint the /usage command in Kimi Code uses.
The signed-in Kimi account shown in the tooltip comes from https://api.kimi.com/coding/v1/me, the profile endpoint Kimi Code itself uses.
The extension is read-only here: it never refreshes the token and never writes to Kimi files. The token lives about 15 minutes and is renewed by Kimi Code while it is open. When Kimi Code is closed, the indicator keeps the last known numbers and the tooltip says they are out of date; a window whose reset time has already passed is shown as 0%. Open Kimi Code and the next refresh brings fresh numbers.
Installation
Install from the Visual Studio Marketplace or install a local .vsix:
- Open Extensions in VS Code.
- Select
… → Install from VSIX…
- Choose the downloaded package.
Requirements
- VS Code 1.85 or newer
- Claude Code installed and signed in to display Claude limits
- Codex VS Code extension installed and signed in, or a supported local Codex executable, to display Codex limits (no separate desktop app required)
- Kimi Code installed and signed in to display Kimi limits; open it from time to time to keep the numbers fresh
curl available in PATH (bundled with Windows 10+, macOS, and most Linux distributions)
- Node.js available in
PATH for the Claude Stop hook
The extension can display each service independently. You do not need to use all of them.
Settings
Open VS Code Settings (Ctrl+,) and search for AI Limits.
| Setting |
Options |
Default |
Description |
claudeLimits.showProgressBars |
true, false |
true |
Show progress bars for all services; disable to save space |
claudeLimits.labels |
words, letters |
words |
Session / Week / Month or S / W / M (С / Н / М in Russian) |
claudeLimits.showServiceNames |
true, false |
true |
Show Claude: / Codex: / Kimi: next to the logo |
claudeLimits.shortWindowLabel |
session, 5h |
session |
Name of the 5-hour window. It is a rolling limit that can span several sessions, so 5h / 5ч is also an option |
claudeLimits.language |
ru, en |
en |
Language for labels and tooltips |
claudeLimits.claudeVisibility |
auto, always, hidden |
auto |
Controls the Claude indicator |
claudeLimits.codexVisibility |
auto, always, hidden |
auto |
Controls the Codex indicator |
claudeLimits.kimiVisibility |
auto, always, hidden |
auto |
Controls the Kimi indicator |
All view settings apply immediately to every indicator.
Visibility modes:
auto — show the indicator only when you are signed in to the corresponding service. For Codex and Kimi this means a login file exists; an installed extension without a login does not count
always — always show the indicator, including no data states
hidden — never show the indicator
Commands
| Command |
Description |
AI Limits: Refresh |
Immediately refresh usage for all services |
The command is available from the Command Palette and runs when either status bar indicator is clicked.
Privacy
- Claude credentials are read locally and sent only to the fixed Anthropic API endpoint used for usage data.
- Codex limits are requested from the locally installed Codex app-server.
- The Kimi Code token is read locally and sent only to the fixed Kimi usage endpoint. The last Kimi usage response (percentages and reset times) and the account label are kept in VS Code storage so the numbers survive a restart.
- Credentials and access tokens are not displayed or stored by the extension.
- Account names and emails may appear in the tooltips.
Known Limitations
- Background refresh runs every 5 minutes; click any indicator for an immediate update.
- Kimi numbers update only while Kimi Code is open, because only Kimi Code renews its token.
- Available limit windows depend on the data exposed by each service and account plan.
- Codex account details use local authentication data when
account/read does not provide them.
- If a service changes its local credential or rate-limit interface, a future extension update may be required.
Release history is available in CHANGELOG.md.
Service icons
Claude, Codex and Kimi labels include their service logos. The bundled icons follow the status bar text color and stay visible when progress bars are hidden.