Factory Droid: install, sign in, plans and droid exec
Factory's Droid CLI as of November 30, 2026: install, signing in over SSH or with FACTORY_API_KEY, plans and credits, your own keys, autonomy levels, droid exec.
Droid is Factory’s coding agent, a closed-source droid command for the terminal (also in Factory’s web and desktop apps, Slack/Teams, Linear/Jira and mobile). Install it with npm install -g droid (Node.js 20+) or Factory’s install script; both served version 1.23.0 on November 30, 2026. The free plan brings your own models (sign in with ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway, or add API keys); Pro, Plus and Max use Factory’s models under rolling usage limits. On a server, set FACTORY_API_KEY and no browser is needed. droid exec runs one task headless, read-only unless you add --auto. The catch: session transcripts sync to Factory by default, and a November 20 release note says plans outside Enterprise can no longer turn that off, while the settings reference still lists the switch.
What Droid is, and what Factory is
Factory describes itself in its GitHub README as “The agent-native development platform. Works across CLI, Web, Slack/Teams, Linear/Jira and Mobile.” Droid is the agent inside all of those, and the CLI is the part most searchers mean: a terminal agent in the same family as Claude Code and Codex that reads the repository, edits files and runs commands, gated by an autonomy level you set.
It is not open source. The README ends “All rights reserved”, and the GitHub repository holds docs and configuration rather than the CLI’s code; the npm package installs prebuilt binaries. It moves quickly: the release notes list six CLI versions between November 21 and 25, 2026, and the numbering went from 0.2xx in September to 1.x in November.
Install the droid CLI
npm install -g droid # any OS, Node.js 20+
brew install --cask droid # Homebrew
curl -fsSL https://app.factory.ai/cli | sh # macOS and Linux script
irm https://app.factory.ai/cli/windows | iex # Windows PowerShellCopiedThe npm package is called plain droid, not a scoped name. Its postinstall step pulls the matching prebuilt binary from one of the @factory/cli-* platform packages. A permissions error on the global install is npm’s, covered in the npm install -g guide.
The piped installer runs whatever that URL serves at the moment you run it. As read on November 30, the script downloads the version 1.23.0 binary from downloads.factory.ai, checks it against a published SHA-256, and puts it at ~/.local/bin/droid without sudo. On x64 processors without AVX2 it picks a “baseline” build. It does not edit your shell files: if ~/.local/bin is not on your PATH, it prints the export line for you to add.
Three things matter on Linux. Factory’s docs say the CLI “needs a glibc-based Linux image, such as Debian or Ubuntu. It doesn’t run on Alpine.” The quickstart asks for xdg-utils (sudo apt-get install xdg-utils). And the two routes update differently: the standalone install updates itself, while the npm build “ships with automatic updates turned off.” To pin a standalone install, set FACTORY_DROID_AUTO_UPDATE_ENABLED=false; to update it by hand, droid update. On an npm install, droid update reports that auto-update is unavailable, so update through npm.
Signing in on a remote server over SSH
On a laptop, the first droid run (or /login inside a session) signs you in through the browser. Over SSH there is no browser on the server. The release notes for 1.16.0 (November 20, 2026) say “The login screen now shows a clickable link that carries your device code”, which means a link you can open on another device; the docs do not describe the flow beyond that, or where the sign-in is stored.
The documented route for a machine without a browser is an API key. Make one in Factory’s settings (keys start fk-) and give it to Droid as FACTORY_API_KEY; Factory’s guide to locked-down environments says a headless job run with the key “needs no browser, interactive login or preconfigured user settings file.” The CLI reference names the same variable as the alternative to /login. For one shell session, read it without echo:
read -rs FACTORY_API_KEY && export FACTORY_API_KEYCopiedTo keep it across logins without putting it in your shell history, store it in a file only you can read and load that file from ~/.bashrc:
read -rsp 'Factory API key: ' k; echo
(umask 077; printf 'export FACTORY_API_KEY=%s\n' "$k" > ~/.droid-env); unset k # overwrites ~/.droid-env
echo '[ -f ~/.droid-env ] && . ~/.droid-env' >> ~/.bashrcCopiedA wrong key fails fast: since June the CLI “exits with an error on an invalid FACTORY_API_KEY instead of stalling at login.” An interactive session ends when the SSH connection drops, so start droid inside tmux to come back to it.
Plans, credits and usage limits
Factory’s plan documentation, read November 30, 2026, splits the plans by where the models come from:
| Plan | Models | Usage |
|---|---|---|
Free | Your own: sign in with ChatGPT, GitHub Copilot, OpenRouter or Vercel AI Gateway, or connect API keys or a custom endpoint | Whatever your provider charges or allows |
Pro, Plus, Max | Factory Managed Inference | Rolling limits over 5 hours, 7 days and 30 days, each running independently |
Teams | As Pro, up to 10 seats, central billing | Each seat gets Pro’s limits |
Business, Enterprise | By contract | Custom limits shared across the workspace |
Managed usage is counted in Factory Standard Credits, and each model draws them at its own multiplier on the models page: on November 30, gpt-5.4 at 1×, claude-opus-5-5 at 1.6×, claude-sonnet-5-5 at 0.8× and glm-5.3 at 0.56×. Gemini 4 Carbon and Gemini 4 Argon bill at a promotional 0.8× through December 1, 2026, then return to 1.6×. A plan’s standard usage does not roll over month to month; extra usage is bought as prepaid credits that do not expire and do roll over. The docs do not list plan prices.
Bring your own key, and which models
Your own models go in ~/.factory/settings.json under customModels. The BYOK page gives this shape, with the key read from an environment variable rather than written into the file:
{
"customModels": [
{
"model": "your-model-id",
"displayName": "My Custom Model",
"baseUrl": "https://api.provider.com/v1",
"apiKey": "${PROVIDER_API_KEY}",
"provider": "generic-chat-completion-api",
"maxOutputTokens": 16384
}
]
}Copiedprovider is one of anthropic, openai, generic-chat-completion-api (the OpenAI chat format, which the docs name for OpenRouter, Ollama, vLLM and most open-source providers) or bedrock-converse. Factory says “Your API keys remain local and are not uploaded to Factory servers.” Pick the model with /model in a session or -m with droid exec.
A Claude subscription is not one of the routes. Factory’s Anthropic linked billing connects a Claude Console (API) organization and states that “Claude Pro, Max, Team, and Enterprise subscriptions, credit-only accounts, and promotional accounts are not eligible.” What Anthropic itself says about subscriptions in other tools is set out in using a Claude subscription in third-party agents.
Autonomy levels and --skip-permissions-unsafe
Every command Droid wants to run carries a risk rating, and the autonomy level decides what runs without asking. From the auto-run docs:
| Level | Runs without asking |
|---|---|
Off | Reads and read-only commands such as ls and git status |
Low | File edits plus low-risk commands and MCP tools |
Medium | Low, plus reversible workspace changes, pushes and pull requests (npm install, git push, gh pr create) |
High | High-risk actions such as docker compose up, migrations and custom scripts, unless a safety check asks |
Ctrl+L cycles the levels and /settings sets the default for new sessions. What that default is, Factory’s own pages disagree: the settings reference lists off, while the release notes for CLI 0.223.0 and Desktop 0.180.0 (September 19, 2026) say “Sessions now default to medium autonomy instead of off when you have not chosen one”, an item marked there as an app change. Medium includes git push, so check the level before the first task in a repository that matters.
--skip-permissions-unsafe skips every prompt; command block rules still apply. Factory’s warning:
Only use it in completely isolated environments such as Docker containers, throwaway VMs, or ephemeral CI runners that are destroyed after the job.CopiedThe docs also note that “Command rules are not operating-system isolation.” On a server, run Droid as an ordinary user, never root.
droid exec: headless runs
droid exec runs one task and exits, for scripts, cron and CI. It is read-only by default; --auto opens it up by risk tier. From the droid exec docs:
droid exec "analyze code quality" # read-only
droid exec "fix the bug in src/main.js" --auto low # may edit files
droid exec -f prompt.md -o json # prompt from a file, one JSON object out
echo "summarize repo structure" | droid exec
droid exec --session-id <session-id> "continue with next steps"Copied| Flag | What it does |
|---|---|
--auto low|medium|high | Edits and commands up to that risk |
--skip-permissions-unsafe | No prompts at all; cannot be combined with --auto |
-o, --output-format | text (default), json, stream-json, stream-jsonrpc, acp |
-m, --model | Model ID |
-r, --reasoning-effort | Reasoning effort (defaults per model) |
-f, --file | Read the prompt from a file |
-s, --session-id | Continue an earlier session |
--cwd | Working directory |
-w, --worktree | Run in a git worktree |
Three behaviours catch scripts. Exit code 0 “means Droid finished, not that the task succeeded”, so check the result yourself. If Droid reaches an action above its level, the run stops there and exits non-zero, and earlier edits stay in the working tree. And droid exec does not ask for folder trust: an untrusted folder does not stop it from running the repository’s project hooks, so point --cwd only at code you trust. Factory also warns “Don’t rely on --auto medium to prevent pushes.” The shape will be familiar from codex exec.
Settings files and AGENTS.md
Your settings live in ~/.factory/settings.json, created with defaults on the first run; a settings.local.json in ~/.factory/ or a project’s .factory/ folder merges on top of the settings.json at that level. Defaults worth knowing: Droid Shield (secret scanning and git guardrails) is on, and commits get a Droid co-author line (includeCoAuthoredByDroid).
For instructions, Droid reads AGENTS.md, and accepts CLAUDE.md under the same rules, so a repository set up for Claude Code works as it is. It searches from the working directory up to the git root, checking each folder and its .factory/, .agents/ and .agent/ subfolders; personal defaults go in ~/.factory/. The first load is capped at 80,000 characters. More on the format in what AGENTS.md is.
What Factory keeps
Factory’s privacy and data flows page says Droid “does not upload or index your codebase into a remote datastore”. Session transcripts are another matter: with cloud session sync on, which is the default, every CLI session is mirrored to Factory’s web app, and transcripts hold your prompts, the replies and tool results such as file contents.
The settings reference says "cloudSessionSync": false keeps sessions on your machine unless your organization’s policy has locked the setting, and the session data page says a session tagged local-only when it is created is left out of sync. The release notes for 1.16.0 (November 20, 2026) say otherwise for most people:
Plans outside Enterprise can no longer turn session contents sync off, and the setting reads as lockedCopiedWith your own model endpoint, Factory’s usage reports carry “token counts, the model name, and the gateway URL but not the prompt”; transcripts still sync as above. Setting telemetry.enabled to false in your settings stops product logs, traces and metrics, not model, sign-in or billing requests. The docs leave retention to Factory’s Trust Center and do not say whether transcripts are used for training.
Droid among the other terminal agents
What sets Droid apart from a model maker’s own agent is the model list: one managed plan spans Anthropic, OpenAI, Google, xAI and open models, and the free plan runs entirely on models you bring, a ChatGPT or Copilot sign-in included. What it asks in return is the transcript sync above. The Claude Code alternatives guide sets the field side by side; Devin vs Claude Code compares another agent sold the same way, and choosing a VPS for a coding agent covers the glibc Linux machine Droid needs to run unattended.