You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Devin CLI (Unofficial) — The Professional Terminal Interface for Devin AI
The first unofficial CLI for the world's first AI Software Engineer. Supports both the modern v3 API and the legacy v1 API with full multi-profile management.
Devin CLI is designed for high-velocity engineering teams. It strips away the friction of the web UI, allowing you to orchestrate autonomous agents, manage complex contexts, and automate multi-step development workflows through a robust, terminal-first interface.
⚡ Quick Start
1. Installation
Recommended: Via Homebrew (macOS)
brew tap revanthpobala/tap
brew install devin-cli
Via pipx (Isolated environment)
pipx install devin-cli
Via pip
pip install devin-cli
2. Configuration
devin configure
# Paste your API token (apk_... or cog_...) from https://preview.devin.ai/settings# Select API version: v3 (default) or v1 (legacy)
3. Your First Session
devin create-session "Identify and fix the race condition in our Redis cache layer"
devin watch
Authentication & Usage
AI Agent Integration (JSON Output)
For external automation and AI agent architectures relying on the CLI, devin-cli supports a global --json flag. This will suppress all visual output/terminal colors and instead uniformly return raw JSON objects for stdout and API errors, making the CLI completely deterministic to parse.
devin configure --profile personal
devin configure --profile service
devin --profile service sessions list
devin --profile personal sessions create "Fix the failing tests"
Profiles are stored in ~/.config/devin/config.json — fully isolated including session caches and active session IDs.
🤖 All Commands
Flat Commands (0.1.x style — quick access)
Command
Description
devin create-session "<prompt>"
Create a new session
devin watch
Live-watch the active session
devin status
One-liner status of active session
devin open
Open active session URL in browser
devin message "<text>"
Send a message to active session
devin message --file prompt.txt
Send a message from file
devin terminate
Terminate active session
devin list-sessions
List recent sessions
devin upload <file>
Upload a file to Devin
devin attach <file> "<prompt>"
Upload file + start session with it
devin list-knowledge
List knowledge notes
devin update-knowledge <id>
Update a knowledge entry
devin update-tags
Update tags on a session
devin history
Show locally cached session ID
devin messages
Show conversation history
devin get-session
Show session details + structured output
devin update-playbook <id>
Update a playbook
devin delete-playbook <id>
Delete a playbook
devin list-secrets
List organization secrets
devin delete-secret <id>
Delete a secret
devin chain
Sequential playbook orchestration
devin use <session_id>
Switch active session
devin configure
Configure API token and profile
Sessions (devin sessions <cmd>)
Command
Key Flags
Description
create
see below
Create a session
list
--limit, --json
List sessions
get
[session_id]
Get session details
watch
--interval
Live-watch with exponential backoff
message
[text], --file
Send message or file to session
messages
[session_id]
Full conversation history
terminate
[session_id]
Terminate a session
insights
[session_id]
ACU / performance insights (v3)
cost
[session_id]
ACU consumption
Note for Service Tokens (cog_): When retrieving a specific session via devin sessions get <id>, the CLI automatically falls back to filtering the org-wide sessions list via a ?session_ids=[<id>] query parameter to gracefully bypass the 403 Forbidden error natively returned by the direct API endpoint for service accounts.
sessions create / create-session — Full Flag Reference
Flag
Type
Description
[prompt]
arg
Task prompt
--file, -f
path
Read prompt from file
--title, -t
str
Custom session title
--devin-mode, --mode, --model
str
Agent mode / model: normal | fast | lite | ultra | fusion (v3)
The CLI caches a SHA-256 hash of your last 50 prompts per profile. Duplicate prompts are caught before wasting ACUs:
Duplicate Detected: You recently created a session with this exact prompt.
Existing Session ID: abc123...
Are you sure you want to create a duplicate session? [y/N]