Skip to main content

Installation Methods

httpcat-cli can be installed in multiple ways depending on your preference and workflow. Install globally via npm for the best experience:
After installation, the httpcat command will be available system-wide. Verify installation:

npx (No Install Required)

Use npx to run httpcat without installing:
This always uses the latest version but takes slightly longer to start since it downloads the package each time. Useful for:
  • Quick one-off commands
  • CI/CD pipelines
  • Trying before installing
  • Always using the latest version

Homebrew (macOS/Linux)

Install via Homebrew tap:
Update to latest:

System Requirements

  • Node.js: 18.0.0 or higher
  • Operating Systems: macOS, Linux, Windows (via WSL recommended)
  • Network: Base Sepolia or Base mainnet access

Configuration

After installation, run the setup wizard:
This will guide you through:
  1. Wallet Setup: Import or generate a private key
  2. Network Selection: Base Sepolia (testnet) or Base (mainnet)
  3. Preferences: ASCII art, color output, etc.
Configuration is stored at: ~/.config/httpcat/config.json
Never commit your config.json file to version control. It contains your encrypted private key.

Verification

Test your installation:

Upgrading

Uninstallation

To remove configuration:

Troubleshooting

Make sure npm’s global bin directory is in your PATH:
Add $(npm config get prefix)/bin to your PATH in ~/.bashrc or ~/.zshrc:
Use one of these solutions:Option 1: Use npx instead (no permission issues)Option 2: Fix npm permissions:
Then retry the installation.
If you see connection errors:
  1. Check your internet connection
  2. Verify you can reach the agent:
  3. Check if you’re behind a proxy/firewall
  4. Try setting a custom agent URL:
httpcat-cli requires Node.js 18 or higher.Check your version:
Upgrade Node.js:
  • nvm: nvm install 18 && nvm use 18
  • Homebrew: brew upgrade node
  • Download: nodejs.org

Next Steps

Commands Reference

Learn all available commands

Configuration

Advanced configuration options

Quick Start

Get trading in 5 minutes

MCP Server

Use with AI assistants