LinuxCommandLibrary

droid

Start an interactive session

TLDR

Start an interactive session

$ droid
copy
Execute a single prompt non-interactively
$ droid exec "[analyze this code and fix bugs]"
copy
Run with high autonomy for full automation
$ droid exec --auto high "[fix bug, test, commit, and push]"
copy
Read prompt from a file
$ droid exec -f [prompt.txt]
copy
Use a specific model
$ droid exec -m [claude-3-opus] "[your prompt]"
copy
Get JSON output for scripting
$ droid exec -o json "[your prompt]"
copy
Continue an existing session
$ droid exec -s [session_id] "[continue the task]"
copy

SYNOPSIS

droid [options] [command]

DESCRIPTION

Droid is Factory.ai's enterprise-grade AI coding agent for the terminal. It handles end-to-end development workflows including code analysis, feature implementation, bug fixing, code review, and automated testing.
By default, Droid runs in spec-mode where the agent only executes read-only operations. Use --auto to enable edits and command execution with configurable risk tiers. The tool supports custom sub-agents (Custom Droids) defined in .factory/droids/ as markdown files with YAML frontmatter.
Droid achieves state-of-the-art performance on Terminal-Bench benchmarks, outperforming other CLI agents. It provides a professional trial plan with access to Claude and OpenAI models upon account creation.

PARAMETERS

-v, --version

Output the version number
-h, --help
Display help for command

EXEC OPTIONS

-o, --output-format FORMAT

Output format (default: text)
--input-format FORMAT
Input format: stream-json for multi-turn sessions
-f, --file PATH
Read prompt from file
--auto LEVEL
Autonomy level: low, medium, or high
--skip-permissions-unsafe
Skip ALL permission checks (dangerous)
-s, --session-id ID
Continue an existing session
-m, --model ID
Model ID to use
-r, --reasoning-effort LEVEL
Reasoning effort level
--use-spec
Start in spec mode (read-only operations)
--enabled-tools IDS
Enable specific tools

CAVEATS

Requires Factory.ai account authentication. The --skip-permissions-unsafe flag allows all operations without confirmation and should only be used in isolated environments like Docker containers. High autonomy mode (--auto high) can make destructive changes.

HISTORY

Droid was developed by Factory.ai as an enterprise AI coding agent. It has achieved leading performance on Terminal-Bench with a score of 58.75% using Opus, surpassing other CLI agents including Claude Code and Codex CLI.

SEE ALSO

claude(1), codex(1), aider(1), opencode(1)

Copied to clipboard