Installation Methods
httpcat-cli can be installed in multiple ways depending on your preference and workflow.npm (Recommended)
Install globally via npm for the best experience:httpcat command will be available system-wide.
Verify installation:
npx (No Install Required)
Use npx to run httpcat without installing:- Quick one-off commands
- CI/CD pipelines
- Trying before installing
- Always using the latest version
Homebrew (macOS/Linux)
Install via Homebrew tap: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:- Wallet Setup: Import or generate a private key
- Network Selection: Base Sepolia (testnet) or Base (mainnet)
- Preferences: ASCII art, color output, etc.
~/.config/httpcat/config.json
Verification
Test your installation:Upgrading
- npm
- Homebrew
- npx
Uninstallation
- npm
- Homebrew
Troubleshooting
Command not found after npm install
Command not found after npm install
Make sure npm’s global bin directory is in your PATH:Add
$(npm config get prefix)/bin to your PATH in ~/.bashrc or ~/.zshrc:Permission errors on npm install
Permission errors on npm install
Use one of these solutions:Option 1: Use npx instead (no permission issues)Option 2: Fix npm permissions:Then retry the installation.
Network connection errors
Network connection errors
If you see connection errors:
- Check your internet connection
- Verify you can reach the agent:
- Check if you’re behind a proxy/firewall
- Try setting a custom agent URL:
Node.js version issues
Node.js version issues
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