Installation Guide
Install the HeroPrompt CLI to sync prompts to your local machine and access them offline.
Prerequisites
- Python 3.8+ (Python 3.11+ recommended)
- pip or pipx for package installation
Check your Python version:
python --version
# or
python3 --versionInstallation Methods
Option 1: Using pip (Recommended)
pip install heroprompt-cliThis installs the CLI globally on your system.
Option 2: Using pipx (Isolated Installation)
pipx installs CLI tools in isolated environments:
# Install pipx if you don't have it
pip install pipx
pipx ensurepath
# Install heroprompt-cli
pipx install heroprompt-cliRecommended for developers — avoids dependency conflicts with other Python packages.
Option 3: From Source
git clone https://github.com/heroprompt/heroprompt-cli.git
cd heroprompt-cli
pip install -e .Verify Installation
heroprompt version
# heroprompt-cli version 0.1.0If the command is not found, ensure your Python scripts directory is in your PATH:
- Linux/macOS:
~/.local/binor/usr/local/bin - Windows:
%APPDATA%\Python\Scripts
First Time Setup
1. Generate a Personal Access Token
Visit Settings and create a new token under "Personal Access Tokens".
Token limits by tier:
- Free: 0 tokens (CLI not available)
- Starter: 1 token
- Pro Kit: 3 tokens
- Lifetime: 5 tokens
2. Login
heroprompt login --token hp_pat_your_token_hereThis saves your authentication info to ~/.heroprompt/config.json.
3. Verify Authentication
heroprompt statusYou should see your account information and tier.
Configuration
The CLI stores all data in ~/.heroprompt/:
~/.heroprompt/
├── config.json # Auth token and settings
├── prompts/ # Synced prompts
└── skills/ # Synced Skills (PRO+ only)For custom API URLs (self-hosted or local development):
heroprompt login --token hp_pat_xxxxx --api-url http://localhost:8000/apiUpgrading
# pip
pip install --upgrade heroprompt-cli
# pipx
pipx upgrade heroprompt-cliUninstalling
# pip
pip uninstall heroprompt-cli
# pipx
pipx uninstall heroprompt-cli
# Remove configuration
rm -rf ~/.heropromptTroubleshooting
Command not found
Ensure Python's scripts directory is in your PATH:
# macOS/Linux
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Or check where pip installed the CLI
pip show heroprompt-cliAuthentication errors
- Verify your token is active (check Settings)
- Ensure you have at least a Starter subscription
- Try logging out and back in:
heroprompt logout && heroprompt login
Permission errors
On Unix systems, the config file is created with 0600 permissions (user-only readable). If you get permission errors:
chmod 600 ~/.heroprompt/config.json