One command to plan, build, and test bank payments with your agent.

By Liz Haynie Product Lead, Straddle Product Published

TL;DR
  • The Straddle Wizard is one command that takes Claude Code, Codex, or Cursor through setup, planning, integration, sandbox testing, and a production readiness review.
  • A coding agent writes a payment integration well only when it can read the right docs, reach the API, and stop for your approval at the moments that matter.
  • Let your agent write the code and keep the decisions yours, which is how the Wizard works: you approve the plan and each sandbox write.

Adding bank payments to an application has meant a lot of reading before much building. You learn how customers, bank accounts, and payments fit together and work out which API calls to make in what order. Then you wire up each piece by hand, test it, and find out what you missed.

Many developers now write that code with a coding agent. An agent is fast but knows only what it's given, and a payment flow is a poor place to guess. The Straddle Wizard gives the agent Straddle's knowledge and adds checkpoints where you approve the work. You start it with one command.

One command runs the whole integration

Run npx @straddlecom/wizard@latest in the repository that will call Straddle, and the Wizard starts with your project. It detects the language, framework, installed Straddle SDK, and any payment provider you already use, and you correct anything it got wrong.

Then you make the integration's choices, such as charges, payouts, or both, and how your application hears about payment updates. Mark a choice Not decided yet, and the agent works through it with you. Pick Claude Code, Codex, or Cursor. In Auto mode, the Wizard starts your signed-in agent in the terminal and runs the steps below in order. It pauses when it needs your decision or approval. In Manual mode, it gives you a message to paste into your own agent session.

The steps the Wizard runs
Step What it does
Setup Checks your project, whether an API key is set, the environment, the SDK, and the connections your agent needs, and reports what's ready and what needs work.
Plan Writes an integration plan, with the files to change, the notifications to handle, and the scenarios to test, for you to approve.
Migrate Runs only when the Wizard finds another payment provider, and adds Straddle beside it.
Integrate Implements the approved plan and reports what it built and what remains.
Test Verifies the integration against the plan in sandbox and records the results.
Go Live readiness Reviews the code, the sandbox evidence, and your operational setup, and lists the gaps to close before production.
Contents

The plugin gives your agent Straddle's knowledge

The Wizard installs the Straddle plugin your agent needs, or updates it. For Claude Code and Codex, it downloads a released plugin, verifies its checksum, and registers it. Cursor installs it from its team marketplace.

The plugin brings three things into your agent. Straddle skills give it a defined job for each stage, from setup to a production readiness review, along with the Straddle references that job needs. The straddle-docs connection lets it search Straddle's guides and API reference, and needs no API key. The straddle-api connection lets it look up API operations and send requests with your key. So your agent can work from Straddle's documentation and your own code, not from what it remembers.

Contents

You approve the plan and each sandbox write

With the Wizard, you approve the integration plan before the agent builds anything, and each sandbox write before the agent sends it. An agent that can call a payments API needs guardrails, and these sit where the decisions are. Your approval of the plan is recorded against that version, so if the plan changes, you review it again.

Before the agent sends a write to sandbox, it shows you a preview of the environment, the account it's acting for, the operation, and the payload, and waits for your approval. If you resume a run later, it asks again. The skills tell the agent to use sandbox for integration writes. Keep your agent's own tool approval prompts on, too, because the API connection accepts any operation your key permits.

Keep your API key out of the conversation. Put it in the environment that starts your agent, not in a prompt, a source file, or a report.

Contents

Every step leaves a report you can read

Each step writes what it did into your repository, so the work doesn't live only in a chat transcript. You get a setup report, the integration plan, a code diff with an integration report, test evidence, and a production readiness report. The test evidence marks which behavior was observed in Straddle's sandbox, so you can tell a checked scenario from an assumed one.

If a run stops for a missing setting or an open question, fix it and run npx @straddlecom/wizard@latest resume. The Wizard reads the plan and the reports, and picks up at the first unfinished step. The work already written stays where it is.

Contents

Already on another provider? The Wizard adds a migration step

When the Wizard finds another payment provider in your code, it runs Migrate after Plan. Migrate has guidance for Stripe, Plaid, Moov, Modern Treasury, Dwolla, and other payment and bank-linking providers. It asks which jobs you want Straddle to take on, then writes its own plan for you to approve.

Migrate adds Straddle beside your current integration rather than ripping it out. Your existing provider's path stays in place behind a switch you choose, and moving customer data or traffic gets a plan of its own.

Contents

What to do now

If you build with Claude Code, Codex, or Cursor, here's how to start:

  • Start in sandbox. Put a sandbox API key in the environment that starts your agent, and declare the sandbox environment, before the agent makes a request.
  • Run setup first. npx @straddlecom/wizard@latest setup checks your project and tools and tells you what to fix before the build begins.
  • Read the plan before you approve it. The agent builds and tests from it, and an edited plan needs your approval again.
  • Read each preview. Check the environment, account, operation, and payload before you approve a sandbox write.
  • Close the readiness gaps. Read the production readiness report and review the code changes before you merge.

The quickstart in the docs walks through a first integration step by step.

Contents

Straddle Wizard questions

What is the Straddle Wizard?

The Straddle Wizard is a command-line program, run with npx @straddlecom/wizard@latest, that takes a coding agent through a Straddle integration. It runs Setup, Plan, Integrate, Test, and a production readiness review, and adds a migration step when it finds another payment provider in your code.

Which coding agents does the Straddle Wizard work with?

Claude Code, Codex, and Cursor. In Auto mode, the Wizard starts your signed-in command-line agent in the terminal. In Manual mode, it gives you a message to paste into an agent session you run yourself.

Can the agent send API requests without my approval?

The Straddle skills preview each sandbox write, with its environment, acting account, operation, and payload, and ask for your approval before sending it. They also ask you to approve the integration plan before any code is built. Keep your agent's tool approval prompts on as well, because the API connection accepts any operation your key permits.

Can I use the Straddle Wizard if my app already uses Stripe or Plaid?

Yes. When the Wizard detects another payment provider, it adds a Migrate step that puts Straddle beside your existing integration. Your current provider's path stays in place behind a switch you choose, and moving customer data or traffic gets its own plan.

Contents

About the author

Liz Haynie, Product Lead

Liz leads product at Straddle, where she drives product strategy, design, and execution, with a focus on simple experiences that solve real problems for the people who use them.

Sources

Contents

Start in the sandbox today.

npx @straddlecom/wizard@latest
Start building
Back to the blog Straddle AI

Start building for free with one command.

npx @straddlecom/wizard@latest

The Straddle Wizard plans, builds, and tests your integration with your coding agent, so you can focus on your product, not payments.

  • Build and test in the sandbox for free
  • Bring your own bank tokens for free
An example Wizard run: Found a Next.js app in src/, Plan written straddle-integration-plan.md, Sandbox tests passed straddle-test-evidence.md, then waiting for your approval to go live.