Skip to main content
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.
This page covers:

Supported Platforms

greg provides precompiled, statically linked standalone binaries for all modern desktop and server platforms:
The fastest and most reliable way to install greg on macOS, Linux, or Windows (WSL) is using the official automated installer:

What the Installer Does

  1. Architecture Detection: Determines your host OS (Darwin, Linux, Msys) and CPU architecture (arm64, x86_64).
  2. Release Ingestion: Downloads the latest release binary from the GitHub repository.
  3. Binary Placement: Installs the standalone executable into ~/.greg/bin/greg with correct executable permissions (chmod +x).
  4. Shell Configuration: Automatically inspects your active shell profile (~/.zshrc, ~/.bashrc, or fish configuration) and appends ~/.greg/bin to your PATH if not already present.

Customizing Installer Execution

You can customize the installation by passing arguments through bash -s -- [options]:

1. Pin a Specific Version

Install an exact version of greg 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 your PATH 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 system PATH:

Method 3: Building from Source

To compile greg from source or contribute to its development:

Prerequisites

Compilation Steps

This compiles a self-contained native executable ./greg in the repository root. You can test it immediately:
To install the compiled binary into your user PATH:

Verifying the Installation

Open a fresh terminal window and run:
If the installation succeeded, 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 system PATH:

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:
When set, 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:
Then reload your shell configuration:

Uninstalling

To cleanly uninstall greg 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.