Reference · Reference
Factory Droid CLI Cheat Sheet
Search and copy Factory Droid CLI commands by category: CLI commands, flags, slash commands, keyboard shortcuts, and settings.
Last updated:
Verified against: v0.209.x (tested with v0.209.0) | Updated September 2026
How to use
Expand how to useCollapse how to use
- 1
Search commands
Type a keyword to filter by command name, description, options, and examples at once.
- 2
Filter by category
Switch between CLI commands, flags, slash commands, shortcuts, and settings to find what you need quickly.
- 3
One-click copy
Use the copy button to copy a command to your clipboard and paste it straight into your terminal or Droid session.
Latest updates
Recent highlights from the Droid CLI changelog. See the full history at the bottom of this page.
v0.209.x (September 1, 2026)
- Verified against v0.209.0 (2026-09-01). You can now archive the current session from chat with /archive or Ctrl+X and restore it from the Archived tab in /sessions (both are already listed here). Sessions with no model selected now default to GPT-5.6 Sol, and the CLI starts on time when organization settings load slowly, applying them once they arrive
- Bug fixes: text selected in a diff no longer clears when the session sidebar updates, and the environment panel stays visible while repository details load or refresh. Opening a file link now centers the target line (all app-side), and running out of credits suggests an available Droid Core model instead of a retired one
- A full re-check of the official docs (cli-reference and settings) found no CLI commands, flags, slash commands, shortcuts, or settings added, removed, or changed (still 178 items listed)
v0.208.x (August 29, 2026)
- Verified against v0.208.1 (2026-08-29). In v0.208.0, organization owners can require people on verified email domains to join by invitation instead of creating a new organization. Screenshots, diagrams, and tables keep fine detail when Droid resizes images, /new and /clear show progress while the next session is created, You.com joined the MCP server registry, and built-in slash commands run immediately instead of waiting for command discovery. v0.208.1 bills GPT and Grok models at 60% off for a limited time, with the discount shown in the model selector
- v0.206.0 (2026-08-28) made the CLI start up faster and applies project guidance when searching or listing files outside the current repository, and fixed reconnections on long-running sessions, hangs when archiving, renaming, or selecting sessions, and cancelling your first message. v0.205.0 (2026-08-26) starts a fresh session when you switch organizations, and v0.204.0 (2026-08-25) fixed repeated MCP reconnect prompts, state restoration on resumed sessions, and responses hanging after they finish. v0.207 is skipped in the changelog
- A full re-check of the official docs (cli-reference and settings) added /archive (archive the current session and restore it from the Archived tab in /sessions), listed in the slash command table (177 to 178 items). No CLI commands, flags, shortcuts, or settings were added, removed, or changed
CLI commands
droid
Examples
droidStart an interactive sessiondroid "query"
Examples
droid "Explain the structure of this repo"Launch with a first instructiondroid --resume
Key points
- Omitting the session ID resumes the most recently modified session
- The short form is -r; in droid exec, -r means --reasoning-effort instead
Examples
droid --resumeResume the most recent sessiondroid --resume session-abc123Resume a specific session by IDdroid --fork <id>
Key points
- The original session stays intact, so you can try another approach from the same context
- Session IDs can be looked up with /sessions or droid search
Examples
droid --fork session-abc123Fork the given session and resume the copydroid exec "task"
Key points
- --auto low|medium|high sets the autonomy level
- -o, --output-format selects text/json/stream-json
- -s, --session-id resumes an existing session
Examples
droid exec "Fix the failing tests"Run a task without the TUIdroid exec --auto medium "Update the README"Run with medium autonomydroid exec -f prompt.md
Examples
droid exec -f prompt.mdRun the contents of prompt.md as a taskcat file | droid exec
Examples
git diff | droid exec "Draft release notes"Feed a diff and generate release notesdroid exec --list-tools
droid exec -s <id> "query"
Key points
- -s, --session-id takes the ID of the session to resume
- Session IDs are printed by droid exec and can be looked up with droid search
Examples
droid exec -s abc123 "Continue with the remaining tests"Pick up a previous session and run another taskdroid search "query"
Key points
- --kind filters entry types (message_text/document/tool_use/tool_result/all)
- --limit-sessions / --limit-hits cap the number of results
- --context-chars sets the surrounding characters shown per hit
- --json outputs JSON, --reindex rebuilds the search index
Examples
droid search "auth bug"Search past sessions by keyworddroid mcp add
Key points
- --type sets the transport (http/sse/stdio)
- --env KEY=VALUE sets env vars for stdio servers (repeatable)
- --header adds HTTP headers for remote servers (repeatable)
Examples
droid mcp add linear https://mcp.linear.app/sse --type sseAdd an MCP server over SSEdroid mcp remove
Examples
droid mcp remove linearRemove an MCP serverdroid plugin install
Key points
- -s, --scope user|project sets the install scope
droid plugin uninstall
droid plugin update
droid plugin list
droid plugin marketplace
droid computer register
Key points
- -y, --yes skips interactive prompts
droid computer remove
droid computer list
droid computer ssh
droid computer port-forward
Examples
droid computer port-forward 3000Forward local port 3000 to the computerdroid daemon
droid update
Key points
- -c, --check only checks whether an update is available (does not apply)
- -v, --version updates to the specified version
Examples
droid updateUpdate the CLI to the latest releaseCLI flags
-f, --file
-m, --model
Examples
droid -m gpt-5-codexLaunch with a specific model-s, --session-id
--auto
Key points
- low: auto-approve safe edits only
- medium: auto-approve typical development work
- high: auto-approve broad operations including deployment
Examples
droid exec --auto medium "Update dependencies"Run non-interactively with medium autonomy--restrict-tools
--additional-tools
--disable-builtin-skills
--disabled-tools
--list-tools
-o, --output-format
--input-format
-r, --resume
Examples
droid --resumeResume the most recent session-r, --reasoning-effort
--spec-model
--spec-reasoning-effort
--use-spec
--skip-permissions-unsafe
--cwd
-w, --worktree
Examples
droid -w feature-login "Implement the login feature"Work in an isolated worktree--tag
--log-group-id
--fork
--mission
--worker-model
--worker-reasoning-effort
--validator-model
--validator-reasoning-effort
--append-system-prompt
--append-system-prompt-file
-v, --version
-h, --help
Slash commands
/help
/model
/settings
/sessions
/new
/clear
/compress
/context
/cost
/stats
/status
/review
/mcp
/skills
/create-skill
/droids
/missions
/fast
/btw
/copy
/fork
/rename
/favorite
/archive
/rewind-conversation
/tree
/cwd
/cd
/commands
/hooks
/plugins
/ide
/language
/themes
/statusline
/terminal-setup
/diagnostics
/limits
/login
/logout
/account
/billing
/share
/install-code-review
/install-slack-app
/setup-incident-response
/readiness-report
/readiness-fix
/bug
/quit
Shortcuts
Settings
~/.factory/settings.json
settings.local.json
model
Examples
"model": "claude-sonnet-4-6"Example entry in settings.jsonreasoningEffort
sessionDefaultSettings.autonomyLevel
sessionDefaultSettings.interactionMode
sessionDefaultSettings.specModeModel
sessionDefaultSettings.specModeReasoningEffort
commandAllowlist
commandDenylist
commandBlocklist
theme
diffMode
cloudSessionSync
wikiCloudSync
enableDroidShield
completionSound
awaitingInputSound
soundFocusMode
includeCoAuthoredByDroid
hooksDisabled
disabledSkills
ideAutoConnect
showThinkingInMainView
customModels
toolResultDisplay
showTokenUsageIndicator
logoAnimation
overrideTerminalColors
nerdFont
statusLine
worktreeDirectory
llmRequestTimeout
specSaveDir
subagentSounds
blockOnMcpLoad
Key points
- Set to true so the agent only starts once every MCP server has finished loading, avoiding missed tools
- false (the default) starts without waiting, which is faster but may leave MCP tools unregistered on the first turn
Examples
"blockOnMcpLoad": trueWait for MCP servers to load before starting a turntodoDisplayMode
completionSoundFocusMode
awaitingInputSoundFocusMode
showHookOutput
remoteAccessEnabled
Version history
Droid CLI versions used to verify the data on this page, with their main changes.
- Verified against v0.209.0 (2026-09-01). You can now archive the current session from chat with /archive or Ctrl+X and restore it from the Archived tab in /sessions (both are already listed here). Sessions with no model selected now default to GPT-5.6 Sol, and the CLI starts on time when organization settings load slowly, applying them once they arrive
- Bug fixes: text selected in a diff no longer clears when the session sidebar updates, and the environment panel stays visible while repository details load or refresh. Opening a file link now centers the target line (all app-side), and running out of credits suggests an available Droid Core model instead of a retired one
- A full re-check of the official docs (cli-reference and settings) found no CLI commands, flags, slash commands, shortcuts, or settings added, removed, or changed (still 178 items listed)
- Verified against v0.208.1 (2026-08-29). In v0.208.0, organization owners can require people on verified email domains to join by invitation instead of creating a new organization. Screenshots, diagrams, and tables keep fine detail when Droid resizes images, /new and /clear show progress while the next session is created, You.com joined the MCP server registry, and built-in slash commands run immediately instead of waiting for command discovery. v0.208.1 bills GPT and Grok models at 60% off for a limited time, with the discount shown in the model selector
- v0.206.0 (2026-08-28) made the CLI start up faster and applies project guidance when searching or listing files outside the current repository, and fixed reconnections on long-running sessions, hangs when archiving, renaming, or selecting sessions, and cancelling your first message. v0.205.0 (2026-08-26) starts a fresh session when you switch organizations, and v0.204.0 (2026-08-25) fixed repeated MCP reconnect prompts, state restoration on resumed sessions, and responses hanging after they finish. v0.207 is skipped in the changelog
- A full re-check of the official docs (cli-reference and settings) added /archive (archive the current session and restore it from the Archived tab in /sessions), listed in the slash command table (177 to 178 items). No CLI commands, flags, shortcuts, or settings were added, removed, or changed
- Verified against v0.203.0 (2026-08-25). A queued or pending steering message can now be moved back into the composer to change its text or attachments before it is sent, and turning on or shortening session retention warns you that sessions past the limit are permanently deleted before you save. A skill command can now start after other text in a request, and text beginning with an unmatched slash submits normally instead of being blocked
- v0.202.0 (2026-08-21) made the CLI start up faster and let org admins turn off image generation for the whole organization. Lifecycle hooks run again instead of being skipped, a damaged local plugin cache repairs itself, and Simplified Chinese text in the interface is translated correctly. v0.200.0 (2026-08-20) asks before changing your working tree after a failed Git pull, loads file search tooling only when it is needed so sessions start sooner, reports real process IDs for background commands, and keeps MCP server connections authenticated across reconnects. v0.201 is skipped in the changelog
- A full re-check of the official docs (cli-reference and settings) added droid --resume (resume a previous session) and droid --fork (fork a session and resume the copy), both listed as their own rows in the CLI commands table (175 to 177 items). No CLI flags, slash commands, shortcuts, or settings were added, removed, or changed
- Verified against v0.199.0 (2026-08-18). The TypeScript SDK can now set a custom system prompt for a session, and the built-in Explorer droid can use all read-only tools. Question prompts gained keyboard controls (Space/number keys to select, Tab to move between questions), diagrams render with the official Mermaid engine, and rendering is faster for long sessions and streaming output
- v0.198.0 (2026-08-17) added automatic line wrapping for long diff lines and a clearer explanation when a model returns an empty response, and fixed diff search scrolling, model selector focus retention, empty draft sessions piling up, and mission handling after machine sleep
- A full re-check of the official docs (cli-reference and settings) found no additions, removals, or changes to CLI commands, flags, slash commands, shortcuts, or settings (175 items unchanged)
- Verified against v0.197.0 (2026-08-15). Moving between choices in question and permission prompts no longer jumps to whichever item the mouse cursor happens to sit on
- In v0.196.0, forking a session now keeps you in the original session and shows a resume command for opening the copy. Context added by a SessionStart hook is kept for the rest of the session instead of being discarded, and credit usage for Grok 4.5 and GPT-5.3-Codex fast mode is now counted at the correct rate
- A full re-check of the official docs (cli-reference and settings) added droid exec -s, which resumes an existing session in exec mode (174 to 175 items). No CLI flags, slash commands, shortcuts, or settings were added, removed, or changed
- Verified against v0.195.0 (2026-08-13). Escape now asks for confirmation before interrupting a run, sidebar stability improved, and fixes landed for text selection breaking after a panel resize, recent sessions missing from the sidebar, repeated polling tool calls, and plugin file watcher management
- v0.194.0 (2026-08-12) let sessions fetch their own messages directly through the TypeScript SDK and added a spec mode helper for SDK users (both SDK-side features, outside this CLI reference). It also fixed garbled pinned mission proposals, delayed custom model credential errors, line breaks lost when copying text, and the idle todo spinner
- A full re-check of the official docs (cli-reference and settings) added the slash command /cd, an alias for /cwd (173 to 174 items). No CLI commands, flags, shortcuts, or settings were added, removed, or changed
- Verified against v0.193.0 (2026-08-11). Session history search is faster, and fixes landed for turns stalling on repeated identical tool calls, lowercase proxy variables (https_proxy and friends) being ignored, the credit usage chart counting daily totals on the wrong day, and diffs that failed to load retrying forever
- MiniMax M2.5 was deprecated and dropped from the model options. v0.191 and v0.192 are skipped in the changelog; v0.193.0 is the release right after v0.190.0
- A full re-check of the official docs (cli-reference and settings) found no added, removed, or changed CLI commands, flags, slash commands, shortcuts, or settings (still 173 items)
- Verified against v0.190.0 (2026-08-07). Droid now uses your HTTPS_PROXY setting so sessions work behind a corporate proxy, the Auto model upgrades to Claude Opus 5 when a task needs it, and the install-qa skill can set up automated QA on GitLab CI
- v0.187.0 through v0.189.0 were mostly bug fixes: a failing custom status line now names the problem and points to /statusline, custom models that get their key from a helper command start up, turns that end with an empty response finish successfully, PDF attachments fall back to extracted text, and skills with broken symlinks are skipped instead of blocking the rest
- No upstream additions, removals, or changes to CLI commands, flags, slash commands, shortcuts, or settings. Separately, the mcp.callTimeoutMs setting was dropped from this page because it no longer appears in the official docs (174 to 173 items)
- Verified against v0.186.0 (2026-07-31). Improved recognition of self-hosted Git remotes (GitHub Enterprise/GitLab) and fixed transcript slowdowns during long streaming responses; links in tmux are now clickable
- Fixed the command denylist wrongly blocking related commands, and a table scrollbar overlapping content
- A full re-check of the official docs found /tree (browse the fork tree), Ctrl+F (open the fork tree from the /sessions list), and disabledSkills (disable specific skills) added since the docs were last fully audited. The approval-details-view shortcut changed from Ctrl+E to Alt+E (Option+E on macOS) (171 → 174 items)
- Verified against v0.185.0 (2026-07-30). You can now set a connection timeout per MCP server
- Fixed approval prompts becoming unresponsive, Spec mode message colors being lost on re-render and session resume, and sign-in and MCP authorization completing in a different window from the one that started it
- No new, removed, or changed CLI commands, flags, slash commands, shortcuts, or settings (still 171 items; v0.184.x is skipped in the changelog)
- Verified against v0.183.0 (2026-07-29). Agents can now ask multi-select questions, and file previews can be toggled to full screen
- Improved how MCP tool details are shown in the transcript, and added attachment previews when queueing a message
- Added the todoDisplayMode, completionSoundFocusMode, awaitingInputSoundFocusMode, showHookOutput, and remoteAccessEnabled settings, bringing the list to 171 items. No changes to CLI commands, flags, slash commands, or shortcuts
- Verified against v0.182.0 (2026-07-28). Added a scope filter to audit logs and the ability to delete users from the admin console
- You can now copy images with a right click, and artifact previews show thumbnails
- Consolidated the several cron tools into a single loop tool
- Verified against v0.181.0 (2026-07-27). Slash commands can now be used while an agent is running
- Added a resource override (the resource field) to MCP OAuth configuration
- Bug fixes: retry when the Git index is locked, and corrected computer scoping for BYOK models
- Verified against v0.180.0 (2026-07-24). Added Gemini 3.6 Flash to the model selector, and you can now turn off Factory-provided built-in skills from the app
- Redesigned the keyboard shortcuts help dialog to be easier to scan, and tuned agent turns to wait for MCP servers to finish loading. Session search now runs server-side and supports looking up a session by its ID, and MCP server authentication is unified with the CLI flow
- Bug fixes: spec proposals now keep chronological order in the transcript, and cards no longer show a broken image when the desktop app fails to load one. No changes to CLI commands, flags, slash commands, shortcuts, or settings (still 166 items)
- Verified against v0.179.0 (2026-07-23). Strengthened isolation of processes running inside the command sandbox and hardened macOS releases against code injection
- Fixed the mission proposal body repeating during approval, added graceful back-off when a model is temporarily at capacity, and fixed long voice dictations being cut off, streamed visualization flicker, the composer autonomy chip width, and GitHub Enterprise Server repository scoping
- Added the blockOnMcpLoad setting (wait for MCP servers to finish loading before starting an agent turn), bringing the list to 166 items. No changes to CLI commands, flags, slash commands, or shortcuts
- v0.178.0 (2026-07-22) added a new setting that keeps your machine awake during agent runs, so long tasks are no longer interrupted by sleep
- The CLI and desktop now trust your system's certificates at startup, improving connectivity in environments with custom certificate authorities
- Fixed autonomy upgrades not applying to MCP tool confirmations, improved the reliability of MCP OAuth sign-in, kept hook metadata on a single row, and made invitations respect your organization's verified domains
- Verified against v0.177.0 (2026-07-21). Added the ability to open artifacts in an external editor, switched code blocks to Geist Mono, and added support for sending attachment-only messages
- Fixed several bugs around the approval-details toggle, transcript re-rendering, and session handling
- No new, removed, or changed CLI commands, flags, slash commands, shortcuts, or settings (165 items listed, unchanged — verification update only)
- Verified against v0.176.0 (2026-07-20). Added the --disable-builtin-skills flag (disables Factory's built-in skills) and native Windows ARM64 builds
- --enabled-tools was removed from the official reference and replaced by --restrict-tools (limit to the specified tools) and --additional-tools (force-enable tools off by default). Newly added droid computer port-forward, the wikiCloudSync setting, and Spec Mode sessionDefaultSettings keys (165 items listed)
- Added admin usage-limit alert emails, a fix for session history corruption on tool cancellation, and automatic retries when a model is unavailable
- Verified against v0.175.0 (2026-07-17). Added automatic previews for generated files and task-ID prefixes for TaskOutput/TaskStop
- Fixed /btw mid-stream handling, model-setting persistence, and wiki share links
- No new, removed, or changed CLI commands, flags, slash commands, shortcuts, or settings (v0.174.x is skipped in the changelog)
- Verified against v0.173.0 (2026-07-15). v0.172.0 added a mission side panel and v0.173.0 added per-skill disabling with cross-scope settings resolution — mostly app/UI improvements and bug fixes (/clear now preserves the model, MCP sign-in silently refreshes tokens)
- No new, removed, or changed CLI commands, flags, slash commands, shortcuts, or settings (159 items listed, unchanged)
- Found the /wiki slash command and wikiCloudSync setting on the AutoWiki feature docs, but they're still not listed on the aggregator reference pages (cli-reference / settings), so they remain excluded from this page for now
- Verified against v0.171.0 (2026-07-13). Context usage now displays immediately on session resume, and the Windows installer detects native architecture. Bug fixes for MCP connection timeouts and theme detection over SSH
- Added
subagentSounds, a new setting under "Additional sound and notification settings" for subagent lifecycle event sounds (159 items listed) - The droid computer port-forward command is still not documented on the official CLI reference, so it remains excluded from this page
- Verified against v0.167.0 (2026-07-07). Faster startup via parallel boot phases, full-screen help (dismiss with
?/Esc), and clearer category grouping in the slash menu - The changelog announced a new droid computer port-forward command, but it isn't documented on the official CLI reference yet, so it isn't included on this page yet (pending a docs update)
- Re-verification found droid mcp list is no longer documented anywhere in the official docs, so it was removed (158 items listed). The mcp CLI subcommands are now just add/remove
- Verified against v0.164.0 (2026-07-02). No new commands, flags, slash commands, or shortcuts were added, so the 159 listed items are unchanged
- Added a setting to control cloud sync (covered by
cloudSessionSync, already listed here), and a UI improvement that groups slash commands by category - Bug fixes: MCP tool names may contain dots,
droid execbackground processes persist after exit, and$EDITORis honored for allow/deny list editing on headless systems
- Latest stable release, verified with v0.162.0. Significantly expanded the settings.json reference with new sound, display, mission, and infrastructure keys
- Removed the blog feature (the /generate_blog command and the Ctrl+P blog viewer toggle) from this page, since Factory removed it from Droid
- Added a hooks manager overhaul, in-transcript chat search, and clearer MCP authentication error messages (v0.151.0–v0.161.0)
- Stable release, verified with v0.150.0. Every command, flag, and shortcut on this page was checked against the official docs for this version
- Added droid mcp list to show MCP connection and authentication status (v0.148.0), and the commandBlocklist setting to permanently block specified commands (v0.147.0)
- Added the Ctrl+Enter shortcut to queue messages (v0.146.0), plus npm plugin sources and a desktop quit confirmation
- Stable release, verified with v0.144.1. Every command, flag, and shortcut on this page is checked against the official docs for this version
- Added related-file suggestions at session start
- Hardened handling of destructive worktree commands and improved MCP reliability
- Maintenance release focused on routine upkeep and internal stability improvements
About this Factory Droid CLI cheat sheet
Droid by Factory is an AI coding agent that runs in your terminal. It stands out for fine-grained autonomy levels, plan-first execution with Spec Mode, and multi-agent runs with Mission Mode. This page is a cheat sheet of 178 items — CLI commands, flags, slash commands, keyboard shortcuts, and settings — verified against the official documentation for v0.209.0.
Features
- 178 items across 5 categories: CLI commands, flags, slash commands, shortcuts, and settings
- Full-text search across command names, descriptions, and examples
- Category filters to switch between terminal commands and in-TUI operations
- One-click copy so you can paste commands straight into your terminal
- Verified version and update history shown on the page (v0.209.0 / September 2026)
Use cases
- Look up droid exec options for CI and scripted automation
- Check the differences between --auto low, medium, and high
- Find slash commands and shortcuts while inside a TUI session
- Reference the main settings.json keys with examples
FAQ
What is the Droid CLI?
Droid is a terminal AI coding agent by Factory. Besides the interactive TUI, it supports non-interactive runs with droid exec for CI and automation, parallel work via git worktrees, and MCP server integrations.
What is the difference between --auto low, medium, and high?
Autonomy levels control what Droid may do without asking. The default is read-focused; low auto-approves safe edits only, medium covers typical development work, and high extends to broad operations such as deployment. Higher levels mean fewer prompts but more risk, so pick per task.
What are Spec Mode and Mission Mode?
Spec Mode (--use-spec) plans the work as a spec before executing. Mission Mode (--mission or /missions) is multi-agent execution where worker and validator agents split the task. Press Shift+Tab to cycle modes.
How do I install the Droid CLI?
Install it with the official script from factory.ai and keep it current with droid update. On first launch, sign in to your Factory account with /login.
Which version does this cheat sheet cover?
Droid CLI v0.209.x, tested with v0.209.0 in September 2026. Every command listed here is checked against the official docs at docs.factory.ai.
How does Droid differ from Claude Code or Codex CLI?
All three are terminal AI coding agents. Droid emphasizes fine-grained autonomy control and enterprise features such as session sharing, Slack integration, and automated code review, and lets you switch between models from multiple providers.
Where are settings stored?
In ~/.factory/settings.json on macOS/Linux and %USERPROFILE%\.factory\settings.json on Windows. A settings.local.json in the same directory provides local overrides.
Can keyboard shortcuts be customized?
This page lists the default key bindings. Newlines via Shift+Enter may require terminal-side configuration through /terminal-setup.