# Crossway operations

> Enable crossway, then use ed invoke. Crossway decides which browser opens links in Edith.

- Canonical URL: https://getedith.pro/docs/cli/crossway
- Updated: 2026-12-02

Enable `crossway`, then use [ed invoke](https://getedith.pro/docs/cli/invoke). Crossway decides
which browser opens links in Edith. A caller's explicit destination wins, then
the chooser, the Option destination, the source's project, the first matching
rule and finally the primary destination.

## Preview, save and open

```sh
ed invoke crossway crossway.read
ed invoke crossway crossway.preview --json '{"url":"https://example.com/?utm_source=synthetic","source":"edith"}'
ed invoke crossway crossway.routing --json '{"enabled":true}'
ed invoke crossway crossway.open --json '{"urls":["https://example.com/a","https://example.com/b"]}'
ed invoke crossway crossway.project.launch --json '{"projectID":"PROJECT_ID"}'
```

`crossway.read` prints `configuration` and the installed `browsers`. To change
rules or projects, edit that `configuration` and send it back whole with
`crossway.update`, keeping its `revision`.

## Operations

| Operation | Payload | Result |
| --- | --- | --- |
| `crossway.read` | `{}`, or `{"refreshBrowsers":true}` to look for browsers again | `configuration` and `browsers` |
| `crossway.update` | A complete configuration with the `revision` it was read at | The saved snapshot with the next `revision` |
| `crossway.routing` | `enabled` | The saved snapshot |
| `crossway.preview` | `url`, optional `source` (`edith` or `launcher`), `projectID`, `force`, `prompt` | `original`, `url`, `target`, `reason`, `signed`; nothing opens |
| `crossway.open` | `url` or up to 32 `urls`, optional `source`, `projectID`, `force`, `prompt` | `requested`, `accepted`, `rejected` |
| `crossway.project.launch` | `projectID` | `requested`, `accepted`, `rejected` |

A configuration has `enabled`, `cleanTracking`, `primary` and `alternative`
destinations, ordered `rules`, `projects`, `sourceProjects` (a project id for
`edith` or `launcher`), `shownBrowsers` and `revision`. A destination has `kind`
(`system`, `chooser`, `application`, `copy` or `discard`), `bundleID`, `profile`,
`privateWindow` and `newWindow`. Missing fields take their defaults.

## Errors

A save from an older `revision` fails with `Link routing changed somewhere else.
Reload the latest settings and save again.` and changes nothing. A batch with
one malformed URL opens nothing. An unknown `source` or operation is rejected.
`accepted` counts requests macOS accepted, not pages that finished loading.

## 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
