Skip to main content

Commands

CommandDescription
enact initCreate wallet + agent session
enact pay <url>Make a paid HTTP request
enact balanceShow token balances
enact sessionShow session info + remaining limit
enact mcpStart MCP server for AI tools

Global flags

FlagDescription
-t, --agentMachine-readable JSON output
--helpShow help

Agent mode

All commands support -t for JSON output — useful when the CLI is being called by an agent:
enact -t balance
# {"address":"0x...","balances":[{"token":"AlphaUSD","balance":"95.50"}]}

enact -t session
# {"rootAddress":"0x...","accessKey":"0x...","budget":"100","remaining":"95.50"}

enact -t pay https://api.example.com/resource
# {"status":200,"receipt":true,"body":{...}}

Credentials

Credentials are loaded in this order:
  1. .env file in the current working directory
  2. Environment variables (AGENT_PRIVATE_KEY, AGENT_ROOT_ADDRESS, etc.)
Run enact init to create credentials for the first time.