# ed crew command

> Prints the command that attaches to one agent pane.

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

Prints the command that attaches to one agent pane.

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

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<pane>` | pane id, for example `w3:p1N` | required | The pane to attach to |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--machine <name>` | machine name, alias, UUID, unique prefix, or `local` | all hosts | Disambiguate when the same pane id exists on more than one machine |
| `--session <name>` | Agents session name | all sessions | Disambiguate when the same pane id exists in more than one session |
| `--json` | flag | off | Emit JSON on stdout |

`--help` is generated by the parser, prints the usage summary on stdout and
exits 0.

The human form is one line, and nothing else:

```
ssh -tt devbox-wired -- '"$HOME/.edith/agents/bin/edith-agents" --session default agent attach w3:p1N --takeover'
```

On this Mac the `ssh -tt` prefix is omitted:

```
"$HOME/.edith/agents/bin/edith-agents" --session default agent attach w3:p1N --takeover
```

## `--json` shape

```json
{
  "command": "ssh -tt devbox-wired -- '\"$HOME/.edith/agents/bin/edith-agents\" --session default agent attach w3:p1N --takeover'"
}
```

A pane that is not live, or a pane that matches more than once without
`--machine` or `--session`, exits 3 with empty stdout. `--machine` that matches
no configured machine also exits 3.

This only prints the line. It does not attach. The Agents page in Edith opens a
PTY with the same command.

## Where to go next

- [`ed crew ls`](https://getedith.pro/docs/agents/crew/cli/ls), find the pane id
- [`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
