# Factory Droid

> Factory's coding agent: the droid CLI runs it in your terminal with approvals, MCP tools and a headless exec mode, on the same runtime as Factory's desktop and web apps. Run it in EnvHaven from any browser, signed in once with your own account, and keep it working 24/7; or install it on your own machine.

_Updated November 23, 2026 · Checked against Factory Droid 0.249.0 in EnvHaven v1.9.0_

| At a glance |  |
| --- | --- |
| Made by | Factory |
| Command | `droid` |
| Version checked | 0.249.0, in EnvHaven v1.9.0 |
| Documentation | [docs.factory.com/droid-cli/overview](https://docs.factory.com/droid-cli/overview) |

## Use Factory Droid in EnvHaven

1. Open your workspace in any browser, on a laptop, a tablet or a phone.
2. Tap **Launch**, choose Factory Droid and tap **Sign in**: it starts Factory Droid, which asks you to sign in the first time. For an API key, choose **Set key** instead and paste `FACTORY_API_KEY`; the workspace keeps it write-only.
3. Start it with one tap: signed in, Factory Droid gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (0.249.0), so there is nothing to install or update.
4. Give it a task. Runs with the default autonomy; pick the level per run.
5. Close the tab whenever you like. The workspace is an always-on Linux machine, so Factory Droid keeps working, and every device you open it from shows the same session.

Every agent signs in with your own account: EnvHaven never resells tokens or adds a markup.

## Install Factory Droid on another machine

macOS, Linux:

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

Homebrew:

```bash
brew install --cask droid
```

## Sign in from the terminal

In a workspace the Launch menu does this for you. On any other machine, or when you would rather type it:

- Run `droid` and sign in in the browser; the login screen also shows a device code with a link.
- Or set `FACTORY_API_KEY` (keys start with `fk-`), which wins over a signed-in user on the same machine.
- Factory's Pro, Plus and Max plans include its managed inference; the Free plan works with your own ChatGPT, GitHub Copilot or OpenRouter sign-in, or your own API keys. CLI sessions sync to Factory's web app.

## Run Factory Droid without permission prompts

Scripted runs, every permission:

```bash
droid exec --skip-permissions-unsafe "<prompt>"
```

Highest tiered autonomy:

```bash
droid exec --auto high "<prompt>"
```

As the default, in ~/.factory/settings.json:

```json
{
  "sessionDefaultSettings": { "autonomyLevel": "high" }
}
```

`--skip-permissions-unsafe` skips every permission prompt (block rules still apply) and cannot be combined with `--auto`. High is not prompt-free: an ask rule in your permission rules still prompts, and a block rule refuses with no way to approve. Without `--auto`, `droid exec` runs read-only. In the interactive app, Ctrl+L cycles autonomy from Off to High.

**In EnvHaven:** Runs with the default autonomy; pick the level per run. The details, and when full access is safe, are on the [Factory Droid full-access page](https://envhaven.com/yolo/factory-droid).

## Instructions file

Factory Droid reads `AGENTS.md`, `CLAUDE.md`, `.factory/AGENTS.md`, `~/.factory/AGENTS.md`. Searched from the working directory up to the git root.

## Add MCP servers

```bash
droid mcp add <name> <command> [args...]
```

Add `--env KEY=VALUE` for variables and `--type http` for a remote server. Servers live in `~/.factory/mcp.json`.

The [MCP config converter](https://envhaven.com/mcp-config) writes the same server for every agent at once.

## Run it from scripts

```bash
droid exec --auto medium "<prompt>"
```

Headless runs cannot stop to ask, so they need the full-access setting above.

## Factory Droid away from your desk

Factory Droid keeps working only while the machine it runs on is awake. In EnvHaven that machine is the workspace, which never sleeps: start a task, close the laptop and check on it from a phone.

- [Factory Droid in the browser](https://envhaven.com/agents/factory-droid/browser)
- [Factory Droid on iPhone](https://envhaven.com/agents/factory-droid/iphone)
- [Factory Droid on iPad](https://envhaven.com/agents/factory-droid/ipad)
- [Factory Droid on Android](https://envhaven.com/agents/factory-droid/android)
- [Factory Droid on a Chromebook](https://envhaven.com/agents/factory-droid/chromebook)
- [Factory Droid on Windows](https://envhaven.com/agents/factory-droid/windows)
- [Factory Droid on a VPS](https://envhaven.com/agents/factory-droid/vps)
- [Factory Droid in Docker](https://envhaven.com/agents/factory-droid/docker)
- [Factory Droid on a Raspberry Pi](https://envhaven.com/agents/factory-droid/raspberry-pi)
- [Factory Droid 24/7](https://envhaven.com/agents/factory-droid/24-7)

Factory's own options:

- Remote Control (`droid daemon --remote-control`) connects your own machine through Factory's relay so sessions can be driven from the web.
- Tasks can be delegated to Droid from Slack, Linear, Jira, Microsoft Teams and Google Chat.

## Compare Factory Droid

- [Factory Droid vs Claude Code](https://envhaven.com/compare/factory-droid-vs-claude-code)
- [Factory Droid vs OpenCode](https://envhaven.com/compare/factory-droid-vs-opencode)

## When Factory Droid misbehaves

- [Factory Droid: Authentication failed. Please log in using /login](https://envhaven.com/errors/factory-droid/authentication-failed)
- [Is Factory Droid down?](https://envhaven.com/status/factory-droid) Live status of the providers it depends on.

## Keep reading

- [Factory Droid full-access mode](https://envhaven.com/yolo/factory-droid)
- [Factory Droid in the browser](https://envhaven.com/agents/factory-droid/browser)
- [Factory Droid on iPhone](https://envhaven.com/agents/factory-droid/iphone)
- [Factory Droid on iPad](https://envhaven.com/agents/factory-droid/ipad)
- [Factory Droid vs Claude Code](https://envhaven.com/compare/factory-droid-vs-claude-code)
- [Factory Droid vs OpenCode](https://envhaven.com/compare/factory-droid-vs-opencode)

Source: https://envhaven.com/agents/factory-droid
