Paygent CLI

Scan your codebase and generate Paygent integration prompts for AI provider instrumentation.

Installation

$npm install -g paygent

Or run without installing:

$npx paygent scan

Usage

Scan current directory:

$paygent scan

Scan a specific directory:

$paygent scan ./backend
$paygent scan ../project
$paygent scan /absolute/path/to/project

What it does

  1. Recursively walks your codebase (Python, JavaScript, TypeScript, Go).
  2. Detects AI provider calls — all major LLM, voice, video, and framework integrations.
  3. Checks for existing instrumentation — never double-instruments already-tracked calls.
  4. Generates a detailed prompt with exact file paths + line numbers.
  5. Writes output to paygent_module/ inside the scanned directory.
  6. Displays an inline copy button so you can paste the prompt into your AI assistant instantly.

Example Output

Scanning ./backend...
Detecting integrations...
Analyzing files...
Found 4 AI call(s) to instrument
File: backend/llm/chat.py
OpenAI [LLM] ◆ Standalone fn=handle_message line=23 lang=python
21: def handle_message(user_id, text):
22: client = OpenAI()
> 23: response = client.chat.completions.create(
24: model="gpt-4o",
Generating Paygent module...
✓ Scan complete.
Detections found: 4
Output written to: ./backend/paygent_module

Then the full integration prompt is shown inline with a [ COPY PROMPT ] button.

Output Files

Results are written to paygent_module/ inside the scanned directory:

FileDescription
paygent_scan_results.jsonMachine-readable list of all detections
paygent_integration_prompt.mdFull integration guide with file + line references

Supported Languages

LanguageExtensions
Python.py
JavaScript.js, .mjs, .cjs
TypeScript.ts, .tsx, .mts
Go.go

Detected Providers

LLM

OpenAI · Anthropic · Google Gemini · Groq · Cohere · Mistral AI · Together AI · Replicate · Ollama · OpenRouter · DeepInfra · Google Vertex AI

Video

OpenAI Sora · Google Veo · RunwayML

Frameworks

LangChain · LangGraph · LlamaIndex

Voice (STT)

Deepgram · AssemblyAI

Voice (TTS)

ElevenLabs · Cartesia · Amazon Polly · PlayHT

Voice (STS)

LiveKit · Vapi · OpenAI Realtime · Google Gemini Live