AgentCraft Docs
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)
    • Codex (npm install -g @openai/codex)
    • OpenCode (curl -fsSL https://opencode.ai/install | sh)
    • Cursor

Install

Run the guided setup:

npx @idosal/agentcraft

This will:

  1. Auto-detect any installed agent CLIs (Claude Code, Codex, OpenCode, Cursor)
  2. Wire each detected agent into AgentCraft using repo-local provider files while preserving existing entries
  3. Start the server on port 2468
  4. Open the browser UI automatically

Force Reinstall

npx @idosal/agentcraft install --force

Run in Background (Daemon Mode)

npx @idosal/agentcraft start -d
npx @idosal/agentcraft stop   # Stop later

Custom Port

npx @idosal/agentcraft start --port 3002
# or shorthand:
npx @idosal/agentcraft start -p 3002

Show All Projects

By default AgentCraft only shows agents from the current directory. To see sessions from all projects:

npx @idosal/agentcraft start --all-projects

Launch from a Parent Directory

To manage several Git repositories from one AgentCraft instance, launch from their parent folder:

cd ~/projects
npx @idosal/agentcraft

AgentCraft discovers nested repositories up to three levels deep. Open Spawn Options > Working Directory to select a repository or one of its worktrees before spawning a hero. Agents remain scoped to that selected Git repository.

First Launch

On first launch, an interactive tutorial guides you through the basics:

  1. Welcome — Introduction to the RTS interface
  2. Commands — The command grid at the bottom; spawn your first hero
  3. Hero Spawn — Send your first prompt to the hero
  4. Observe — Activity bubbles and the yellow glow indicating the agent needs input
  5. Status Widget — The agent status panel showing all heroes
  6. 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:

KeyAction
QOpen Spawn Options for provider, repository/worktree, template, and isolation choices
WQuick-spawn with the remembered provider
EView active sessions
FToggle 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 doctor

This checks provider CLIs and authentication, repo-local integrations, Node and native prerequisites, server and port health, configuration integrity, and Codex sandbox support.

Next Steps