---
title: Command line
description: "Install the executor command to run Executor locally on your machine, or sign in to a Self-host or Cloud Executor from a shell."
---

The `executor` command runs Executor on your machine (**Local**) for one person and also acts as a shell and stdio MCP client for **Local**, **Self-host**, and **Cloud** Executor hosts.

Install the beta release with `npm i -g executor@beta` (Node 14.18.0 or newer; a bare `npm i -g executor` installs v1.6.11 without apps), or use the install script or Homebrew without Node. Run `executor` to start the background server and open the local dashboard.

**Prerequisites:** macOS (Apple Silicon or Intel), Linux with glibc (ARM64 or x64) and system CA certificates installed, or Windows (x64). For npm, keep Node.js 14.18.0 or newer on `PATH` — the npm launcher uses Node to start Executor's bundled native runtime. The standalone installers and Homebrew run without a separate Node or Bun installation.

**You'll know it worked when** `executor --version` prints `executor v2.0.0-beta.79` and `executor` opens the dashboard in your browser (or, on a headless machine, prints a one-use connection link valid for five minutes).

## Install and start

With npm, on Node 14.18.0 or newer. The package is a launcher that downloads Executor's own runtime for your platform on first run, so Node only starts it. Check that executor --version prints 2.0.0-beta.79 before starting. Supports macOS on Apple Silicon and Intel, Linux (glibc) on ARM64 and x64, and Windows on x64.

```bash
npm i -g executor@beta
executor --version
executor
```

Without Node, on macOS or Linux: the script checks the download against the release's SHA256SUMS and links ~/.local/bin/executor.

```bash
curl -fsSL https://executor.sh/docs/install.sh | sh
executor --version
executor
```

Without Node, on Windows, in PowerShell:

```bash
irm https://executor.sh/docs/install.ps1 | iex
```

With Homebrew, on macOS or Linux:

```bash
brew install usefulsoftwareco/tap/executor-beta
```

After a standalone installer finishes, follow any `PATH` instructions it prints and open a new terminal before running `executor --version`. `executor` starts the background Executor if it is not running, opens the dashboard in your browser, and exits. If `executor` cannot launch a browser, open the one-use connection link it prints within five minutes; on a headless machine, use `executor service start` and `executor service pair`. Executor ships as one executable with its runtime, dashboard, Git, and workerd beside it.

- **npm launcher:** Keeps Node.js 14.18.0 or newer on `PATH` to launch the native runtime. The first time a version runs, it downloads that release's platform archive from the public GitHub release, verifies its SHA-256 checksum against the npm manifest, and caches it in `~/.executor/v2/launcher/<version>`. Set `EXECUTOR_DOWNLOAD_URL` to point at a release mirror.
- **Install script:** Keeps each release under `~/.executor/v2/runtime/versions/`, points `~/.executor/v2/runtime/current` at the active version, and links `~/.local/bin/executor` to it on macOS and Linux (printing `PATH` instructions if `~/.local/bin` is not already on your `PATH`, without editing your shell profile). On Windows, the script adds `%USERPROFILE%\.executor\v2\runtime\current` to your user `PATH` (unless `EXECUTOR_NO_MODIFY_PATH` is set) and instructs you to open a new terminal. Pass a version argument to install a specific release, for example `curl -fsSL https://executor.sh/docs/install.sh | sh -s -- 2.0.0-beta.79`.
- **Desktop app:** If you prefer a window over a browser tab, install the desktop app — it shares the same background server and `~/.executor/v2/cli` data directory by default (desktop can override its directory).

