Scan
paygent scan walks a codebase, finds every AI provider call that is not yet metered, and writes an integration plan for them.
paygent scan
The scan is read-only. Nothing is sent anywhere, no credentials are needed, and no source file is modified.
What It Detects
121 detectors across Python, JavaScript, TypeScript, and Go.
Files already reporting usage are skipped, as are node_modules, .venv, dist, and build.
Getting the Plan
Clipboard
Pipe
File
The plan proposes agents, asks the questions that cannot be inferred from source code, then gives the exact commands to create everything and instrument the calls.
Multi-Tenant Apps
On a terminal the scan asks whether your customer ID is resolved per request. Skip the question with the flag:
The plan then asks which variable holds the customer ID and threads it through every usage call.
In CI
Fail a build that introduces an unmetered call:
