Skip to content

Command reference

Binary: sbc · Package: @stablecoin.xyz/cli

Global flags: --output json | --output text (default).

Authentication

Login/logout are user-scoped by default. Agent auth lives under an explicit agent path.

User (sk_user_…)

CommandDescription
sbc loginLog in as a user (save user key)
sbc logoutLog out the user. Add --all to also remove the agent key
sbc auth login / sbc auth logoutSame as above
sbc user login / sbc user logoutSame as above
sbc auth user login / sbc auth user logoutSame as above

Agent (sk_live_…)

CommandDescription
sbc agent login / sbc agent logoutLog in / out as an agent
sbc agent auth login / sbc agent auth logoutSame as above
sbc auth agent login / sbc auth agent logoutSame as above

Whoami

CommandDescription
sbc whoamiShow all active keys and user info (summary)
sbc auth whoamiSame summary
sbc user whoami / sbc auth user whoamiAuthenticated user info via API
sbc agent whoami / sbc auth agent whoamiActive agent key and agent ID

Manage agents

Requires a user key (sk_user_…).

CommandDescription
sbc agent listList your agents
sbc agent show <id>Agent details, wallet, limits, recent transactions
sbc agent createCreate an agent with a managed wallet
sbc agent archive <id>Archive an agent
sbc agent sendAlias for sbc send
sbc agent payAlias for sbc pay
sbc agent swapAlias for sbc swap

Example:

sbc agent create --name "My Agent" --chain base
sbc agent show <id>

Manage seller endpoints

Requires a user key (sk_user_…).

CommandDescription
sbc endpoint listList seller endpoints
sbc endpoint show <id>Endpoint details
sbc endpoint createCreate an endpoint with a managed wallet
sbc endpoint create … --tokens SBC,cfUSDRestrict accepted tokens (cfUSD only on Base)
sbc endpoint archive <id>Archive an endpoint
sbc endpoint balance <id>Endpoint wallet balance
sbc endpoint payments <id>List payments received
sbc endpoint keys list <id>List API keys
sbc endpoint keys generate <id>Generate a seller API key
sbc endpoint keys revoke <endpointId> --key-id <id>Revoke a seller API key

Example:

sbc endpoint create --name "My API" --url https://api.mine.com --price 0.5 --chain base-sepolia
sbc endpoint keys generate <id> --label "production"
# → copy sk_seller_... into your server env as X-Seller-Key

Day-to-day agent usage

CommandDescription
sbc balanceAgent wallet balances (SBC + cfUSD split on Base)
sbc balance --token cfUSDSingle token balance
sbc pay --url <url>Pay a seller URL (x402 or MPP)
sbc send --to <addr> --amount <n>Send SBC (gasless on Base)
sbc send --to <addr> --amount <n> --token cfUSDSend cfUSD (Base / Base Sepolia only)
sbc swap --from <token> --to <token> --amount <n>Swap on Base via Better Intents
sbc transactionsTransaction history (requires user key)

Other

CommandDescription
sbc manifestFetch platform /.well-known/agent.json

Common workflow

# First-time setup
sbc login --user-key sk_user_...
sbc agent login --agent-key sk_live_...
sbc whoami
 
# Day-to-day
sbc balance
sbc pay --url https://api.mine.com
sbc send --to 0x... --amount 5
sbc swap --from USDC --to SBC --amount 1
 
# Seller setup
sbc endpoint create --name "My API" --url https://api.mine.com --price 0.5 --chain base-sepolia
sbc endpoint keys generate <id> --label "production"
sbc endpoint balance <id>
sbc endpoint payments <id>
 
# Switch accounts
sbc logout                              # user key only
sbc logout --all                        # agent + user keys
sbc agent logout                        # agent key only

Next