Codex and CPA aware
Combines CPA management state, CPA usage statistics, optional direct Codex quota windows, and optional SQLite history for Trends, Audit, and Stats curves.
CLIProxyAPI · Codex OAuth Pool · PyPI · Docker · NixOS
A self-hosted monitor for operators running multiple Codex auth files behind CLIProxyAPI. Track 5h and weekly pool capacity, CPA usage, reset windows, account health, Stats time-series curves, and machine-readable agent recommendations.
Combines CPA management state, CPA usage statistics, optional direct Codex quota windows, and optional SQLite history for Trends, Audit, and Stats curves.
Exposes /api/v1/recommendations, /api/v1/diagnostics, /api/v1/alerts, /api/v1/stats/series, OpenAPI, and Prometheus /metrics.
Runs from PyPI, Docker/GHCR, Nix flake package/app, or NixOS service module. Host exposure stays loopback-first, with init, doctor, and a public security self-audit for sensitive CPA state.
Run against a local CLIProxyAPI management gateway, management key, and optional auth-file directory.
nix run github:xsyxnx/codex-quota-monitor/v0.2.0#codex-quota-monitor -- \
--management-base-url http://127.0.0.1:8317 \
--management-key-file /path/to/management-key \
--gateway-health-url http://127.0.0.1:8317/healthz \
--auth-dir /path/to/auth-files
codex-quota-monitor init --mode user
codex-quota-monitor doctor