> ## Documentation Index
> Fetch the complete documentation index at: https://paymanai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Payman Connect

> Your agent does the work. Payman handles the money.

Your agent does the work. When that work reaches money, Payman executes it against your customer's own accounts: with their consent, under their limits, and with their approval on anything that moves money.

```ts theme={null}
const result = await payman.forUser(userId).run("Pay the Acme invoice for $120");
// result.kind: "ok" | "needs_connection" | "approval" | "error"
```

Payman Connect is the execution layer, not the brain. Your agent decides that an invoice should be paid or a balance checked, calls Payman for that one step, and reads the answer back in the same turn.

Your customer connects their Payman account once, on Payman's own pages. It holds whichever providers they use: a bank, a corporate card, an accounts-payable tool. You hold a pointer to their consent, never a bank credential, and you never build a bank integration.

The SDK carries the rest. One secret, `PAYMAN_APP_KEY`, and one call per action; the consent handshake, the encrypted connection store, the approval flow, and the replay all ship with it.

## Start here

<CardGroup cols={2}>
  <Card title="Quickstart" icon="bolt" href="/quickstart">
    A working integration in one page.
  </Card>

  <Card title="Add it as a tool" icon="wrench" href="/build/tool-integration">
    Your agent already runs a model. This is the one tool it needs.
  </Card>

  <Card title="How it works" icon="arrows-rotate" href="/build/how-it-works">
    The loop end to end.
  </Card>

  <Card title="Next.js" icon="react" href="/nextjs">
    The three route files the App Router needs.
  </Card>
</CardGroup>
