gpt-weekly-limit-estimation

Estimate OpenAI weekly usage limits by parsing SSE logs and calculating token costs.

2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/tankygranny05/agent-box --skill gpt-weekly-limit-estimation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gpt-weekly-limit-estimation
Source: https://github.com/tankygranny05/agent-box/tree/main/agent-box/seed/codex-skills/gpt-weekly-limit-estimation
Command: npx skills add https://github.com/tankygranny05/agent-box --skill gpt-weekly-limit-estimation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps users track and estimate their OpenAI API usage costs against weekly billing limits, preventing unexpected overages.

Core Features & Use Cases

  • Usage Tracking: Analyzes SSE logs to calculate token consumption for Codex and Claude models.
  • Cost Estimation: Projects weekly costs based on live pricing and current usage.
  • Limit Projection: Estimates total weekly limits from partial usage data.
  • Use Case: A developer can use this Skill at the end of a billing cycle to understand their spending and forecast future costs, ensuring they stay within budget.

Quick Start

Extract the billing week data from the Codex logs for January 15th to January 22nd, 2026.

Frequently Asked Questions about gpt-weekly-limit-estimation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate OpenAI weekly usage limits from SSE logs?

You can estimate OpenAI weekly usage limits from SSE logs by parsing Codex CLI and Claude Code logs, extracting token consumption based on a specific reset time, and computing costs using live pricing to project weekly limits from partial usage data.

How does token cost calculation work for Codex and Claude models?

Token cost calculation for Codex and Claude models works by analyzing SSE logs to extract token consumption data, then multiplying usage by live pricing rates to compute accurate billing costs for your billing cycle.

What is the best way to track OpenAI API spending against weekly billing limits?

The best way to track OpenAI API spending against weekly billing limits is to parse SSE logs for token consumption data, calculate costs using live pricing, and project total weekly limits from your current partial usage to prevent unexpected overages.

Can I use Python scripts to analyze Claude Code logs for billing week data?

Yes, you can use Python scripts to analyze Claude Code logs for billing week data. The Skill requires Python scripts for log processing and cost calculation, extracting billing data based on a specific reset time to determine your weekly usage.

When do I need to project weekly limits from partial API usage data?

You need to project weekly limits from partial API usage data when you want to forecast your total spending before the billing cycle ends, helping you understand your current consumption rate and prevent unexpected cost overages.

Does this approach work with both Codex CLI and Claude Code logs?

Yes, this approach works with both Codex CLI and Claude Code logs. The Skill analyzes SSE logs from both platforms, extracts token consumption data, and calculates costs using live pricing to estimate your weekly usage limits.