How I Track Claude, Codex, and Gemini Quotas from One Script
The article discusses a script created by Ian L. Paterson to track usage quotas for AI coding tools Claude, Codex, and Gemini. The script collects data on rate limits and usage, providing a clearer picture of when users might hit their limits. It highlights the challenges of managing multiple AI tools without clear quota information and the workarounds found to monitor usage effectively.
- ▪Ian L. Paterson built a script to track usage quotas for Claude, Codex, and Gemini AI coding tools.
- ▪The script collects quota data and writes it to a JSON file, running on an hourly schedule.
- ▪Paterson discovered undocumented API endpoints and workarounds to monitor usage effectively.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3796710) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Ian L. Paterson Posted on May 18 • Originally published at ianlpaterson.com How I Track Claude, Codex, and Gemini Quotas from One Script #ai #llm #productivity #bash (If you're trying to decide which model to switch to when one runs dry, I benchmarked 15 models on 38 real coding tasks with full cost-per-task breakdowns.) I run three AI coding CLIs daily. None of them tell me whether I'm about to hit a rate limit.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).