[Download the desktop installer.](https://executor.sh/#install)

## Commands

| Command | Purpose |
| --- | --- |
| `executor` | Start the background Executor if it is not running, open the dashboard, and exit. Accepts `--standalone` and `--server <url>`. |
| `executor serve` | Run Executor in the current terminal without opening a browser until you press Ctrl+C. |
| `executor service` | Start, stop, restart, inspect, and configure the background Executor; print a connection link or rotate its local API key. |
| `executor login`, `executor apps login`, `executor logout`, `executor whoami` | Sign in to a **Self-host** or **Cloud** host for tool commands or app commands, sign out, and inspect the active sign-in. |
| `executor search`, `describe`, `call`, `execute`, `resume`, `skills` | Search, inspect, and call app tools and skills from a shell. |
| `executor mcp` | Serve the resolved host's MCP endpoint to an MCP client over stdio. |
| `executor apps` | Create, edit, deploy, share, and install apps. See [Author an app](/docs/author-an-app). |
| `executor upgrade` | Install the newest release on your channel, or switch back with `--rollback`. |

All subcommands also accept `--help` (`-h`), `--version` (`-v`), `--wizard`, `--completions <bash|zsh|fish|powershell|sh|pwsh>`, and `--log-level <level>`.

## The background Executor

One background server handles all local commands and the desktop app for a data directory. Manage it with `executor service start`, `stop`, `restart`, `status`, `get`, `set`, `unset`, `pair`, and `rotate-key`. See [Background server and key storage](/docs/run/cli/background-server).

## Configure it

Set `EXECUTOR_PORT`, `EXECUTOR_DATA_DIR`, `EXECUTOR_KEY_STORAGE`, `EXECUTOR_API_KEY`, `EXECUTOR_ENCRYPTION_KEY`, `EXECUTOR_BROWSER_ORIGIN`, `EXECUTOR_WEBHOOK_ORIGIN`, `EXECUTOR_NO_UPDATE_CHECK`, or `DO_NOT_TRACK` / `EXECUTOR_DISABLE_ANALYTICS` to customize the local server. See [Background server and key storage](/docs/run/cli/background-server#configure-it).

## Use your tools from a shell

Sign in to a **Self-host** or **Cloud** host with `executor login` (tools and `executor mcp`) or `executor apps login` (app commands), or omit both (with no `EXECUTOR_HOST` override or remembered remote host) to target the local background Executor. Run `executor search`, `describe`, `call`, `execute`, `resume`, and `skills` from any shell. See [Use Executor from a shell](/docs/run/cli/from-a-shell).

### Serve your tools to an MCP client

Run `executor mcp` to bridge the resolved host's MCP endpoint over stdio for clients that launch a command, such as `claude mcp add executor -- executor mcp`. Without a host override or remembered remote host, `executor mcp` starts the local background Executor automatically. See [Use Executor from a shell](/docs/run/cli/from-a-shell#serve-your-tools-to-an-mcp-client).

## Connect an agent

In the local dashboard, open **Connections**, choose a connection such as **Full access**, and click **Connect** to add the local MCP endpoint to Claude Code, Cursor, or Codex, or bridge it over stdio with `executor mcp`. Start Executor (`executor` or `executor service start`) before using a direct Local HTTP connection after a reboot. For stdio, `executor mcp` starts Local automatically if you have no host override or remembered remote host. See [Add an MCP client](/docs/mcp-clients).

## Coming from Executor 1

If `executor --version` still prints v1, another installation is earlier on your `PATH`, and Executor 1 commands such as `web`, `daemon`, `tools`, and `server` have moved to new names. See [Upgrade and migrate from Executor 1](/docs/run/cli/upgrade#coming-from-executor-1).

## Back up and update

Back up the Local data directory (default `~/.executor/v2/cli`) together with its matching key source: the OS credential, the `keys.json` inside the directory, or both original supplied keys, according to how the installation was configured. Update with `executor upgrade` or roll back a standalone install with `executor upgrade --rollback`. See [Upgrade and migrate from Executor 1](/docs/run/cli/upgrade) and [Background server and key storage](/docs/run/cli/background-server#back-up-your-data-and-keys).

## Limits

- Running `npm i -g executor` without `@beta` installs Executor v1 (`1.6.11`), which does not support apps or Executor 2 commands.
- Linux installs require glibc (musl distributions such as Alpine are not supported) and system CA certificates installed.
- The background Executor does not register with your OS service manager, so it does not start automatically on boot.

## Related

- [Background server and key storage](/docs/run/cli/background-server)
- [Use Executor from a shell](/docs/run/cli/from-a-shell)
- [Upgrade and migrate from Executor 1](/docs/run/cli/upgrade)
- [Add an MCP client](/docs/mcp-clients)
- [Author an app](/docs/author-an-app)
- [Desktop troubleshooting](/docs/desktop/troubleshooting)
