# ed crew attach

> Attaches the current terminal to one live agent pane.

- Canonical URL: https://getedith.pro/docs/agents/crew/cli/attach
- Updated: 2026-12-02

Attaches the current terminal to one live agent pane.

```
ed crew attach <pane> [--machine <name>] [--session <name>] [--json]
```

`--machine` and `--session` disambiguate matches in the same way as
`ed crew command`. The plain form hands the terminal to the agents engine locally or to
SSH for a remote pane. Its exit status is the attached process status.

`--json` is non-interactive. It resolves the pane and prints the exact
`executable`, `arguments`, command and target fields with `attached: false`.
This makes automation safe without pretending that an interactive session ran.

```
ed crew attach w3:p1N --machine local
ed crew attach w3:p1N --machine devbox --json
```

Unknown or ambiguous panes exit 3. An unavailable machine exits 4.

## Where to go next

- [`ed crew command`](https://getedith.pro/docs/agents/crew/cli/command), print the portable attach line
- [`ed crew`](https://getedith.pro/docs/agents/crew/cli), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
