Skip to main content
The agentcash CLI is the primary interface for AgentCash. Use it to discover premium APIs, make paid requests, manage your wallet, add skills, and install MCP mode for AI clients.

Install

npm i -g agentcash
Or run commands directly with npx:
npx agentcash <command> [options]

Commands

CommandDescription
onboard [code]Set up wallet, configure MCP, and optionally redeem an invite code
discover <url>List available endpoints on an origin with descriptions and auth modes
check <url>Get input/output schema and auth mode for an endpoint. Run this before fetch to avoid 400 errors
fetch <url>HTTP fetch with automatic SIWX auth and payment
fetch-auth <url>Deprecated alias for fetch
try <url>Fetch a new origin’s resources and return a prompt for calling the first endpoint
register <url>Register an origin with AgentCash (discover + index endpoints)
add <url>Add a skill to the AgentCash MCP server
balanceShow total wallet balance
accountsShow per-network balances, addresses, and deposit links
redeem <code>Redeem an invite code
fundOpen the funding page in your browser
installInstall MCP mode for your AI client
serverStart the MCP server (default when no command given)
report-errorReport a critical bug (emergency only)

Global options

FlagDescription
--verbose / -vEnable debug output to stderr
--quiet / -qSuppress stderr output
--format <type>Output format: json (default for pipes) or pretty (default for TTY)
--invite <code>Invite code to redeem for starter credits
-y / --yesYes to all prompts
--devUse development endpoints (localhost)
--sessionId <id>Session ID for request tracing (auto-generated if not provided)
--provider <name>Custom provider identifier
--versionShow version number