fieldtrip
tools / payments / stripe / claude code

Stripe in Claude Code.

Claude Code can work in Stripe with practice money. Real money stays with you. This is for Claude Code on your own Mac or Linux computer.

passed Nov 16 · Stripe CLI

fieldtrip add stripe

New to fieldtrip? Install it first: curl -fsSL fieldtrip.sh/install | sh

Claude Code can

  • Look up payments, customers and refunds.
  • Make practice payments to test your code.
  • Watch payment events while you build.

Asks you first

  • Refund, charge or pay out.
  • Delete anything.

Can't do

  • Touch real money.

Try asking Claude Code

Paste one into Claude Code. Underneath: what it runs.

How it’s set up for Claude Code

the keyIn Claude Code's own settings, ~/.claude/settings.json. Only the commands Claude Code runs can see it. Your Terminal can't.
the noteSaved as a Claude Code skill, ~/.claude/skills/stripe. Claude Code reads it when you ask about Stripe. It tells Claude Code to say the amount and the customer, and wait for your yes, before anything that moves money, because Stripe’s own tool only asks before deletes.
after setupQuit Claude Code fully and reopen it. It reads its settings when it starts.
two checksUnless you've turned it off, Claude Code also asks before it runs a command. fieldtrip's note adds a second check, on top of that one.
check itAsk Claude Code on your computer to run fieldtrip doctor. It should say “Running in Claude Code” and show a ✓ beside Stripe.

Do this once.

  1. Make a restricted key in Stripe, in test mode. fieldtrip will give you the link and tell you which boxes to tick, and why.
  2. Paste your key when fieldtrip asks you to.

Your key goes into your Terminal when fieldtrip asks. It never goes through Claude Code’s chat.

Checked every night

Yes. Stripe 1.55.11 passed all five checks, Mon, Nov 16 · 11:09 AM CST.

Each square is one night.

Claude Code on the web

When you use Claude Code at claude.ai/code, it runs on a computer in the cloud, not yours. It can use Stripe’s tool there too, but fieldtrip can’t set it up for you yet: you’d store your key as a secret in the cloud environment’s settings and install the tool yourself. We’ve done it by hand with Linear; Stripe hasn’t been tested there yet.

← All of Stripe: every AI, every version · Stripe in Codex → · Stripe in Cursor → · What’s a CLI?