Prerequisites
Before installing Stoneforge, ensure you have:Node.js 18+
Node.js version 18.0.0 or higher
Bun (Optional)
Any recent version of Bun runtime
Verify your Node.js version:
Install the CLI
Install the Stoneforge CLI globally using npm:Verify Installation
Confirm the CLI is installed correctly:Initialize a Workspace
Navigate to your project directory and initialize Stoneforge:What Gets Created
Thesf init command creates a .stoneforge/ directory with:
View workspace structure
View workspace structure
If you clone a repo with an existing
.stoneforge/ directory but no database, sf init will create the database and auto-import from JSONL sync files.Initialize Options
| Option | Description |
|---|---|
--name <name> | Workspace name (optional) |
--actor <actor> | Default actor for operations |
Configure Authentication
Provider Setup
Stoneforge supports three agent providers:- Claude Code (Default)
- OpenCode
- OpenAI Codex
Install and authenticate with Claude Code:Follow the authentication prompts. Your credentials are stored by Claude Code, not Stoneforge.
Scaling with Multiple Plans
To split agents across multiple Claude MAX/Pro plans and avoid rate limits:Install Claude Code with multiple accounts
Install Claude Code separately for each account, each with its own executable path.
See the Smithy README for detailed multi-plan setup instructions.
Configuration File
The workspace configuration is stored in.stoneforge/config.yaml:
Verify Workspace Setup
Check that your workspace is properly initialized:Shell Completion (Optional)
Enable shell completion for faster CLI usage:- Bash
- Zsh
- Fish
Add to Or save to a file:
~/.bashrc or ~/.bash_profile:Development Installation
Installing from source
Installing from source
If you want to contribute to Stoneforge or use the latest development version:
Next Steps
Quick Start
Get orchestrating agents in under 5 minutes
Examples
See real-world usage patterns
Troubleshooting
Permission denied on sf command
Permission denied on sf command
The CLI executable may not have execute permissions. Fix with:Or reinstall the package:
Database file already exists
Database file already exists
If
sf init fails because .stoneforge/stoneforge.db exists, either:- Delete the existing database:
rm .stoneforge/stoneforge.db - Or skip init if the workspace is already set up
Command not found: sf
Command not found: sf
Ensure your global npm bin directory is in your PATH:If missing, add to your shell profile: