> ## 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

# agent-cards fund

> Add credits or connect a payment method, so your agents can buy for real.

Agentcard charges a fee on every live purchase your agents make through the Commerce SDK. Test purchases are free. Before production credentials can buy for real, your company needs a way to pay that fee: credits on its balance, or a payment method for pay as you go. `fund` opens the page in your dashboard where you set up either one.

```bash theme={null}
agent-cards fund --help
```

```text theme={null}
Usage: agent-cards fund [options]

Add credits to your company's balance or connect a payment method, so your
agents can buy for real: opens the page in your dashboard

Options:
  --company <company>  The company id or name, when your account belongs to
                       more than one
  -h, --help           display help for command
```

## Open your Balance page

```bash theme={null}
agent-cards fund
```

```text theme={null}
  Agentcard  fund

  Acme's agents can't buy for real until you add credits to its balance or connect a payment method.
  › Opening Acme's balance in your browser
    https://app.agentcard.sh/org/org_3f2a9c1e7b6d4a5e8f0c2d1b/agents/balance
```

The page is Commerce SDK → Balance in the dashboard. There you either:

* Add funds: pay up front, and each fee comes out of your balance.
* Pay as you go: connect a card, and each fee is charged to it as the purchase completes.

When your company can already pay, `fund` says where it stands and opens the page anyway, so you can top up or change how you pay:

```text theme={null}
  Acme's balance is $50.00. Live purchases are on.
```

When your account belongs to more than one company, the CLI asks which one, or you name it with `--company`:

```bash theme={null}
agent-cards fund --company Acme
```

Without a terminal, `fund` prints only the link and opens no browser, so a coding agent can hand it to you. Adding credits and connecting a card are your own steps: an agent should never do them for you.

`init` opens the same page as its last step, if your company can't buy for real yet.


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