The first agent-native payment gateway

Payments that integrate themselves.

Paste one prompt into your coding agent. It reads your app, wires in Knox, runs a real test payment, and opens a pull request with the proof. Stripe-compatible underneath, so nothing your team knows goes to waste.

Paste it into Claude Code, Codex, Cursor or any coding agent.

The turn

Integration was a backlog item. Now it's a prompt.

The old way

  • PAY-101Read the processor's docsEstimate: 3 points
  • PAY-102Map fields to your order modelEstimate: 5 points
  • PAY-103Write and verify the webhook handlerEstimate: 5 points
  • PAY-104Test cards, declines and 3-D SecureEstimate: 3 points
  • PAY-105Keep it working when the API driftsEstimate: forever

Then someone owns it, forever.

With Knox

Set up Knox payments in this repository.

  1. You describe the outcome.
  2. Your agent builds it, on a branch.
  3. Knox proves it, then runs it.

The loop

Read. Ask. Build. Prove. Run. Learn.

Your coding agent takes the first four steps and hands you a pull request. Knox takes the last two, for every payment after you merge it.

  1. 01 Read

    It reads your app first.

    Your agent inventories the repository and traces the real payment path, then recognises where you're starting: a fresh app, an existing Stripe integration, or another processor.

  2. 02 Ask

    It asks before it holds a key.

    It requests test keys and shows you a code. You type that code in your dashboard to approve. It never asks you to paste a secret.

  3. 03 Build

    It builds on a branch.

    On a new branch it adds the PaymentIntent, Knox's hosted card fields and a signed webhook. Card numbers never touch your servers. They're tokenized and held in a secure vault.

  4. 04 Prove

    Ready means proven.

    Knox says ready only with evidence: a real test payment through the card fields, a delivered webhook, every check passed. Then the agent opens the pull request.

    Principle: proof before privilege.

  5. 05 Run

    Knox runs it, payment after payment.

    Knox routes each payment to Stripe, Fiserv, NMI, or Paysafe by your rules, and you switch processors without a rewrite.

    Set rules and watch traffic in Meta Knox, Knox's routing workspace.

    How routing works
    Try the routing playground
    Knox APIStripeFiserv×3NMIPaysafe
  6. 06 Learn

    It remembers every quirk.

    Every decline code Knox translates and every error its payment core returns is recorded once, counted, and kept across merchants.

The unit of integration is no longer the connector. It is a continuously verified agreement.

The principle Knox is built on

You stay in charge

Human control, without human plumbing.

  • You approve every key

    Your agent requests test keys; you approve by typing the code it shows you. Requests expire after 15 minutes.

  • You review every change

    The agent works on a new branch and hands you a reviewable pull request with an integration report.

  • Test mode until you say so

    Self-serve accounts run in test mode. Live payments are available by request.

  • Revoke keys one at a time

    Each agent key is named for its agent and repository, listed in your API keys, and revocable on its own.

Speaks Stripe

The Stripe API, without the Stripe lock-in.

Your agent doesn't learn a new API, and neither does your team. It points the official Stripe SDK at Knox and swaps in your Knox key. Knox serves 406 Stripe API operations at API version 2026-08-26.dahlia.

The switch changes where new API calls go. Customers, saved cards and subscriptions already in your Stripe account do not move with it.

server.js

import Stripe from "stripe";Removed: const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);Added: const stripe = new Stripe(process.env.KNOX_SECRET_KEY, { host: "api.knoxapi.com" });

For developers

Read the prompt your agent will follow.

There's no agent CLI to install. The setup prompt sends your agent to plain-text instructions on docs.knoxapi.com, which it follows over HTTPS.

Setup prompt

Set up Knox payments in this repository. Fetch and read https://docs.knoxapi.com/agent-setup/prompt.md, then follow its sandbox integration workflow. Detect whether this is a fresh app, an existing Stripe integration, or another processor; perform the corresponding integration or migration yourself. Keep credentials out of chat and source code, preserve existing payment flows, and verify the integration before reporting success.

Stripe API operations
406
Pinned Stripe API version
2026-08-26.dahlia
Test mode
Free

Card data

Keep card numbers off your servers

  • Card fields from knox.js

    Knox's browser SDK renders card fields in a frame Knox serves, so card numbers never reach your page or your server.

  • Tokenized and vaulted

    Card numbers never touch your servers. They're tokenized and held in a secure vault. How Knox handles card data

  • Guardrails for agents

    Before it hands you the pull request, the agent reviews its changes for credentials and raw card fields and runs your project's secret scanner.

Pricing

Free in test mode. Contact us for live.

See pricing

Your agent is ready when you are.

Paste the prompt into your coding agent, or start a test account and look around first. Live payments are available by request.

Talk to sales about going live