Configuration File
httpcat-cli stores configuration at:Configuration Structure
Environment Variables
Environment variables override config file settings.Network & Connection
AI Agent
Display Preferences
Configuration Priority
Settings are resolved in this order (highest to lowest):- Command-line flags (highest priority)
- Environment variables
- Config file (lowest priority)
Setup Wizard
Run the interactive setup wizard:1. Wallet Setup
Choose one:- Import existing seed phrase (BIP-39 12/24 words)
- Generate new seed phrase
- Import via private key
2. Password Protection (Optional)
Set a password to encrypt your private key:- Default timeout: 15 minutes
- Configurable timeout period
- Auto-lock after timeout
3. Network Selection
Choose your network:- Base Sepolia (
eip155:84532) - Testnet - Base (
eip155:8453) - Mainnet
4. Agent URL
Default:https://agent.402.cat
Custom URLs supported for local development or alternative deployments.
5. Preferences
- ASCII Art: Enable/disable cat animations
- Color Output: Enable/disable colored terminal output
- Verbose Logging: Enable detailed logging
Account Management
Multi-Account Setup
httpcat-cli supports multiple accounts from a single seed phrase:- Account 0 (Custom): Your imported private key
- Account 1+ (Seed-Derived): HD wallet accounts (BIP-32 path:
m/44'/60'/0'/0/n)
Account Types
| Type | Source | Derivation | Use Case |
|---|---|---|---|
| Custom | Private Key | Single account | Main trading account |
| Seed | HD Wallet | BIP-32 m/44'/60'/0'/0/n | Multiple accounts from one seed |
Environment Management
Switch between different deployment environments.Pre-configured Environments
| Name | Network | Agent URL | Use Case |
|---|---|---|---|
local | Base Sepolia | http://localhost:8787 | Local development |
sepolia | Base Sepolia | https://agent.402.cat | Testnet trading |
base | Base | https://agent.402.cat | Mainnet trading |
Commands
Custom Environment
Create custom environments for staging, private deployments, etc.:Advanced Configuration
Manual Config Editing
Edit config file directly:Reset Configuration
Remove all settings and start fresh:- Delete
~/.config/httpcat/config.json - Restart the setup wizard
Headless/Automation Setup
For CI/CD, automation, or scripts:Password Management
Configure password behavior:15- Default, locks after 15 minutes0- Never lock (not recommended for security)- Any number - Custom timeout in minutes
AI Agent Configuration
Configure AI assistant for natural language commands:OpenAI Setup
gpt-4(recommended)gpt-4-turbogpt-3.5-turbo
Anthropic Setup
claude-3-5-sonnet-20241022(recommended)claude-3-opus-20240229
Security Best Practices
Private Key Security
Private Key Security
- Never commit
config.jsonto version control - Add
~/.config/httpcatto.gitignore - Use password protection for encrypted storage
- Use environment variables in CI/CD (secrets management)
- Rotate keys regularly
- Use separate keys for testnet and mainnet
File Permissions
File Permissions
Ensure config file has restrictive permissions:Only you (file owner) can read/write.
Network Selection
Network Selection
- Use testnet (Base Sepolia) for testing
- Double-check network before creating tokens
- Verify agent URL matches your network
- Mainnet transactions use real USDC
Backup & Recovery
Backup & Recovery
Back up:
- Seed phrase (write down, store securely)
- Private keys (encrypted backup)
- Config file (for preferences only, not keys)
- Restore seed phrase via
httpcat config --reset - Import private key
- Recreate preferences manually
Troubleshooting
Config file not found
Config file not found
Run the setup wizard:Or create manually:
Permission denied errors
Permission denied errors
Fix file permissions:
Environment not switching
Environment not switching
Check current environment:Force switch:If issues persist, check environment variables:
Password/unlock issues
Password/unlock issues
If locked out:Option 1: Wait for timeout to expireOption 2: Reset config (loses preferences but keeps keys):Option 3: Remove password from config file manually (not recommended)