Config reference
Everything Ferry knows about your routing lives in one TOML file that you can read, edit, comment and keep in version control.
The file
~/.config/ferry/ferry.toml
- Ferry reloads it within a second of a save.
- Settings keeps your comments and ordering when it writes.
- Writes are atomic. A half-written file never replaces a good one.
A complete example
version = 1
fallback = "ask"
[intents.work]
label = "Work"
key = "w"
macos = { browser = "com.google.Chrome", profile = "Profile 1" }
[intents.personal]
label = "Personal"
key = "p"
macos = { browser = "com.apple.Safari" }
[intents.meeting]
label = "Meeting"
macos = { app = "us.zoom.xos" }
# Narrow rules first: the first match wins.
[[rules]]
name = "Zoom calls"
host = "*.zoom.us"
path = "/j/"
intent = "meeting"
[[rules]]
name = "Linear"
host = "*.linear.app"
intent = "work"
Top level
| Key | Type | Default | Meaning |
|---|---|---|---|
version |
number | required | Always 1 |
fallback |
intent name | "ask" |
Where a link goes when no rule matches |
Intents
One table per intent: [intents.NAME].
| Key | Type | Meaning |
|---|---|---|
label |
string | Display name. Defaults to the name, capitalised. |
key |
one letter | Picker shortcut |
macos |
binding | What it opens on a Mac |
A binding is one of:
| Form | Fields |
|---|---|
| Browser | browser (bundle ID), optional profile (directory name), optional private = true, optional background = true |
| App | app (bundle ID) |
ask and default are built in. You can bind default; you can’t define ask.
Rules
One [[rules]] block per rule, in the order they should be tried.
| Key | Type | Default | Meaning |
|---|---|---|---|
intent |
intent name | required | Where matching links go |
name |
string | Shown in traces and Settings | |
host |
string or list | Host, with optional *. for subdomains |
|
prefix |
string or list | Start of the whole link | |
path |
string or list | Start of the link’s path | |
from |
string or list | Bundle ID of the app the link was clicked in | |
regex |
string | Pattern that must match the whole link | |
modifier |
"command", "option", "control", "shift", "fn" |
Key held while clicking | |
enabled |
boolean | true |
false skips the rule but keeps it |
clean |
boolean | true |
false keeps tracking parameters for this rule’s links |
A rule needs at least one matcher. See Rules for how matchers combine.
When the file has a mistake
Ferry never routes with a broken or empty config. If a save doesn’t parse:
- Ferry keeps using the last version that worked.
- Settings and the menu bar show the problem, with its line number.
- The menu bar icon carries a dot until it’s fixed.
ferry.toml has an error on line 14: expected `=`. Ferry is still using your last working config.
Unknown keys are errors too. A typo like hsot = "example.com" is reported instead of quietly creating a rule that can never match.
Check a file without opening the app:
ferry check
Other files
| File | Holds |
|---|---|
~/.config/ferry/history.jsonl |
The last 1,000 traces, only if history is on |
~/Library/Application Support/Ferry/settings.json |
App preferences: agent permissions, picker modifier, cleaning switch |
~/Library/Application Support/Ferry/proposals.json |
Agent proposals waiting for you |
Syncing
There is no sync service. To share a config between machines, keep ferry.toml in a folder you already sync, or in a dotfiles repository, and link it into place.