Skip to main content
Squad CLI gives terminal-native AI agents like Claude Code, Codex, and OpenCode direct access to your product strategy without the context window overhead of MCP. Same tools, fraction of the tokens.
Version compatibility: These are the v1 (legacy) Squad docs, which track Squad CLI v0.3.x. Pin to this line when installing — @squadai/cli@^0.3. CLI v0.4 and later target the new v2 Squad and aren’t compatible with v1; for those, see the current docs.

Overview

Squad CLI (@squadai/cli) is a command-line tool for managing your entire product strategy from the terminal. It supports all the same operations as Squad’s MCP server — goals, opportunities, solutions, feedback, insights, knowledge, and more — but through simple, composable commands that AI agents already know how to use.

Why CLI over MCP?

More builders than ever are shipping code using terminal-native agents like Claude Code, Codex, and OpenCode. But MCP servers can quietly eat through your context window before your agent even starts working.
MCP servers inject their full tool schemas into every conversation. A typical MCP server consumes tens of thousands of tokens just for tool definitions — tokens your agent could be using to reason about your actual problem.With multiple MCP servers connected, you can lose over 150,000 tokens of context before your agent processes a single task.
  • Tool schemas are loaded upfront, whether you use them or not
  • Each MCP call returns structured JSON that the model must parse
  • Complex workflows require multiple round-trips with state management overhead
When to use which: Use the CLI when you’re working with terminal-native agents or want maximum context efficiency. Use MCP when you’re working in Claude Desktop or prefer natural language tool discovery. Both connect to the same Squad data.

Prerequisites

Squad Account

Active Squad workspace with data

Node.js 22+

Required runtime for the CLI

Quick start

1

Install

2

Authenticate

This opens your browser for secure OAuth login. Your credentials are never stored locally — only a scoped access token that refreshes automatically.
3

Select a workspace

4

Start using it

Command reference

Authentication

Workspaces

Goals

Opportunities

Solutions

Feedback

Insights

Knowledge

Optional: --filters <sources> to limit by knowledge-base, insights, opportunities, or solutions.

Strategy views

Options for strategy-context: --type <workspace|goal|opportunity|solution>, --id <id> Options for roadmap: --goal-id <id>, --status <statuses>, --show-resolved

Global options

All commands support these flags:
Use --format json (the default) when working with AI agents. Use --format table for human-readable output in your terminal.

Example workflows

Add this to your project’s CLAUDE.md to give Claude Code access to your product strategy:
Then ask Claude Code:
Claude Code will run commands like squad goal list, squad opportunity list, and squad view strategy-context to build a complete picture — using a fraction of the tokens MCP would require.
The agent runs:
The agent runs:

Configuration

Squad CLI stores configuration in ~/.config/squad/ (respects XDG_CONFIG_HOME): You can also set the SQUAD_TOKEN environment variable to override stored authentication, and SQUAD_ENV to select an environment without passing --env.

Troubleshooting

If the browser login doesn’t complete:
  1. Make sure pop-ups aren’t blocked in your browser
  2. Try signing into Squad at meetsquad.ai first
  3. Check that you’re using the correct Squad account
  4. Run squad auth status to check your current auth state
You need to select a workspace before running most commands:
Each environment (dev, staging, production) has its own workspace selection.
Tokens refresh automatically. If you’re still seeing auth errors:
If you see rate limit errors:
  • Squad allows 100 requests per minute
  • Wait 60 seconds if you hit limits
  • Consider upgrading your Squad plan for higher limits

Getting help

npm package

@squadai/cli on npm

GitHub

Report issues or contribute

Squad MCP Guide

Alternative: use Squad via MCP

Squad Support

Contact the Squad team