Skip to main content
This guide runs a full lifecycle on Base Sepolia: register an agent, finalize its profile and metadata, then deploy and operate its token — all through x402. It uses client-signed mode so you keep self-custody of signing — passing --signer-address (and --agent-wallet) selects it. For the hands-off path where Brickken’s relayer signs and broadcasts, drop those flags and add --execution-mode brickken-relayed — see the Quickstart.

Prerequisites

  • The CLI is installed and a private key is set (BRICKKEN_PRIVATE_KEY).
  • The wallet holds enough Base Sepolia Circle USDC (0x036CbD53842c5426634e7929541eC2318f3dCF7e) to cover x402 send fees (0.01 USDC per send in sandbox) and a little native ETH for gas (client-signed mode).
  • jq is available for reading --json output.
Each step below depends on the previous transaction being mined. Wait for confirmation before preparing the next dependent transaction — preparing them back-to-back can cause nonce conflicts.

Part 1 — Register the agent

1. Register

2. Finalize the profile URI

After the registration transaction is mined:

3. Set structured metadata

After the URI transaction is mined:
The canonical identity flow is therefore: register → wait → set-uri → wait → set-metadata. See the agent command reference for every flag.

Part 2 — Token lifecycle

4. Deploy the agent token

Do not continue unless TOKEN_ADDRESS is populated. The CLI only adds tokenAddress after the deployment receipt is read from the RPC.

5. Mint

6. Approve an allowance

7. Transfer

Track a transaction

Check the status of any broadcast transaction by hash:

See also

agent commands

Full reference for identity and reputation operations.

Token economics

Every token command and flag.

Raw tx flow

Prepare, sign, send, and status for any method.

Agentic Methods (x402)

Backend field-level reference.