Agent Accounts

Agent accounts are dedicated bank accounts for AI agents with programmable spending policies, multi-currency support, and x402 settlement integration.


Overview

Every OpenClaw agent gets its own bank account with:

  • Unique account ID - Dedicated identifier for the agent

  • Multi-currency balances - USD, USDC, SOL, ETH support

  • x402 address - Native protocol settlement address

  • Programmable policies - Cryptographically-enforced spending rules

  • Real-time operations - Sub-100ms balance queries


Creating an Account

Basic Account Creation

const account = await vault.accounts.create({
  agentId: 'openclaw_001',
  name: 'Production Agent Account',
  currency: 'USDC',
  initialDeposit: 10000,
  metadata: {
    environment: 'production',
    team: 'engineering'
  }
});

Response:

Multi-Currency Account


Querying Account Balance

Current Balance

Multi-Currency Balances


Account Operations

Funding an Account

Via Wire Transfer

Via x402 Transfer

Withdrawing Funds


Account Management

Updating Account Details

Freezing an Account

Closing an Account


Transaction History

List Transactions

Filter by Date Range

Export Transaction History


Account Analytics

Spending Summary

Velocity Metrics


Multi-Agent Accounts

Creating Sub-Accounts

Pooled Accounts


Best Practices

1. Account Naming

Use clear, descriptive names that indicate the agent's purpose:

2. Metadata Organization

Store relevant context in metadata for tracking:

3. Regular Balance Monitoring

Set up alerts for low balances:

4. Transaction Limits

Always configure spending policies before funding:


Security Considerations

API Key Management

  • Rotate API keys regularly (every 90 days)

  • Use separate keys for production/sandbox

  • Never commit keys to version control

Account Access Control

Audit Logging

All account operations are logged and immutable:


Next Steps


Dedicated bank accounts for every agent

Last updated