greg is distributed as a self-contained, standalone native executable with zero external runtime dependencies. You do not need Node.js, Bun, or Python installed on your system to run official releases.
Looking for a quick hands-on tutorial after installation? Check out the Quickstart to complete your first autonomous task in under two minutes.
- Supported Platforms: Operating systems and CPU architectures.
- Method 1: Automated Installer (Recommended): Quick installation script and customizable flags.
- Method 2: Direct Release Downloads: Manual tarball downloads for air-gapped or customized environments.
- Method 3: Building from Source: Compiling the standalone binary using Bun.
- Verifying the Installation: Confirming your setup and active version.
- Managing Updates: Checking for releases, upgrading, and pinning specific versions.
- Custom Storage & Config (
HERNEX_HOME): Overriding the default~/.gregstate directory. - Troubleshooting & PATH Setup: Resolving
command not found: gregacross Zsh, Bash, and Fish. - Uninstalling: Completely removing the binary and runtime state.
- Next Steps: Next guides to explore.
Supported Platforms
greg provides precompiled, statically linked standalone binaries for all modern desktop and server platforms:
Method 1: Automated Installer (Recommended)
The fastest and most reliable way to installgreg on macOS, Linux, or Windows (WSL) is using the official automated installer:
What the Installer Does
- Architecture Detection: Determines your host OS (
Darwin,Linux,Msys) and CPU architecture (arm64,x86_64). - Release Ingestion: Downloads the latest release binary from the GitHub repository.
- Binary Placement: Installs the standalone executable into
~/.greg/bin/gregwith correct executable permissions (chmod +x). - Shell Configuration: Automatically inspects your active shell profile (
~/.zshrc,~/.bashrc, or fish configuration) and appends~/.greg/binto yourPATHif not already present.
Customizing Installer Execution
You can customize the installation by passing arguments throughbash -s -- [options]:
1. Pin a Specific Version
Install an exact version ofgreg rather than latest:
2. Bare Download (Local Directory)
Download the binary directly into your current directory without moving it or modifying shell configuration:3. Check Latest Available Version
Inspect the latest published release without downloading:4. Prevent Modifying Shell Profiles
If you manage yourPATH manually (e.g. through dotfiles or Nix):
5. Install from a Local Binary
Install a binary you built locally without downloading from GitHub:Method 2: Direct Release Downloads
For air-gapped environments, CI runners, or manual deployments, download official release archives directly:1. Download the Platform Archive
Visit the Official Releases Page and download the appropriate asset:- macOS (Apple Silicon):
greg-darwin-arm64.tar.gz - macOS (Intel):
greg-darwin-x64.tar.gz - Linux (x64):
greg-linux-x64.tar.gz - Linux (ARM64):
greg-linux-arm64.tar.gz - Windows:
greg-windows-x64.zip
2. Extract and Move to System PATH
Extract the archive and move the binary to any directory within your systemPATH:
Method 3: Building from Source
To compilegreg from source or contribute to its development:
Prerequisites
Compilation Steps
./greg in the repository root. You can test it immediately:
PATH:
Verifying the Installation
Open a fresh terminal window and run:greg prints its version number (e.g. greg 0.1.10).
Next, run a quick dry-run check:
Managing Updates
greg includes a built-in self-updater that verifies and updates the binary in-place:
Check for Updates
Inspect if a newer release is available on GitHub:Upgrade to the Latest Release
Download and apply the latest release:Bare Download to Current Directory
Download the binary to your current working directory without modifying systemPATH:
Pin or Roll Back to a Specific Version
Install an exact historical release:Custom Storage & Config (HERNEX_HOME)
By default, greg stores its binary, persistent thread transcripts, pre-mutation snapshots, and settings under ~/.greg.
To redirect this directory to an alternate drive, volume, or shared path, set the HERNEX_HOME environment variable in your shell profile:
greg saves all threads in $HERNEX_HOME/threads, content-addressed snapshot blobs in $HERNEX_HOME/blobs, language server configs in $HERNEX_HOME/config/lsp.json, and settings in $HERNEX_HOME/settings.json.
Troubleshooting & PATH Setup
Error: command not found: greg
If running greg returns command not found, your shell has not loaded the ~/.greg/bin directory into its PATH.
Add the path export to your corresponding shell configuration file:
Uninstalling
To cleanly uninstallgreg and remove all local data:
Next Steps
Now that your installation is complete and verified:- Quickstart: Complete your first autonomous task in under two minutes.
- Managing Providers: Configure your API keys for Claude, Gemini, GPT-5, DeepSeek, or local gateways.
- Common Workflows: Explore real-world step-by-step developer recipes.
- Managing Threads: Understand persistent threads, checkpoints, and time-travel rollback workflows.