# Intents

An intent is a named destination such as @work or @personal. Rules point at intents, and each device decides what an intent opens.

## Why intents

A rule that says "open Linear in Chrome, Profile 1" breaks the day you switch browsers, and means nothing on a second machine where that profile is called something else.

A rule that says "Linear is `@work`" keeps working. You change what `@work` opens in one place.

## Define an intent

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

| Field | Meaning |
| --- | --- |
| `[intents.NAME]` | The name rules use. Lowercase letters, digits and hyphens, up to 24 characters. |
| `label` | What the picker and Settings show. Defaults to the name, capitalised. |
| `key` | One letter that opens this intent in the picker. Optional. |
| `macos` | What it opens on a Mac. See below. |

Two intents can't share a picker key. The second one is saved without its key, and Settings tells you about the conflict.

## What an intent can open

A binding is either a browser or an app.

```toml
# A browser, default profile
macos = { browser = "com.apple.Safari" }

# A Chromium profile
macos = { browser = "com.google.Chrome", profile = "Profile 1" }

# A private window
macos = { browser = "org.mozilla.firefox", private = true }

# An app that handles its own links
macos = { app = "us.zoom.xos" }
```

`browser` and `app` are bundle IDs. `profile` is the profile's **directory name**, not the name you see in the browser. To find both:

```bash
ferry browsers
```

```
com.google.Chrome    Google Chrome  profiles, private, background
                     profile "Default"  Personal
                     profile "Profile 1"  Work
com.apple.Safari     Safari         background
```

Settings shows the friendly names and writes the right values for you.

## Combinations that aren't allowed

Ferry refuses a binding it could not honour, when you save it, with the reason:

- **Safari with a private window.** Safari can't open private windows on request from other apps.
- **A profile the browser doesn't have.** The link would have nowhere to go.

This is deliberate. Ferry never quietly opens a normal window when you asked for a private one, or the default profile when you asked for a specific one. If a target can't be honoured at the moment a link arrives, you get the picker with the reason in the trace:

<pre class="trace">Slack → rule 2 "Linear" → × Chrome has no profile "Profile 1"</pre>

## Built-in intents

| Intent | Meaning | Rebind | Delete |
| --- | --- | --- | --- |
| `@ask` | Always show the picker. | No | No |
| `@default` | Where a link goes when you just want "a browser". Also used for opened `.html` files. | Yes | No |

`@ask` is the default [fallback](/rules#when-nothing-matches): the intent used when no rule matches.

## An intent with no binding here

If an intent isn't bound on this Mac, links sent to it open the picker, and the trace says why:

<pre class="trace">Slack → rule 1 "Zoom calls" → ? @meeting has no binding on this Mac</pre>

## A sandbox for AI agents

An intent named `agent` is special to the [MCP server](/agents#the-agent-sandbox). Links an agent opens without naming a destination go to `@agent`, so you can point it at a browser profile with no logins.
