Overview
httpcat-cli provides 18+ commands for token operations, trading, and portfolio management. All commands support--json for automation and --help for detailed information.
Global Flags
Available with any command:| Flag | Description |
|---|---|
-j, --json | Output JSON for scripting/automation |
-q, --quiet | Minimal output (exit codes only) |
-v, --verbose | Verbose error messages |
--no-art | Disable ASCII art |
-k, --private-key <key> | Use specific private key |
-a, --account <index> | Use specific account index |
Token Operations
create
Create a new token on the bonding curve.--photo <url|path>- Token photo (URL, file path, or base64)--banner <url>- Banner image URL--website <url>- Website URL
Token addresses end in
402 for easy identification. Save the address for trading!buy
Buy tokens from the bonding curve.- Contract address:
0x1234...402(recommended, unique) - Token ID (UUID):
abc123-4567-... - Token name:
"My Token"(use quotes if spaces) - Token symbol:
MTK
- Testnet:
0.05,0.10,0.20USDC - Mainnet:
50,100,200USDC - Percentage:
10%,50%,100%(of USDC balance)
-r, --repeat <count>- Execute multiple buys-d, --delay <ms>- Delay between repeat operations
sell
Sell tokens back to the bonding curve.- Number of tokens:
1000 - Percentage:
50%,25%,100% - All tokens:
all
info
Get detailed information about a token.- Token address and details (name, symbol, creator)
- Current price and market cap
- Graduation progress
- Your position (tokens owned, P&L, ROI)
- Bonding curve state
list
List all tokens with pagination and sorting.-s, --sort <field>- Sort by:mcap,created,name-l, --limit <n>- Items per page (default: 20, max: 100)-p, --page <n>- Page number
Contract addresses are displayed prominently for easy copying.
swap
Swap any ERC20 token via DEX aggregation (CLI only, not available in interactive shell).-s, --slippage <bps>- Slippage tolerance in basis points (default: 50 = 0.5%)
claim
View or claim LP fees for graduated tokens.-e, --execute- Execute claim (default: view only)-A, --address <address>- Caller address
Portfolio
positions
Get all your positions with comprehensive information.-a, --active- Show only active positions-g, --graduated- Show only graduated positions
- Position details for each token
- Profit/Loss (P&L)
- Return on Investment (ROI)
- Transaction history
- Portfolio summary
transactions
Get transaction history with filtering.-u, --user <address>- Filter by user (defaults to active account)-t, --token <tokenId>- Filter by token-T, --type <type>- Filter by type:buy,sell,airdrop-l, --limit <n>- Results limit (default: 50, max: 100)-o, --offset <n>- Pagination offset
balance
Check wallet balances (ETH, USDC, CAT).- ETH balance (for gas fees)
- USDC balance (for trading)
- CAT balance (platform token, if graduated)
Account Management
account
Display and manage accounts.account list- List all accountsaccount switch <index>- Switch active accountaccount add- Add new seed-derived account
Account 0 is your imported private key. Accounts 1+ are derived from your seed phrase (HD wallet).
env
Manage environments (local, sepolia, base).env list- List all environmentsenv use <name>- Switch environmentenv show- Show current environmentenv add <name> <url>- Add custom environmentenv update <name> <url>- Update environment
AI & Social
agent / cat
AI-powered assistant for natural language trading.--chat- Enter interactive chat mode--setup- Configure API key/provider
- OpenAI (GPT-4)
- Anthropic (Claude)
chat
Join streaming chat (general or token-specific).-f, --input-format <format>- Input format:textorstream-json
/exit,/quit- Leave chat/renew- Renew 10-minute lease/buy <amount>- Quick buy (token chats only)/sell <amount|%|all>- Quick sell (token chats only)/help- Show help
System
health
Check if the httpcat agent is running.config
Manage configuration.-s, --show- Show current config-S, --set <key=value>- Set config value-r, --reset- Reset and reconfigure
mcp-server
Start Model Context Protocol server for AI assistant integration.help
Display help information.Interactive Mode
Runhttpcat without arguments to enter the interactive shell:
- ASCII art cats for every action
- Colored output and progress bars
- Tab completion and history
- Built-in help system
- No need to type
httpcatprefix
JSON Mode
Add--json flag to any command for structured JSON output:
0- Success1- Error2- Payment required3- Authentication error
- Shell scripts
- CI/CD pipelines
- Automation
- LLM/agent integration
Next Steps
Configuration
Advanced configuration options
MCP Server
Use with AI assistants
API Reference
Build custom applications
Examples
Complete workflow examples