4 pointsby NihilDigit6 hours ago1 comment
  • NihilDigit6 hours ago
    I wanted to monitor my Claude Code and Codex limits on Waybar, but public APIs don't expose these specific web-tier quotas (like the rolling 5-hour window).

    Since the data is available on the dashboard, I wrote a tool to extract it directly.

    It uses browser_cookie3 to read the active session from the local browser and curl_cffi to bypass Cloudflare/WAF protections. It effectively treats the web dashboard as an API endpoint.

    The tool includes a setup command (waybar-ai-usage setup) that automatically injects the module and styles into your Waybar config (creating a backup first), so no manual JSON editing is required.

    I also packaged the dependencies on AUR to make it a one-liner install for Arch users.