Use Cases And Coverage

简体中文

Use this page when you need to decide whether codex-quota-monitor covers a real workflow, or when you are planning product, documentation, and test coverage for a CLIProxyAPI-backed Codex OAuth pool.

The project is intentionally focused on Codex OAuth pool operations. It is not a generic multi-provider desktop usage tracker, a SaaS analytics collector, or a CLIProxyAPI installer.

Coverage Matrix

User Job to do Needed data Product surface Acceptance check
Pool operator Know whether the Codex pool can take more work right now. CPA auth state, CPA usage, optional direct quota windows. Pool, Resets, Stats, Alerts, /api/v1/status. The dashboard shows known 5h and weekly capacity, unhealthy accounts, cooldowns, reset times, and live stats without hiding Unknown data.
Agent wrapper author Pick an account or avoid sending work to a bad account. Account health, quota state, cooldowns, reclaim hints. /api/v1/recommendations, /api/v1/alerts, Prometheus /metrics. routingScore ranks accounts and explains the routing choice without exposing auth secrets.
Self-hosted deployer Install the monitor without widening network exposure by accident. Management URL, management key file, health URL, optional auth directory. Quick start, install guide, NixOS module, Docker image, init, doctor. A local smoke test passes on 127.0.0.1; LAN exposure requires an explicit reverse proxy/firewall choice.
Incident responder Find out why quota, usage, or health is missing or wrong. Diagnostics for CPA, gateway health, direct quota sampling, SQLite history, benchmark import. Diagnostics, Alerts, troubleshooting guide, /api/v1/diagnostics. The failing source is named clearly, support data can be shared without auth secret contents, and Unknown is not treated as n/a.
Capacity planner Estimate burn rate, reset timing, pool exhaustion risk, and usage shape. SQLite history, recent usage details, quota windows, optional benchmark summary. Trends, Stats, Audit, Resets, benchmark guide, native history backup. Recent trends show burn rate and ETA when enough history exists, Stats separates live/cumulative/history data, and benchmark-derived assumptions are visible instead of implicit.
Read-only viewer Check current pool state from a browser on desktop, phone, or small screen. Browser snapshot from the monitor service. Dashboard tabs and responsive layout. The page renders without requiring write access, credential access, or operator shell access.
Agent-assisted deployer Hand the integration task to a coding agent with bounded authority. Target host, flake input, service options, validation commands. Deploy-with-agent guide, NixOS module docs, agent discovery page. The agent can wire the module and run static checks, while live system activation remains an explicit operator step.

Core Scenarios

First install

Success means /healthz, /api/v1/status, /api/v1/diagnostics, /api/v1/recommendations, /api/v1/alerts, and /metrics respond locally, and the dashboard opens in a browser.

Daily pool check

Success means an operator can tell whether the pool is usable now, which quota window blocks recovery, and which accounts need attention.

Agent routing

Success means a wrapper can make a routing decision without scraping HTML or reading auth files.

Unknown quota investigation

Success means support output can explain the missing source without leaking credential material.

Success means the dashboard makes capacity assumptions visible and avoids silently mixing reset-crossing or incomplete benchmark samples into averages.

Explicit Non-goals

How To Use This Matrix