Reference
CLI Reference
The ClawdGo CLI for infrastructure-as-code workflows, scripting, and local development.
Installation
bash
npm install -g @clawdgo/cli
# Verify installation
clawdgo --version
Authentication
bash
# Set your operator API key
export CLAWDGO_API_KEY="cg_live_..."
# Or configure via login
clawdgo auth login
accounts
clawdgo accounts create
bash
clawdgo accounts create --name "research-agent-prod"
# Output:
# account_id: acct_01j8k4x9p2qrst7yz
# solana_address: 9xTz4KqR8mYvPn3SdFgHj6WbCeAuLo1XkQi5NtZpMwV
# usdc_token_account: 7mZp2VbQnXeYjLo9KrTzFdCgWqA3ShNkRi4UwPtMxHs
# status: active
clawdgo accounts list
bash
clawdgo accounts list
clawdgo accounts list --status paused
clawdgo accounts list --json # machine-readable JSON output
clawdgo accounts balance
bash
clawdgo accounts balance --account acct_01j8k4x9p2qrst7yz
# Output:
# Balance: 342.500000 USDC
policy
clawdgo policy set
bash
clawdgo policy set \
--account acct_01j8k4x9p2qrst7yz \
--max-single 500 \
--max-daily 2000 \
--require-memo
clawdgo policy pause / resume
bash
# Immediately halt all transfers from account
clawdgo policy pause --account acct_01j8k4x9p2qrst7yz
# Resume after investigation
clawdgo policy resume --account acct_01j8k4x9p2qrst7yz
clawdgo policy get
bash
clawdgo policy get --account acct_01j8k4x9p2qrst7yz
transfers
clawdgo transfers list
bash
clawdgo transfers list --account acct_01j8k4x9p2qrst7yz
clawdgo transfers list --account acct_01j8k4x9p2qrst7yz --last 24h
clawdgo transfers list --account acct_01j8k4x9p2qrst7yz --status rejected
clawdgo transfers send
bash
clawdgo transfers send \
--from acct_01j8k4x9p2qrst7yz \
--to 9xTz4KqR8mYvPn3SdFgHj6WbCeAuLo1XkQi5NtZpMwV \
--amount 50 \
--memo "Invoice #1042" \
--idempotency-key inv-1042
Global flags
| Flag | Description |
|---|---|
--json | Output raw JSON. Useful for piping to jq. |
--api-key <key> | Override the API key for this invocation. |
--no-color | Disable colored output. |