Installation
This guide walks you through installing gh-worker and its dependencies.
Prerequisites
Before installing gh-worker, ensure you have the following:
Python 3.12+
gh-worker requires Python 3.12 or later (latest LTS version).
If you need to install or upgrade Python, visit python.org.
uv Package Manager
gh-worker uses uv for fast, reliable Python package management.
GitHub CLI
The GitHub CLI is required for interacting with GitHub repositories and issues.
# macOS
brew install gh
# Linux (Debian/Ubuntu)
sudo apt install gh
# Linux (other)
# See https://github.com/cli/cli/blob/trunk/docs/install_linux.md
# Windows
winget install GitHub.cli
# Verify installation
gh --version
Authenticate GitHub CLI
You must authenticate the GitHub CLI with your GitHub account:
Follow the prompts to complete authentication. You'll need:
- A GitHub account
- Permissions to access the repositories you want to manage
Claude Code CLI (Optional)
If you plan to use the default Claude Code agent, install the Claude Code CLI:
# Follow installation instructions at:
# https://claude.ai/code
# Verify installation
claude-code --version
Install gh-worker
From Source
Install with uv:
Verify Installation
After installation, verify that gh-worker is available:
# Check that the command is available
ghw --help
# Or use the full name
gh-worker --help
# Check version info
ghw --version
Both ghw (short alias) and gh-worker (full name) are available as commands.
Post-Installation Setup
Configure Base Paths
Set up the base paths where gh-worker will store data:
# Set the path where issues will be stored
ghw config issues-path ~/gh-worker/issues
# Set the path where repositories will be cloned
ghw config repository-path ~/gh-worker/repos
These directories will be created automatically when you start using gh-worker.
Configure Agent (Optional)
If you're using a custom agent or want to change the default:
# Set the default agent
ghw config agent.default claude-code
# If Claude Code is not in your PATH, specify its location
ghw config agent.claude_code_path /path/to/claude-code
Verify Setup
Verify that everything is configured correctly:
# Check configuration
ghw config issues-path
ghw config repository-path
# Check GitHub authentication
gh auth status
# Check agent availability (for Claude Code)
claude-code --version
Troubleshooting
Command Not Found: ghw
If you get a "command not found" error, ensure that Python's script directory is in your PATH:
# Add to ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"
# Reload your shell
source ~/.bashrc # or source ~/.zshrc
GitHub CLI Not Authenticated
If you see authentication errors:
Permission Denied
If you encounter permission errors when creating directories:
Claude Code Not Found
If the Claude Code agent can't be found:
- Verify it's installed:
claude-code --version - If it's installed but not in PATH, set the full path:
- Or switch to a different agent:
Upgrading
To upgrade gh-worker to the latest version:
Uninstalling
To remove gh-worker:
# Uninstall the package
uv pip uninstall gh-worker
# Optionally, remove data directories
rm -rf ~/gh-worker
rm -rf ~/.config/gh-worker
Next Steps
Now that gh-worker is installed, proceed to:
- Configuration - Configure gh-worker for your needs
- Usage Guide - Learn how to use gh-worker
- Quick Start - Get started quickly