← Catalog

@simonesiega/codex-limits

Cross-platform npm CLI with agent integrations for monitoring OpenAI Codex usage limits, reset times, and reset-credit coupons.

Package

Install

Install with PiG

pig install npm:@simonesiega/codex-limits

Install with Pi

pi install npm:@simonesiega/codex-limits
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./dist/pi.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.3.1 (README.md). PiG does not review it.

Codex Limits

Monitor Codex usage limits, reset times, and reset credits without leaving your terminal.

Quick start · Installation · Usage · Integrations · Documentation · Showcase

npm version Total npm downloads Automated test status License Code coverage

Animated Codex Limits terminal dashboard showing usage windows and reset credits

Overview

Codex Limits gives you a fast view of your Codex usage without interrupting your coding flow. Check remaining capacity, reset times, and reset credits through an interactive dashboard or lightweight terminal commands.

It also provides stable JSON output for automation, safe diagnostics, shell completions, and optional integrations for supported coding agents. Reset-credit redemption is isolated behind an explicit interactive confirmation flow, and public output excludes sensitive credentials, account IDs, private paths, and raw local files.

See the dedicated visual showcase to compare the dashboard, compact CLI, and agent-integrated experience.

Quick start

Launch the latest dashboard directly—no installation required:

npx -y @simonesiega/codex-limits@latest

For a quick non-interactive check:

npx -y @simonesiega/codex-limits@latest status

Installation

Install the published npm package globally:

npm install -g @simonesiega/codex-limits@latest

Open the dashboard:

codex-limits

For a quick non-interactive check:

codex-limits status

Requirements

The published CLI requires Node.js 20 or newer. It supports Windows, macOS, and Linux and discovers existing Codex authentication and usage data automatically when available.

See Compatibility for the canonical runtime, installation, platform, Codex-data, terminal, network, and agent-host requirements.

Usage

CommandDescription
codex-limitsOpens the interactive terminal dashboard.
codex-limits statusPrints a plain usage summary.
codex-limits status --threshold <condition>Checks a remaining-usage threshold for automation.
codex-limits couponsPrints available reset credits.
codex-limits coupons --jsonPrints machine-readable reset-credit data.
codex-limits reset <coupon-index>Reviews and redeems the selected reset credit.
codex-limits reset --soonestReviews and redeems the credit that expires first.
codex-limits --jsonPrints machine-readable usage and reset-credit data.
codex-limits doctorPrints safe environment and connectivity diagnostics.
codex-limits doctor --jsonPrints machine-readable diagnostics.
codex-limits completions <shell>Generates completions for five supported shells.
codex-limits agentsShows agent integration management commands.
codex-limits agents install <agent...>Installs one or more named agent integrations.
codex-limits agents install --allInstalls every supported agent integration.
codex-limits agents uninstall <agent...>Removes one or more recognized agent integrations.
codex-limits agents uninstall --allRemoves every recognized agent integration.
codex-limits initRuns the compatible integration installation flow.

Run codex-limits --help or a command-specific --help option for generated CLI help.

Reset credit redemption

codex-limits reset is the only remote-mutation command. It refreshes reset-credit data, displays a recap, and proceeds only in an interactive terminal after an explicit y or yes.

See Command safety boundaries for the canonical safety behavior.

Diagnostics and automation

Use the read-only diagnostic command when Codex data, authentication, connectivity, or an integration is unavailable:

codex-limits doctor

For scripts and automation, use the supported JSON commands and threshold checks documented in JSON output, including their stable contracts, schemas, sanitized examples, and exit-code behavior.

Shell completions

Generate a completion script for Bash, Zsh, Fish, PowerShell, or Nushell:

codex-limits completions <shell>

See Shell completions for installation steps and an explanation of how registry-driven generation works.

Agent integrations

Codex Limits can expose the same local, read-only summary inside supported coding agents. Integrations are optional, do not receive reset capabilities, and must be installed separately.

Supported integrations expose /codex-limits directly inside the agent:

AgentInstall commandGuide
OpenCodecodex-limits agents install opencodeOpenCode setup and usage
picodex-limits agents install pipi setup and usage
GitHub Copilot CLIcodex-limits agents install copilotCopilot setup and usage

Restart the agent after installation or removal so it reloads its configuration.

See the Agent integrations guide for shared lifecycle modes, safety boundaries, and integration architecture.

Architecture overview

Codex Limits keeps shared behavior centralized and exposes it through focused output surfaces:

AreaPathResponsibility
CLI entrysrc/package/cli.tsStarts codex-limits and delegates to the command registry.
Coresrc/package/coreDiscovery, normalization, authenticated reads, warnings, and redaction.
Commandssrc/package/commandsCLI parsing, help, safety categories, and command orchestration.
Terminal UIsrc/package/tuiRendering normalized data with Ink.
Agent integrationssrc/agentsThin host-specific installation and read-only presentation layers.
TeststestsBehavior, output, safety, and integration coverage.

Supported public interfaces and package compatibility boundaries are documented in Compatibility.

Documentation

Start with the documentation hub, or jump directly to:

  • Compatibility for runtime, platform, Codex-data, network, terminal, and agent-host requirements.
  • JSON output for stable machine-readable contracts, schemas, thresholds, and automation.
  • Troubleshooting for Codex data, authentication, network, terminal, reset-credit, and integration problems.
  • Agent integrations for supported agents, lifecycle behavior, safety boundaries, and adapter architecture.

Contributor, security, changelog, schema, example, and integration-specific documentation are also indexed from the documentation hub.

Local development

git clone https://github.com/simonesiega/codex-limits.git
cd codex-limits
bun install
bun run dev

Use Bun for repository development. See Contributing for the full development and validation workflow.

Security

Inspection commands are read-only. Agent lifecycle commands write only recognized host configuration, and reset-credit redemption is isolated behind explicit interactive confirmation.

See SECURITY.md for data-access safeguards, command boundaries, and private vulnerability reporting.

License

Codex Limits is licensed under the MIT License.

Contributors

Contributors