System requirements
OpenFang is a single ~32MB binary with zero runtime dependencies. It runs on:- Operating Systems: macOS (10.15+), Linux (glibc 2.31+), Windows (10/11), Docker
- Architectures: x86_64 (Intel/AMD), ARM64 (Apple Silicon, AWS Graviton)
- Memory: 100MB minimum, 512MB recommended
- Disk: 100MB for binary + data
- Network: Optional (for LLM API calls and channel integrations)
OpenFang can run fully offline if you use a local LLM provider like Ollama.
Installation methods
Choose the method that works best for your platform:One-line installer
Recommended for macOS/Linux
PowerShell installer
Recommended for Windows
Docker
For containerized deployments
Build from source
For contributors and custom builds
macOS installation
One-line installer (recommended)
The installer downloads the latest pre-built binary, verifies the checksum, and adds it to your PATH.- Detects your architecture (Intel x86_64 or Apple Silicon ARM64)
- Downloads the latest release from GitHub
- Verifies SHA256 checksum
- Installs to
~/.openfang/bin/openfang - Adds
~/.openfang/binto your PATH (in~/.zshrcor~/.bashrc)
Homebrew (coming soon)
Homebrew formula is in progress. Use the one-line installer for now.
Verify installation
Update OpenFang
Re-run the installer to upgrade to the latest version:Linux installation
One-line installer (recommended)
Works on Ubuntu, Debian, Fedora, Arch, and most glibc-based distributions:- Ubuntu 20.04+ (Focal, Jammy, Noble)
- Debian 11+ (Bullseye, Bookworm)
- Fedora 36+
- Arch Linux (rolling)
- RHEL/CentOS 8+
- Amazon Linux 2023
- Any glibc 2.31+ distribution
Install to a custom directory
Package managers
Official packages are in progress. Use the one-line installer for now.
Verify installation
Add to systemd (run as a service)
Create a systemd service file to run OpenFang automatically on boot:Windows installation
PowerShell installer (recommended)
Run this command in PowerShell (right-click → Run as Administrator if needed):- Detects your architecture (x64 or ARM64)
- Downloads the latest release (.zip)
- Verifies SHA256 checksum
- Extracts
openfang.exeto%USERPROFILE%\.openfang\bin - Adds the directory to your user PATH
Windows Subsystem for Linux (WSL)
If you’re using WSL2, follow the Linux installation instructions inside your WSL environment.Verify installation
Open a new PowerShell or CMD window and run:MSI installer (coming soon)
Double-click to install with a GUI wizard:MSI installer is in development. Use the PowerShell script for now.
Run as a Windows service
Use NSSM (Non-Sucking Service Manager) to run OpenFang as a background service:Docker installation
Official image
Pull the latest OpenFang image from Docker Hub:Run OpenFang in a container
Start the daemon with persistent storage:The
-v openfang-data:/data volume persists agent configurations, conversations, and memory between container restarts.Access the dashboard
Open http://localhost:4200 in your browser.Run a one-off command
Execute OpenFang CLI commands inside the container:Docker Compose
Create adocker-compose.yml file:
docker-compose.yml
Build your own Docker image
Clone the repository and build locally:Build from source
Prerequisites
Install Rust 1.75 or later:Clone the repository
Build the project
OpenFang is a Cargo workspace with 14 crates:The first build takes 5-10 minutes because it compiles SQLite (bundled) and Wasmtime. Subsequent builds are incremental and much faster.
Install the binary
Copy the compiled binary to a directory in your PATH:Run tests
OpenFang has 1,744+ tests covering all subsystems:Run clippy (zero warnings policy)
Development build
For faster compile times during development:Configuration
After installation, initialize OpenFang:~/.openfang/config.toml— Main configuration file~/.openfang/.env— Environment variables for API keys~/.openfang/data/openfang.db— SQLite database~/.openfang/logs/— Log files
Example configuration
~/.openfang/config.toml:
~/.openfang/.env:
Environment variables
OpenFang respects the following environment variables:| Variable | Description | Default |
|---|---|---|
OPENFANG_HOME | Data directory | ~/.openfang |
OPENFANG_LISTEN | API server bind address | 127.0.0.1:4200 |
OPENFANG_API_KEY | API authentication key | None (localhost-only) |
RUST_LOG | Log level | info |
GROQ_API_KEY | Groq API key | None |
ANTHROPIC_API_KEY | Anthropic (Claude) API key | None |
OPENAI_API_KEY | OpenAI API key | None |
GEMINI_API_KEY | Google Gemini API key | None |
OLLAMA_BASE_URL | Ollama endpoint | http://localhost:11434 |
~/.openfang/.env for persistence.
Updating OpenFang
Update via installer
Re-run the installation script:Update Docker image
Update from source
Uninstalling OpenFang
Remove the binary
Or use the built-in uninstaller
- The binary (
~/.openfang/bin/openfang) - Configuration files (
~/.openfang/config.toml) - Database and logs (
~/.openfang/data/) - PATH entries from shell config files
Troubleshooting
Installation fails with SSL error
Installation fails with SSL error
The installer requires HTTPS to download from GitHub. Ensure you have up-to-date SSL certificates.Fix (Ubuntu/Debian):Fix (macOS):
Permission denied when running openfang
Permission denied when running openfang
The binary may not have execute permissions.Fix:
Command not found after installation
Command not found after installation
The installer added
~/.openfang/bin to your PATH, but you may need to restart your terminal.Fix:Checksum verification failed
Checksum verification failed
Docker container exits immediately
Docker container exits immediately
Check the container logs for errors:Common causes:
- Missing API key: Add
-e GROQ_API_KEY=...to thedocker runcommand - Port conflict: Change
-p 4200:4200to-p 5000:4200
Build from source fails
Build from source fails
Ensure you have Rust 1.75+ installed:If the build fails, check CONTRIBUTING.md for detailed build instructions.
Next steps
Now that OpenFang is installed, continue with the Quickstart to:- Initialize configuration with
openfang init - Start the daemon with
openfang start - Spawn your first agent with
openfang agent spawn researcher - Chat with the agent using
openfang chat researcher
Quickstart Guide
Get your first agent running in 5 minutes
Configuration
Configure models, channels, and security
Creating Agents
Create custom agents with templates
API Reference
Integrate OpenFang programmatically
Get help
Discord
Ask questions and get support
GitHub Issues
Report bugs or request features
Twitter/X
Follow for updates