agent-stripe
Stripe incident triage CLI for AI agents
- Language
- Go
- Version
- 0.4.0
- License
- MIT
- Category
- CLI Tool
A Stripe incident triage CLI designed for read-heavy investigation workflows where AI agents need compact structured output, actionable error hints, and no direct access to Stripe secrets. It supports resource exploration, scenario investigations, Connect context, and redacted Stripe-shaped output.
Features
Keychain-first credentials — API keys are stored securely and never printed back
Multi-profile support — aliases for sandbox, live, organization, and holding-account workflows
Stripe context aware — supports Stripe-Context for organization keys and related-account requests
LLM-shaped output — lists default to NDJSON, single resources to JSON, and errors include fixable_by plus hints
Sensitive field redaction — Stripe responses are redacted by default with explicit expose controls
Read-first triage — balance, events, PaymentIntents, charges, disputes, accounts, subscriptions, invoices, and GET-only raw API
Scenario investigations — invoice evidence, checkout completion, customer card last4, collection risk, refunds, disputes, fraud, ledger, and Connect failures
Bounded Stripe retries — transient 429 responses retry with exponential backoff and jitter
Install
Homebrew
$ brew install shhac/tap/agent-stripe AI Agent Skill
$ npx skills add shhac/agent-stripe GitHub Release (macOS)
$ curl -L https://github.com/shhac/agent-stripe/releases/latest/download/agent-stripe-darwin-arm64.tar.gz | tar xz Go Install
$ go install github.com/shhac/agent-stripe/cmd/agent-stripe@latest Build from Source
$ git clone https://github.com/shhac/agent-stripe.git && cd agent-stripe && make build Getting Started
agent-stripe needs a Stripe API key before it can investigate payments or account state. Store keys in named profiles so agents can reference them without seeing secrets.
01 · Add a Stripe profile
$ agent-stripe auth add sandbox --form --context acct_... With --form, a native OS dialog asks for the key and the CLI returns only a redacted setup receipt. Use --context for organization or connected-account workflows.
02 · Check credentials
$ agent-stripe auth check sandbox 03 · Start with recent events
$ agent-stripe events list --type charge.failed --limit 20 Lists stream compact NDJSON by default for token-efficient triage.
Usage
$ agent-stripe balance get $ agent-stripe events list --type charge.failed --limit 20 $ agent-stripe investigate resolve MOCK-0001 $ agent-stripe payment-intents get pi_... --expand latest_charge $ agent-stripe investigate invoice-payment in_... $ agent-stripe investigate collection-risk --days 30 $ agent-stripe investigate outgoing-payment tr_...