← 返回命令列表

Linux command

droid 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start an interactive session

droid

Execute a single prompt non-interactively

droid exec "[analyze this code and fix bugs]"

Run with high autonomy for full automation

droid exec --auto high "[fix bug, test, commit, and push]"

Read prompt from a file

droid exec -f [prompt.txt]

Use a specific model

droid exec -m [claude-3-opus] "[your prompt]"

Get JSON output for scripting

droid exec -o json "[your prompt]"

Continue an existing session

droid exec -s [session_id] "[continue the task]"

说明

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.

参数

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

FAQ

What is the droid command used for?

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.

How do I run a basic droid example?

Run `droid` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --version do in droid?

Output the version number