Skip to main content

Prerequisites

Before installing Forge, make sure you have:
If you need to install or upgrade Node.js:
  • macOS: brew install node
  • Ubuntu/Debian: sudo apt install nodejs npm
  • Windows: Download from nodejs.org
Forge uses Git worktrees for isolation, so Git is required.
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

Install Forge globally to use it from anywhere:
Verify installation:

Configuration

After installation, configure Forge with your LLM API keys:
Set up your API keys in .forge/config.json:
Security Tip: Never commit .forge/config.json to version control! Add it to .gitignore.

Verify Installation

Test that everything is working:
You should see output similar to:

Troubleshooting

If you installed globally but get โ€œcommand not foundโ€:
  1. Check NPM global bin path:
  2. Add to your PATH (add to ~/.bashrc or ~/.zshrc):
  3. Reload your shell:
On macOS/Linux, you might need sudo for global installs:
Or configure NPM to use a different directory (recommended):
Make sure youโ€™re in a Git repository:
Forge requires Git to create isolated worktrees.

Next Steps

Quick Start

Create your first AI-powered task

Introduction

Learn more about Forge