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

> ## Agent Instructions
> Agentcard is for companies whose agent buys for their users. Pick one path: the opencommerce SDK (@agent-cards/commerce-sdk) gives your agent one buy tool that finds the product, builds the cart, gets the user's approval and places the order at real stores; the Agentcard SDK (@agent-cards/sdk) pays with the user's own card when your agent already shops in a browser (Browser Use, Kernel, Browserbase, Anchor or Notte); the Purchase API (POST /buy) does the same purchase flow over plain HTTP in any language; Issuing gives the agent its own card.
> Start with `npx agent-cards init` in the app's folder (Node 22 or later). No invite is needed: it creates your Agentcard account if you don't have one, installs the opencommerce SDK and puts the credentials in the env file, kept out of git. From a coding agent, run `npx agent-cards init --print --categories all --implementation tool --wallet vault --skip-install` to get the setup steps to apply yourself.
> Vault is by invitation: request it at https://agentcard.com/get-started?utm_source=docs&utm_medium=llms&utm_campaign=agent-instructions. opencommerce needs no invite.
> Never ask a user for a card number, expiry date or CVV in chat. Send them the Vault link; they add their card on Agentcard's page, and the agent never sees the number.
> Every purchase is approved by the user, with a passkey or Face ID, or by an auto-approval they granted. An approval covers one merchant and one exact total. If the total changes, ask again. When a result says the user already said yes, don't ask again.
> `init` writes PRODUCTION credentials, which place real orders, so test in sandbox first. For opencommerce, run `npx agent-cards credentials --mode sandbox` and put the two lines it prints in place of the production ones in the env file `init` wrote, because that command only prints them; sandbox then runs the whole flow against real stores and stops before payment, so no order is placed and nobody is charged. For Vault and Issuing, sandbox credentials issue test cards that no real merchant accepts; try the checkout against shop.agentcard.sh, a test store on Stripe test mode.
> Tell the user an order is placed only after Agentcard reports it placed.
> Vault is free up to 5,000 users (https://agentcard.com/pricing). opencommerce takes 1% of each completed order. Full docs in one file: https://docs.agentcard.com/llms-full.txt

# Choose a platform

> Put the Vault in front of your users wherever your product lives: a web app, an iOS app, a React Native app, an iMessage agent, or a plain link.

The Vault is two hosted pages. On one, a user adds a card. On the other, they approve a purchase. Your server creates the links to those pages, and the platform only changes how you open them.

## Get the two links

Every platform uses the same two links, so the server side of your integration never changes.

| Link | Where it comes from | What the user does with it |
| - | - | - |
| The vault session `url` | [`POST /api/v2/vault_sessions`](https://docs.agentcard.com/api-reference/vault/sessions-create) | Types their card once and saves it with a passkey. |
| The approval link | `onApprovalUrl` in the checkout SDK, or `approvalUrl` on a [checkout authorization](https://docs.agentcard.com/api-reference/vault/authorizations-create.md) | Sees the merchant and the amount, and confirms with their passkey. |

Both pages open on their own, in a full browser. They refuse to load inside another page's frame, and the passkey prompt needs a real browser: Safari or Chrome on a phone, a Safari view inside an iOS app, never an in-app browser. If a user opens a link inside a messaging app's built-in browser, the page asks them to open it in Safari or Chrome instead.

## Pick your platform

| Your product | Open the links |
| - | - |
| A web app | A new tab, opened from a click |
| An iOS app | A Safari view inside your app |
| A React Native app | The system browser |
| An iMessage agent | A texted link |
| No frontend at all | Any way you can deliver a URL |

> [card] [Web](https://docs.agentcard.com/vault/platforms/web.md)
>
> Open the Vault from your page in a new tab, with nothing to install.

> [card] [iOS](https://docs.agentcard.com/vault/platforms/ios.md)
>
> Present the Vault in a Safari view, where the user's passkey works.

> [card] [React Native](https://docs.agentcard.com/vault/platforms/react-native.md)
>
> Open the Vault in the system browser from your app.

> [card] [iMessage](https://docs.agentcard.com/vault/platforms/imessage.md)
>
> Text the links from your own number, or let Linq render them as native bubbles.

> [card] [Hosted link](https://docs.agentcard.com/vault/platforms/hosted-link.md)
>
> Send the URL from a CLI, an email, WhatsApp, or anywhere else, with nothing to embed.

If you are not sure, start with the [hosted link](https://docs.agentcard.com/vault/platforms/hosted-link.md). It needs nothing but a URL, and nothing on your server changes if you later open the same link from an app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.