Skip to content

smtg-ai/claude-squad

Repository files navigation

Claude Squad CI GitHub Release

Claude Squad is a terminal app that manages multiple Claude Code, Codex, Gemini (and other local agents including Aider) in separate workspaces, allowing you to work on multiple tasks simultaneously.

Claude Squad Screenshot

Highlights

  • Complete tasks in the background (including yolo / auto-accept mode!)
  • Manage instances and tasks in one terminal window
  • Review changes before applying them, checkout changes before pushing them
  • Each task gets its own isolated git workspace, so no conflicts

demo.mp4

Installation

Both Homebrew and manual installation will install Claude Squad as cs on your system.

Homebrew

brew install claude-squad
ln -s "$(brew --prefix)/bin/claude-squad" "$(brew --prefix)/bin/cs"

Manual

Claude Squad can also be installed by running the following command:

curl -fsSL https://raw.githubusercontent.com/smtg-ai/claude-squad/main/install.sh | bash

This puts the cs binary in ~/.local/bin.

To use a custom name for the binary:

curl -fsSL https://raw.githubusercontent.com/smtg-ai/claude-squad/main/install.sh | bash -s -- --name <your-binary-name>

Prerequisites

Usage

Usage:
  cs [flags]
  cs [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  debug       Print debug information like config paths
  help        Help about any command
  reset       Reset all stored instances
  version     Print the version number of claude-squad

Flags:
  -y, --autoyes          [experimental] If enabled, all instances will automatically accept prompts for claude code & aider
  -h, --help             help for claude-squad
  -p, --program string   Program to run in new instances (e.g. 'aider --model ollama_chat/gemma3:1b')

Run the application with:

cs

Using Claude Squad with other AI assistants:

  • For Codex: Set your API key with export OPENAI_API_KEY=<your_key>
  • Launch with specific assistants:
    • Codex: cs -p "codex"
    • Aider: cs -p "aider ..."
    • Gemini: cs -p "gemini"
  • Make this the default, by modifying the config file (locate with cs debug)

Menu

The menu at the bottom of the screen shows available commands:

Instance/Session Management
  • n - Create a new session
  • N - Create a new session with a prompt
  • D - Kill (delete) the selected session
  • ↑/j, ↓/k - Navigate between sessions
Actions
  • ↵/o - Attach to the selected session to reprompt
  • ctrl-q - Detach from session
  • s - Commit and push branch to github
  • c - Checkout. Commits changes and pauses the session
  • r - Resume a paused session
  • ? - Show help menu
Navigation
  • tab - Switch between preview tab and diff tab
  • q - Quit the application
  • shift-↓/↑ - scroll in diff view

How It Works

  1. tmux to create isolated terminal sessions for each agent
  2. git worktrees to isolate codebases so each session works on its own branch
  3. A simple TUI interface for easy navigation and management

License

AGPL-3.0

Star History

Star History Chart

About

Manage multiple AI terminal agents like Claude Code, Aider, Codex, OpenCode, and Amp.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 7