Prerequisites
Before installing Forge, make sure you have:Node.js (v18 or higher)
Node.js (v18 or higher)
- macOS:
brew install node - Ubuntu/Debian:
sudo apt install nodejs npm - Windows: Download from nodejs.org
Git
Git
LLM API Keys
LLM API Keys
You’ll need API keys for the LLMs you want to use:
- Claude: Anthropic API key
- Gemini: Google AI API key
- OpenAI: OpenAI API key
- Others as needed
Installation Methods
- NPM (Global)
- NPM (Project)
- NPX (No Install)
- From Source
Install Forge globally to use it from anywhere:Verify installation:
Configuration
After installation, configure Forge with your LLM API keys:.forge/config.json:
Security Tip: Never commit
.forge/config.json to version control! Add it to .gitignore.Verify Installation
Test that everything is working:Troubleshooting
Command not found: forge
Command not found: forge
If you installed globally but get “command not found”:
-
Check NPM global bin path:
-
Add to your PATH (add to
~/.bashrcor~/.zshrc): -
Reload your shell:
Permission denied errors
Permission denied errors
On macOS/Linux, you might need sudo for global installs:Or configure NPM to use a different directory (recommended):
Git worktree errors
Git worktree errors
Make sure you’re in a Git repository:Forge requires Git to create isolated worktrees.

