Installation¶
This page covers everything you need to install and run goflow.
Prerequisites¶
Before installing goflow, make sure you have:
| Requirement | Why You Need It | How to Check |
|---|---|---|
| Go 1.21+ | goflow is written in Go | go version |
| macOS, Linux, or Windows | Supported operating systems | — |
| Copilot CLI (optional) | Required for real AI calls, not needed for --mock mode |
which copilot |
Windows Support
goflow and Copilot CLI run on Windows via PowerShell and WSL. All workflow features work on Windows — hooks support both bash and powershell script paths.
Don't have Copilot CLI?
You can still learn and test goflow using --mock mode, which simulates AI responses without making real API calls.
Option 1: Build from Source (Recommended)¶
This is the fastest way to get started if you already have Go installed.
Step 1: Clone the repository¶
Step 2: Build the binary¶
This creates a goflow executable in your current directory.
Step 3: Verify installation¶
You should see version information with the build date and commit hash.
Step 4 (Optional): Add to PATH¶
To run goflow from anywhere:
# Move to a directory in your PATH
sudo mv goflow /usr/local/bin/
# Or add the current directory to your PATH
export PATH="$PATH:$(pwd)"
Option 2: Download Pre-built Binaries¶
Visit the Releases page and download the archive for your system:
| Operating System | Architecture | File |
|---|---|---|
| macOS | Intel | goflow_VERSION_darwin_amd64.tar.gz |
| macOS | Apple Silicon | goflow_VERSION_darwin_arm64.tar.gz |
| Linux | x64 | goflow_VERSION_linux_amd64.tar.gz |
| Linux | ARM64 | goflow_VERSION_linux_arm64.tar.gz |
| Windows | x64 | goflow_VERSION_windows_amd64.zip |
| Windows | ARM64 | goflow_VERSION_windows_arm64.zip |
Extract and install¶
Option 3: Homebrew (macOS/Linux)¶
If a Homebrew tap has been configured for your organization:
Verify Your Installation¶
Run this command to confirm everything is working:
Expected output:
Setting Up Copilot CLI (For Real AI Calls)¶
goflow uses the Copilot CLI to communicate with AI models. If you want to run workflows with real AI responses (not mock mode), you need Copilot CLI installed.
Check if Copilot CLI is installed¶
If not installed¶
Follow the Copilot CLI installation guide from GitHub.
Mock Mode Works Without Copilot CLI
If you're just learning goflow or testing workflow structures, you can use --mock mode which doesn't require Copilot CLI:
Next Steps¶
Now that goflow is installed:
- Quick Start — See goflow in action in 2 minutes
- Your First Workflow — Build a workflow step-by-step