MoleAPIMoleAPI
DocumentationCLI Usage

Factory Droid CLI

Factory Droid CLI tutorial — install and configure an AI software engineering assistant and connect to New API. Automate the full development workflow from planning to testing.

Project Overview

Droid CLI is a command-line tool developed by Factory AI, designed to run as an AI software engineering agent. It allows users to interact with various large language models through the terminal to build, debug, and refactor code, and even create complete applications.

Demo

droid.webp

Features

CategoryFeatureValue/CapabilityExample/Notes
Quick Start & CLIInstall in 30 seconds; start a droid interactive session in a project directory; supports macOS/Linux and WindowsQuickly connect to your current project without new toolsWindows install: irm https://app.factory.ai/cli/windows | iex; launch: droid
End-to-End Feature DevelopmentFull workflow automation from planning to implementation to testing; transparent review processImprove delivery speed while keeping humans in controlNative diff viewing and approval workflow (see "Transparency and Control")
Deep Codebase UnderstandingCombines shared organizational knowledge across codebases, documentation, and issue tracking; context-aware and improves over timeMore accurate suggestions and changesContinuously leverages knowledge across repositories and documentation
Engineering System IntegrationNative integrations with Jira, Notion, Slack, and more; keeps development work aligned with team workflowsReduce tool switching and information silos"And more" indicates additional integrations are available
Production-Grade AutomationWorkflows can be reused locally and in CI/CD; enterprise-grade security and compliance built inConsistency and auditabilitySuitable for pipelines and enterprise environments
Enterprise CapabilitiesPrivate deployment options, SOC-2 compliance, and air-gapped environmentsMeets security and compliance requirementsSecurity and quality first
Enhances Existing ToolsWorks in the terminal, IDE, and existing development environments; no need to switch editors or learn a new UIPreserve existing workflows with low migration costDeep integration with familiar tools
Transparency and ControlEvery decision is visible and reviewable; maintain full oversight of code changes; native diff viewing and approval workflowsReduce risk and improve controlReview-friendly and traceable
Model FlexibilityNo lock-in to a single AI provider; choose the best model for each task; organization-wide consistent behavior and memoryOptimize for both performance and costSupports multi-model routing
Next Steps & ResourcesQuickstart, Common Use Cases, IDE Integration, Configuration, AGENTS.mdEasier adoption and hands-on useSee the page section "Next steps/Additional resources"

AI Model Configuration

Windows Step-by-Step Guide

1. Open a terminal

windows_open_terminal

2. Install Factory Droid CLI

Official one-click install command:

One-Click Install Command

irm https://app.factory.ai/cli/windows | iex

windows-install

3. Modify the configuration file

To use a third-party API with Droid CLI, you need to modify the configuration file.

windows-configure.webp

Modify Environment Variables

iex (irm 'https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/factory-cli-setup.ps1')

4. Start using Droid CLI

You can now start using Droid CLI.

Launch Droid CLI

Launch Droid CLI directly:

droid

Use it in a specific project:

# Go to your project directory
cd C:\path\to\your\project

# Launch Droid CLI
droid

Press Enter to launch Droid CLI.

Droid CLI requires users to sign in with an official account (free) before it can be used.

5. Common Windows troubleshooting

permission denied error during installation

This is usually a permissions issue. Try the following solutions:

  • Run PowerShell as Administrator
  • Or configure npm to use the user directory: npm config set prefix %APPDATA%\npm

PowerShell execution policy error

If you encounter execution policy restrictions, run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

macOS/Linux Step-by-Step Guide

1. Install Droid CLI

Install Droid CLI

Open a terminal and run the following command:

curl -fsSL https://app.factory.ai/cli | sh

macos-open-terminal

macos-img-02.webp

Follow the installation prompt to modify environment variables (just copy the command shown in the installation prompt):

On Linux, choose either ~/.bashrc or ~/.zshrc as appropriate.

Droid CLI Environment Variables (Example Only)

echo 'export PATH=/Users/修改此处/.local/bin:$PATH' >> ~/.zshrc
source ~/.zshrc

2. Modify the configuration file

To use a third-party API with Droid CLI, you need to modify the configuration file.

One-click configuration file update

curl -fsSL https://raw.githubusercontent.com/QuantumNous/new-api-docs/refs/heads/main/helper/factory-cli-setup.sh | bash

macos-img-03.webp

3. Start using Droid CLI

You can now start using Droid CLI.

Launch Droid CLI

Launch Droid CLI directly:

droid

Use it in a specific project:

# Go to your project directory
cd /path/to/your/project

# Launch Droid CLI
droid

Press Enter to launch Droid CLI.

Droid CLI requires users to sign in with an official account (free) before it can be used.

How is this guide?

Last updated on

Back HomeGateway