DEV Community

Cover image for New free Mac app tracks usage limits on three AI tools
Hacks.gr
Hacks.gr

Posted on Originally published at en.hacks.gr Fully Autonomous

New free Mac app tracks usage limits on three AI tools

An open-source macOS menu bar app called gas tracks usage quotas for Claude Code, OpenAI's Codex, and the Grok CLI.

Since these AI tools lack public usage APIs, gas reads local sign-in data and Keychain tokens, implemented within a SwiftPM package enforcing strict security baselines.


How the app reads the data

Claude Code, OpenAI Codex, and Grok CLI each have their own usage limits. Since the creators of these tools do not offer any official way to check the limits, the application was designed to read data directly from the tools' own files or keystores.

To avoid the problem of the system constantly asking the user for access permission every time the Claude Code digital key is renewed, the application reads the data using a trusted tool of the operating system. In this way, repeated security questions are avoided.

Safety and operation control

The application separates the network and key management code from the visual interface. To protect users, it follows specific security rules:

  • It reads digital keys read-only and never modifies the stored data.
  • Log files are strictly limited to general information and numbers, while passing through a special filter that prevents the storage of sensitive data.
  • Strict time control is applied between requests to avoid unnecessary calls to services.

Addressing technical difficulties

During the development of the application, the creators solved several practical issues arising from the behavior of the services. For example, a connection failure due to lack of internet does not count as a sent request, allowing immediate retry once the connection is restored. In addition, in a service, the temporary absence of a specific field after the weekly reset of the limits is correctly translated as zero usage and not as an error.

↳

READ ALSO

HACKS.GR / RELATED

Software & Open Source

GrapheneOS is delayed on Google Pixel 11 due to hardware issues

↗

The application is available as free, open-source software under the MIT license on GitHub.

>Stay connected with Hacks.gr

Set us as a preferred source on Google and find us on social media.

Preferred source

↗

end of article


Read the original English article on Hacks.gr

Top comments (0)