This guide walks you through installing Shep AI CLI and creating your first feature.
22 in .nvmrc, and package.json declares engines.node >= 22.0.0)npm install -g pnpm)Install Shep globally via pnpm:
pnpm add -g @shepai/cli
Or with npm:
npm install -g @shepai/cli
Verify installation:
shep --version
Navigate to your project directory and start Shep:
cd my-awesome-repository
shep
Bare shep is the same as shep start: it starts the Shep daemon in the background, prints the
control-center URL, and opens it in your browser.
β Shep started
Open in your browser:
http://localhost:4050/
If a daemon is already running, shep just prints the existing URL. Port 4050 is the default; if
it is taken, Shep picks the next free port. Use shep start --port 8080 to choose one yourself.
To run the web UI in the foreground instead of as a background daemon β useful when you want to
watch its output β use shep ui (--port <n>, --no-open). shep stop, shep restart and
shep status manage the background daemon.
There is no terminal setup wizard on the default shep path β onboarding lives in the web UI.
The first time you open the control center, it walks you through two steps.
The control center lists every supported agent, grouped with the models each one offers:
| Agent | Type | Binary | Notes |
|---|---|---|---|
| Claude Code | CLI | claude |
Default |
| Kimi Code | CLI | kimi |
Β |
| Codex CLI | CLI | codex |
Β |
| Copilot CLI | CLI | copilot |
Β |
| Cursor CLI | CLI | cursor-agent |
Not the cursor desktop editor |
| Gemini CLI | CLI | gemini |
Β |
| Cline | CLI | cline |
Β |
| OpenRouter | SDK | β | Needs an API token |
| Together AI | SDK | β | Needs an API token |
| Ollama | SDK | β | Local models, no key |
| LLM Proxy | SDK | β | Local OpenAI-compatible proxy |
| Demo | Mock | β | Scripted responses, for trying Shep out |
After picking an agent, choose its default model. Only models that agent supports are offered.
Both choices are written to the settings database at ~/.shep/data.
The control center then checks that the agentβs binary is installed and authenticated, and shows the install / login command if it is not.
Everything the browser wizard does is also available as a command:
# Full interactive wizard (agent + IDE + workflow)
shep settings
# Or set the agent directly β --auth is required whenever --agent is given
shep settings agent --agent claude-code --auth session
shep settings agent --agent openrouter --auth token --token sk-xxx
# Pick the default model
shep settings model
# Check what is configured
shep settings show
Note:
shep feat newhas its own short terminal onboarding gate when it detects an interactive TTY and nothing is configured yet. That is separate from the browser flow above.
The control center asks you to point it at a repository β pick a folder in the browser, or add one from the terminal:
# Register folders that already exist on disk β the argument is the PARENT
# directory whose subfolders become import candidates
shep repo import ~/projects
shep repo import ~/projects --all --git-only
# Or clone one from GitHub (interactive picker when --url is omitted)
shep repo add --url https://github.com/me/my-awesome-repository
shep repo ls
Shep does not analyze a repository on its own. When you want a standalone structure,
dependency, and architecture pass, run the analyze-repository agent:
shep run analyze-repository
shep run analyze-repository --prompt "Focus on security"
shep run analyze-repository --stream
Analysis also happens implicitly as the first phase of every feature, so this step is optional.
Navigate to http://localhost:4050/ in your browser.
The AI greets you with contextual options based on your repository:
ββββββββββββββββββββββββββββββββββββββββββββββββ
β Welcome to my-app β
ββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β I've analyzed your React application with β
β Express backend. What would you like to β
β work on? β
β β
β Suggested features based on your codebase: β
β β
β β‘ Add user authentication β
β β‘ Implement API rate limiting β
β β‘ Add unit tests for API endpoints β
β β‘ Other (describe your feature) β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββ
Note: User selects a suggested feature or describes a custom one.
Select an option or describe your feature. The AI guides you through requirements:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Requirements Gathering Conversation β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β π€ User: β
β Add user authentication β
β β
β π€ Shep: β
β Great! Let's define the authentication β
β requirements. Which authentication method β
β would you like? β
β β
β β‘ Email/password β
β β‘ OAuth (Google, GitHub) β
β β‘ Magic links β
β β‘ All of the above β
β β
β π€ User: β
β OAuth (Google, GitHub) β
β β
β π€ Shep: β
β Got it. For OAuth, I'll need to know: β
β Should users be able to link multiple OAuth β
β providers? β
β β
β β‘ Yes, allow linking multiple accounts β
β β‘ No, one provider per user β
β β
β ...continued... β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Note: Conversational flow where Shep asks clarifying questions based on user selections.
Once requirements are complete, Shep generates a plan:
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Feature: User Authentication | Lifecycle: Plan β
βββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββ TASKS (5) ββββββββββββββββββββββββββββββββββ β
β β β β
β β β‘ Set up OAuth provider configuration β β
β β β‘ Create user model and migrations β β
β β β‘ Implement OAuth callback handlers β β
β β β‘ Add authentication middleware β β
β β β‘ Create login/logout UI components β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ββ DOCUMENTATION (3) βββββββββββββββββββββββββββ β
β β β β
β β π Product Requirements Document β β
β β π Technical RFC β β
β β π Implementation Tech Plan β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ββ Actions βββββββββββββββββββββββββββββββββββββ β
β β [Implement] [Edit Plan] β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Note: User can click [Implement] to start autonomous code generation or [Edit Plan] to modify tasks.
Click βImplementβ to begin autonomous code generation:
Implementing: User Authentication | Progress: 2/5 tasks complete
β Set up OAuth provider configuration
β Create user model and migrations
β Implement OAuth callback handlers
ββ Creating src/routes/auth.ts
β Add authentication middleware
β Create login/logout UI components
Note: β = completed tasks, β = in progress (with current file being modified), β = pending tasks.
The whole flow also works without the browser:
# Create a feature (the description is a required argument)
shep feat new "Add user authentication with OAuth"
# Watch it
shep feat ls
shep feat show <id>
shep feat logs <id>
# Answer an approval gate
shep feat approve <id>
shep feat reject <id> --reason "Use magic links instead of OAuth"
# Open the feature's worktree in your editor
shep ide <id>
--reason is required on shep feat reject. To skip the gates entirely for one feature, pass
--allow-prd, --allow-plan, --allow-merge, or --allow-all to shep feat new.
Large repositories take longer. There is no exclude-list config file β analysis is driven by the agent, so narrow it with a prompt instead:
shep run analyze-repository --prompt "Skip vendor/ and generated code; focus on src/"
If the daemon itself looks stuck, restart it:
shep restart
shep status
If authentication fails:
shep settings agent
If port 4050 is busy:
shep start --port 4051 # background daemon
shep ui --port 4051 # foreground
Shep also falls back to the next free port on its own, so this is only needed when you want a specific one.
Update when:
Related docs: