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.
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.- The problem with MCP
- How CLI solves this
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
3
Select a workspace
4
Start using it
Command reference
Authentication
Workspaces
Goals
Opportunities
Solutions
Feedback
Insights
Knowledge
Search
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:Example workflows
AI agent: strategy review in Claude Code
AI agent: strategy review in Claude Code
Add this to your project’s Then ask Claude Code:Claude Code will run commands like
CLAUDE.md to give Claude Code access to your product strategy: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.AI agent: feedback triage
AI agent: feedback triage
Scripting: weekly strategy digest
Scripting: weekly strategy digest
AI agent: solution generation
AI agent: solution generation
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
Authentication fails
Authentication fails
If the browser login doesn’t complete:
- Make sure pop-ups aren’t blocked in your browser
- Try signing into Squad at meetsquad.ai first
- Check that you’re using the correct Squad account
- Run
squad auth statusto check your current auth state
'No workspace selected' error
'No workspace selected' error
You need to select a workspace before running most commands:Each environment (dev, staging, production) has its own workspace selection.
Token expired
Token expired
Tokens refresh automatically. If you’re still seeing auth errors:
Rate limiting
Rate limiting
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