Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I put my Claude usage limits on my desktop (a PowerShell WPF widget and a SwiftBar plugin)

Описание и применение

Виджеты для Windows и macOS отображают в реальном времени лимиты использования Claude, предотвращая неожиданные сообщения об ограничениях.

Задача

Users of Claude often hit usage limits unexpectedly, interrupting workflow.

Результат

The widgets keep users informed of Claude usage limits in real time, reducing interruptions caused by unexpected limit messages.

Рабочий процесс

  • 1. Retrieve organization UUID via GET https://claude.ai/api/organizations using sessionKey cookie.
  • 2. Fetch usage data via GET https://claude.ai/api/organizations/{org_uuid}/usage.
  • 3. Parse JSON for five_hour, seven_day, seven_day_opus, seven_day_sonnet utilization and resets_at.
  • 4. Update UI elements every 5 minutes; recompute countdowns locally each minute.
  • 5. On Windows, run a single PowerShell .ps1 script that loads a WPF XAML UI, uses a background runspace to fetch data, and a DispatcherTimer to update the UI without blocking.
  • 6. On macOS, run a SwiftBar plugin that performs the same API calls and updates the menu bar item.
  • 7. If sessionKey is missing, fall back to OAuth token in ~/.claude/.credentials.json and call api.anthropic.com/api/oauth/usage.

Доказательства

There's no public API for this, so the widgets call the same endpoints as the claude.ai web app, authenticated with your browser's sessionKey cookie:

Источник

Both are a single script each, need no install beyond what ships with the OS, and are open source: 👉 github.com/advancedcognitivesystems-ai/claude-usage-widgets

Источник

⚠️ These are undocumented internal endpoints. They can change any day, and this project isn't affiliated with Anthropic.

Источник

  • Дата записи: 2026-10-27T10:26:33.266Z