Skip to content

Introduction

Cyan is the payment layer for AI agents. Add a checkout to your agent with one API call. Customers pay in the chat, and the money goes straight to your Stripe account.

Try it out.

Pay in the demo with a test card:

Test card details to pay with in the demo
Card that passes4242 4242 4242 4242
Card that fails4000 0000 0000 0002
Expiration date12 / 34
Security code123
ZIP code12345

In about five minutes you’ll create a payment link, pay it with a test card, and watch it turn paid. All you need is a Stripe account.

  1. Connect your Stripe account

    In the Cyan app, open Settings → Connectors and select Connect with Stripe. Choose the Stripe account your payments should land in.

  2. Get your API key

    Open API keys and select Create API key. Copy the key and keep it somewhere safe: you’ll only see it once.

    export CYAN_API_KEY="cyan_test_..."
  3. Create a payment link

    Ask for $49 for a logo design. Amounts are in cents, and the Idempotency-Key makes a retry return the same link:

    const response = await fetch("https://api.cyan.cash/v1/payment-links", {
    method: "POST",
    headers: {
    Authorization: `Bearer ${process.env.CYAN_API_KEY}`,
    "Idempotency-Key": "first-payment",
    "Content-Type": "application/json",
    },
    body: JSON.stringify({
    amount: 4900,
    description: "Logo design",
    }),
    });
    const link = await response.json();

    You get back the link:

    {
    "id": "pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
    "amount": 4900,
    "currency": "USD",
    "description": "Logo design",
    "customer_name": null,
    "status": "pending",
    "url": "https://pay.cyan.cash/pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
    "created_at": "2026-12-05T17:40:12.000Z"
    }

    url is the checkout. Send it to your customer, or show it in your chat with the widget.

  4. Pay it

    Open url in your browser and pay with the test card 4242 4242 4242 4242, any future date and any CVC.

  5. See it paid

    Read the link back. Its status is now paid.

    const response = await fetch(`https://api.cyan.cash/v1/payment-links/${link.id}`, {
    headers: { Authorization: `Bearer ${process.env.CYAN_API_KEY}` },
    });
    const current = await response.json();
    console.log(current.status); // "paid"

    The payment is also in the app under Transactions, and in your Stripe Dashboard.

Paste this into Claude Code, Cursor or any coding agent:

Read https://docs.cyan.cash/llms-full.txt, then add a Cyan checkout to our chat.

Or connect the docs over MCP. See Build with AI for more.