# Introduction

Ferry is a link router for macOS. Every link you click goes through one small rules engine that picks the right browser, profile or app, and can tell you exactly why.

## How it works

Set Ferry as your default browser. From then on, macOS hands every clicked link to Ferry, and Ferry carries it to where it belongs.

<div class="pair">
  <div><span class="label">You click</span><code>https://linear.app/acme/issue/APP-142?utm_source=slack</code></div>
  <div><span class="label">Ferry does</span><pre class="trace">Slack → ✂ utm_source → rule 2 "Linear" → @work → Chrome · Work ▸</pre></div>
</div>

That line is a **route trace**. Read it left to right: the link came from Slack, a tracking parameter was cut, rule 2 matched, the rule points at the `@work` intent, and on this Mac `@work` means Chrome's Work profile. Then it opened.

Four things happen to every link, always in this order:

1. **Clean.** Tracking parameters are removed and redirect wrappers are unwrapped. See [Cleaning](/cleaning).
2. **Match.** Rules are tried top to bottom. The first one that matches wins. See [Rules](/rules).
3. **Resolve.** The rule names an [intent](/intents), and this device says which browser and profile that intent means.
4. **Open.** Ferry launches the target. If it can't, or if nothing matched, the [picker](/picker) asks you.

## Intents, not browsers

Rules don't say "open in Chrome". They say "this is `@work`". Each device decides what `@work` opens.

```toml
[intents.work]
label = "Work"
key = "w"
macos = { browser = "com.google.Chrome", profile = "Profile 1" }

[[rules]]
name = "Linear"
host = "*.linear.app"
intent = "work"
```

So your rules stay the same when you change browsers, and the same file can describe more than one machine.

## It can always explain itself

Every decision produces a trace, and it is the same trace wherever you look: the picker's footer, **Test a link** in Settings, the command line, and the MCP tools an AI agent uses.

```bash
ferry explain "https://github.com/acme/app/pull/18231" --from com.apple.mail
```

<pre class="trace">Mail → no rule matched (0 of 2) → ask</pre>

The explanation and the real routing run the same function, so the trace can't say one thing while Ferry does another. Try it in the [playground](/playground): it runs Ferry's actual routing engine in your browser.

## What Ferry is not

- **Not a browser.** It never renders a page.
- **Not a service.** There is no account, no sync server and no telemetry. Ferry makes no network calls.
- **Not magic.** A link you click *inside* a browser never reaches macOS's link handler, so Ferry never sees it.

## Where to go next

- [Get started](/get-started): build it, make it your default browser, write your first rule.
- [Rules](/rules): everything a rule can match on.
- [Agents](/agents): let an AI assistant open and explain links without letting it rewrite your routing.
