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

# Nanopayment operations

> Tasks your agent can perform using Circle CLI to deposit USDC, pay for services, and withdraw funds.

Nanopayment operations are tasks your agent can perform using
[Circle CLI](/agent-stack/circle-cli). Full command syntax is in the
[CLI command reference](/agent-stack/circle-cli/command-reference).

The following table describes common nanopayment operations and the CLI commands
to perform them.

| Operation                                                                       | What it does                                                                                         | Command                   |
| :------------------------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------- | :------------------------ |
| [Deposit for nanopayments](/agent-stack/agent-nanopayments/operations/deposit)  | Add USDC to your Gateway balance to fund nanopayments.                                               | `circle gateway deposit`  |
| [Pay for a service](/agent-stack/agent-nanopayments/operations/pay-for-service) | Discover and pay for [x402](/gateway/nanopayments/concepts/x402)-compatible API services using USDC. | `circle services pay`     |
| [Withdraw your balance](/agent-stack/agent-nanopayments/operations/withdraw)    | Move remaining USDC from your Gateway balance back to your agent wallet on the same blockchain.      | `circle gateway withdraw` |
