Getting Started
Installation & Setup
Install AgentCraft and launch it for the first time.
Prerequisites
- Node.js 18 or later
- At least one supported AI agent CLI installed:
- Claude Code (
npm install -g @anthropic-ai/claude-code) - OpenCode (
curl -fsSL https://opencode.ai/install | sh) - Cursor
- Claude Code (
Install
Run the guided setup:
npx @idosal/agentcraftThis will:
- Auto-detect any installed agent CLIs (Claude Code, OpenCode, Cursor)
- Install hooks for each detected agent (merges without touching your existing hooks)
- Start the server on port 2468
- Open the browser UI automatically
For each detected agent:
- Claude Code — hooks installed to
~/.claude/settings.json(backed up tosettings.backup.json) - OpenCode — plugin installed to
~/.config/opencode/plugins/agentcraft.js - Cursor — hooks installed to
~/.cursor/hooks.json
Force Reinstall
npx @idosal/agentcraft install --forceRun in Background (Daemon Mode)
npx @idosal/agentcraft start -d
npx @idosal/agentcraft stop # Stop laterCustom Port
npx @idosal/agentcraft start --port 3002
# or shorthand:
npx @idosal/agentcraft start -p 3002Show All Projects
By default AgentCraft only shows agents from the current directory. To see sessions from all projects:
npx @idosal/agentcraft start --all-projectsFirst Launch
On first launch, an interactive tutorial guides you through the basics:
- Welcome — Introduction to the RTS interface
- Commands — The command grid at the bottom; spawn your first hero
- Hero Spawn — Send your first prompt to the hero
- Observe — Activity bubbles and the yellow glow indicating the agent needs input
- Status Widget — The agent status panel showing all heroes
- Complete — The War Advisor introduces itself for ongoing tips
Steps 2 and 3 wait for you to take action before advancing.
Spawning Heroes
Use the Town Hall command grid:
| Key | Action |
|---|---|
| Q | Spawn a Claude Code agent |
| W | Spawn an OpenCode agent |
| E | Spawn a Cursor agent |
| R | Open worktree picker |
| A | View active sessions |
| F | Toggle integrated terminal |
External sessions (agents started in a separate terminal) are automatically detected and appear on the map.
Verify Installation
Run diagnostics:
npx @idosal/agentcraft doctorThis checks: CLI installed, hooks in PATH, hooks present in settings, server running, Node.js version.