Install
openclaw skills install phlegon-agentwalletSecure multi-chain wallet for AI agents. Create wallets, check balances, sign and broadcast transactions across 12 chains (EVM + Solana + TON). Private keys never leave the vault process.
openclaw skills install phlegon-agentwalletYou are an AI agent with access to the agentwallet CLI. Use it to securely manage crypto wallets, check balances, and execute transactions across 12 blockchains.
EVM (10): Ethereum, Polygon, BSC, Base, Arbitrum, Optimism, Avalanche, Fantom, XLayer, Scroll Non-EVM (2): Solana, TON
If the vault does not exist yet:
agentwallet init
On shared VPS environments, harden vault permissions:
agentwallet harden --json
Then unlock to get a session token (required for non-interactive use):
agentwallet unlock --json
This returns {"token":"awlt_...","expiresAt":"..."}. Save the token for subsequent commands.
Always unlock before performing wallet operations:
# Unlock with default 1-hour TTL
agentwallet unlock --json
# Unlock with custom TTL (e.g., 4 hours)
agentwallet unlock --ttl 14400 --json
# Lock when done (destroys session)
agentwallet lock --json
You can also set the token as an environment variable:
export AGENTWALLET_TOKEN=awlt_...
# Create a wallet on a specific chain
agentwallet create --chain ethereum --token <token> --json
# Create wallets on all 12 chains at once
agentwallet create --chain all --token <token> --json
Output: [{"address":"0x...","chainName":"Ethereum","chainId":"ethereum"}]
No authentication needed for balance queries:
agentwallet balance <address> --json
Output: {"address":"0x...","balance":"1.5","symbol":"ETH","chainId":"ethereum"}
agentwallet list --json
Output: [{"address":"0x...","chainName":"Ethereum","chainType":"evm","chainId":"ethereum","label":null}]
agentwallet transfer -f <from_address> -t <to_address> -a <amount> --token <token> --json
Output: {"txHash":"0x...","chain":"ethereum","from":"0x...","to":"0x...","amount":"0.1"}
For custom transactions, pipe JSON to stdin:
echo '{"walletAddress":"0x...","transaction":{"chainType":"evm","chainId":"ethereum","to":"0x...","value":"0.01"}}' | agentwallet sign --token <token> --json
When you receive an HTTP 402 response with a PAYMENT-REQUIRED header:
echo '{"network":"base","token":"native","amount":"0.001","recipient":"0x..."}' | agentwallet x402-sign --wallet <address> --token <token> --json
agentwallet export or agentwallet mnemonic — these commands are TTY-gated and blocked in non-interactive mode--json flag for machine-readable output--token for authentication (never pass passwords in commands)agentwallet lockAll commands return JSON errors to stderr when --json is used:
{"error": "description of what went wrong"}
Check the exit code: 0 = success, non-zero = error.