Skip to main content

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:

Token Operations

create

Create a new token on the bonding curve.
Usage:
Options:
  • --photo <url|path> - Token photo (URL, file path, or base64)
  • --banner <url> - Banner image URL
  • --website <url> - Website URL
Cost: $0.01 USDC Examples:
Token addresses end in 402 for easy identification. Save the address for trading!

buy

Buy tokens from the bonding curve.
Usage:
Identifier formats:
  • Contract address: 0x1234...402 (recommended, unique)
  • Token ID (UUID): abc123-4567-...
  • Token name: "My Token" (use quotes if spaces)
  • Token symbol: MTK
Amount:
  • Testnet: 0.05, 0.10, 0.20 USDC
  • Mainnet: 50, 100, 200 USDC
  • Percentage: 10%, 50%, 100% (of USDC balance)
Options:
  • -r, --repeat <count> - Execute multiple buys
  • -d, --delay <ms> - Delay between repeat operations
Cost: Amount + 1% fee Examples:
Use contract addresses for unambiguous identification. If multiple tokens share the same name/symbol, the system selects the one with highest graduation progress.

sell

Sell tokens back to the bonding curve.
Usage:
Amount:
  • Number of tokens: 1000
  • Percentage: 50%, 25%, 100%
  • All tokens: all
Cost: 1% fee deducted from proceeds Examples:

info

Get detailed information about a token.
Usage:
Cost: $0.0001 USDC Returns:
  • Token address and details (name, symbol, creator)
  • Current price and market cap
  • Graduation progress
  • Your position (tokens owned, P&L, ROI)
  • Bonding curve state
Example:

list

List all tokens with pagination and sorting.
Usage:
Options:
  • -s, --sort <field> - Sort by: mcap, created, name
  • -l, --limit <n> - Items per page (default: 20, max: 100)
  • -p, --page <n> - Page number
Cost: $0.0001 USDC Examples:
Contract addresses are displayed prominently for easy copying.

swap

Swap any ERC20 token via DEX aggregation (CLI only, not available in interactive shell).
Usage:
Options:
  • -s, --slippage <bps> - Slippage tolerance in basis points (default: 50 = 0.5%)
Cost: $0.10 USDC Example:

claim

View or claim LP fees for graduated tokens.
Usage:
Options:
  • -e, --execute - Execute claim (default: view only)
  • -A, --address <address> - Caller address
Cost: Free to view, gas fees for claiming Examples:

Portfolio

positions

Get all your positions with comprehensive information.
Usage:
Options:
  • -a, --active - Show only active positions
  • -g, --graduated - Show only graduated positions
Cost: $0.01 USDC Returns:
  • Position details for each token
  • Profit/Loss (P&L)
  • Return on Investment (ROI)
  • Transaction history
  • Portfolio summary
Example:

transactions

Get transaction history with filtering.
Usage:
Options:
  • -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
Examples:

balance

Check wallet balances (ETH, USDC, CAT).
Usage:
Cost: Free Returns:
  • ETH balance (for gas fees)
  • USDC balance (for trading)
  • CAT balance (platform token, if graduated)

Account Management

account

Display and manage accounts.
Subcommands:
  • account list - List all accounts
  • account switch <index> - Switch active account
  • account add - Add new seed-derived account
Examples:
Account 0 is your imported private key. Accounts 1+ are derived from your seed phrase (HD wallet).

env

Manage environments (local, sepolia, base).
Subcommands:
  • env list - List all environments
  • env use <name> - Switch environment
  • env show - Show current environment
  • env add <name> <url> - Add custom environment
  • env update <name> <url> - Update environment
Examples:

AI & Social

agent / cat

AI-powered assistant for natural language trading.
Usage:
Options:
  • --chat - Enter interactive chat mode
  • --setup - Configure API key/provider
Providers:
  • OpenAI (GPT-4)
  • Anthropic (Claude)
Examples:

chat

Join streaming chat (general or token-specific).
Usage:
Options:
  • -f, --input-format <format> - Input format: text or stream-json
Cost: 0.01tojoin,0.01 to join, 0.0001 per message, 10-minute lease In-chat commands:
  • /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
Examples:

System

health

Check if the httpcat agent is running.
Usage:
Cost: $0.0001 USDC Returns: Agent status, version, and network information

config

Manage configuration.
Usage:
Options:
  • -s, --show - Show current config
  • -S, --set <key=value> - Set config value
  • -r, --reset - Reset and reconfigure
Examples:

mcp-server

Start Model Context Protocol server for AI assistant integration.
Usage:
Exposes all CLI commands as MCP tools for Cursor, Claude Desktop, and other MCP-compatible clients. See MCP Server documentation for integration guide.

help

Display help information.

Interactive Mode

Run httpcat without arguments to enter the interactive shell:
Interactive Features:
  • ASCII art cats for every action
  • Colored output and progress bars
  • Tab completion and history
  • Built-in help system
  • No need to type httpcat prefix

JSON Mode

Add --json flag to any command for structured JSON output:
Output format:
Exit Codes:
  • 0 - Success
  • 1 - Error
  • 2 - Payment required
  • 3 - Authentication error
Perfect for:
  • 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