Skip to content

Free cheat sheet · Claude Code + Codex

Claude Code & Codex limits, explained.

How the 5-hour and weekly windows work, how to see where you stand, what burns them fastest, and 8 habits that stretch them.

Free · no account · checked 20 October 2026

The short version

Both tools give you two allowances that run at the same time: a short five-hour window and a weekly one. Whichever runs out first stops you.

Claude Code · Pro, MaxCodex · ChatGPT plans
Short windowA session limit that resets every five hours.A five-hour window on Plus and Standard Business. Pro plans currently have no five-hour limit.
WeeklyA weekly limit on top. Max also has a separate weekly limit for Fable.Weekly limits may also apply.
Shared withClaude chat and Claude Code use the same limits.Cloud tasks may use more of your allowance than local messages.
Published numbersNone. Anthropic does not publish message counts for either window.Estimates only, per model. Example: GPT-6.1 Sol, 15–160 local messages per five hours on Plus. OpenAI says these are not fixed limits.
Where you stand/usage in Claude Code, or claude.ai › Settings › Usage/status in the Codex CLI, or chatgpt.com/codex/settings/usage
When you hit itWait for the reset time in the message, or turn on usage credits (/usage-credits).Wait for that reset, or buy credits (Plus and Pro).

About numbers you see online. Posts that say “Pro gets N prompts” are guesses. Anthropic publishes no counts. OpenAI publishes per-model ranges and calls them estimates. How much one message costs depends on the model, how long the conversation is, effort, tools and MCP servers.

How resets work

See where you stand

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh"
  }
}

Then save this script as ~/.claude/statusline.sh and run chmod +x ~/.claude/statusline.sh:

#!/bin/bash
# ~/.claude/statusline.sh  (chmod +x it; needs jq)
input=$(cat)
FIVE_H=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty')
WEEK=$(echo "$input" | jq -r '.rate_limits.seven_day.used_percentage // empty')
OUT=""
[ -n "$FIVE_H" ] && OUT="5h $(printf '%.0f' "$FIVE_H")%"
[ -n "$WEEK" ] && OUT="${OUT:+$OUT · }7d $(printf '%.0f' "$WEEK")%"
echo "${OUT:-limits: after the first reply}"

What burns it fastest

8 habits that stretch them

  1. Clear between unrelated tasks. /rename the session, /clear, and /resume it later if you need it.
  2. Match the model to the job. Sonnet handles most coding. Keep Opus for hard design calls, and give simple subagents model: haiku.
  3. Plan before it codes. Shift+Tab into plan mode for anything big. Press Esc the moment it heads the wrong way; /rewind goes back.
  4. Keep CLAUDE.md under 200 lines. It loads every session. Move workflow-only instructions into skills, which load when used.
  5. Turn off MCP servers you aren’t using. /mcp lists them. A CLI such as gh costs less context than an MCP server.
  6. Lower the effort for easy work. /effort for renames, small fixes and lookups.
  7. Come back within the hour, or start fresh. After an hour away, a fresh session with a short summary is cheaper than poking the old one.
  8. Keep noisy output out of the main thread. Let a subagent run the test suite or dig through logs and report back, or use a hook that trims test output to the failures.

On Codex, the same habits apply. When you are close to a limit, run work locally instead of as a cloud task, skip Fast and Ultrafast, and check /status before you start something long.

sources

Checked against these official pages on 20 October 2026. Plans and limits change; if a page here disagrees with them, the official page wins.

  1. Using Claude Code with your Pro or Max plan · Claude Help Center
  2. Understanding usage and length limits · Claude Help Center
  3. Usage limit best practices · Claude Help Center
  4. Manage costs effectively · Claude Code docs
  5. Customize your status line · Claude Code docs
  6. Codex pricing and usage limits · OpenAI