Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Stripe CLI

$ stripe Official High Risk
Stripe · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Stripe CLI lets developers and coding agents trigger test webhook events, tail API logs, and call Stripe REST resources from the terminal. Test mode is separated from --live mode, helping protect real financial data during agent-driven development.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install stripe/stripe-cli/stripe
CLI vs MCP Decision Hybrid (CLI + MCP)

Stripe CLI excels at local webhook forwarding (stripe listen) and test fixture triggers (stripe trigger); Stripe's official MCP is convenient for read-only billing lookups.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Outputs clean JSON for API resource commands and supports non-interactive flags, though listen and logs tail are long-lived streaming commands.

  • API resource commands output JSON directly to stdout
  • stripe listen streams indefinitely unless bounded by timeout
Trust & Safety 22 / 25

Defaults to Stripe Test Mode and requires an explicit --live flag for production, providing a strong built-in safety boundary for financial APIs.

  • Test mode default with explicit --live opt-in
  • Supports restricted API keys via --api-key
Setup & Portability 14 / 15

Single Go binary with Homebrew, Docker, Scoop, and apt/yum packages.

  • Official Homebrew tap and cross-platform releases
Utility & Efficiency 14 / 15

Unmatched for local webhook testing and fixture simulation during payment integration.

  • stripe listen and stripe trigger solve local webhook testing
Maintenance & Lineage 10 / 10

Official Stripe tool (stripe/stripe-cli) actively maintained under Apache-2.0.

  • Official Stripe GitHub repository
Docs & Verifiability 9 / 10

Thorough Stripe Docs covering CLI commands, webhooks, and fixtures.

  • Official docs at docs.stripe.com/stripe-cli

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores restricted session keys in ~/.config/stripe/config.toml or accepts --api-key / STRIPE_API_KEY.

Side Effects
Read-Only Remote Write Billing Impact
Cost & Quotas

CLI is free (Apache-2.0); Stripe sandbox/test mode has no transaction fees.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Stripe CLI Agent Rules
- Stay strictly in Test Mode; NEVER pass `--live` or live `sk_live_` keys in autonomous runs.
- Prefer `stripe trigger` and `stripe listen` for integration verification.
- Require explicit human approval before creating refunds, payouts, or live customers.

Agent-Ready Command Recipes

Safe Read-Only Queries

List recent test-mode payment intents
stripe payment_intents list --limit 5

Defaults to test mode and returns structured JSON resource objects.

Trigger a sandbox webhook event
stripe trigger payment_intent.succeeded

Safely simulates a webhook payload in Stripe test mode.

Controlled Writes & Previews

Forward webhooks to local dev server
stripe listen --forward-to localhost:4242/webhook

Streams test webhook events to a local endpoint without modifying live billing.

Strengths for Agents

  • + Safe-by-default Test Mode separation prevents accidental live billing mutations unless --live is passed.
  • + API subcommands return clean JSON matching Stripe's REST schemas.
  • + Local webhook forwarding (stripe listen) and stripe trigger are essential for coding agents building payment flows.

Caveats & Pitfalls

  • ! Streaming commands like stripe listen will block forever if an agent runs them synchronously without backgrounding.
  • ! Lacks a generic --dry-run flag on write API calls.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI