Skip to main content

Deep Links

Maestro registers the maestro:// URL protocol, enabling navigation to specific agents, tabs, and groups from external tools, scripts, shell commands, and OS notification clicks.

URL Format

Available Actions

IDs containing special characters (/, ?, #, %, etc.) are automatically URI-encoded and decoded.

Usage

From Terminal

From Tab Menu

Right-click or hover on any AI tab to reveal the tab overlay menu, which includes a Copy Deep Link option. This copies the full maestro://session/{id}/tab/{tabId} URL to your clipboard - ready to paste into chat, tickets, documentation, or scripts.

OS Notification Clicks

When Maestro is running in the background and an agent completes a task, the OS notification is automatically linked to the originating agent and tab. Clicking the notification brings Maestro to the foreground and navigates directly to that agent’s tab. This works out of the box - no configuration needed. Ensure OS Notifications are enabled in Settings.

Template Variables

Deep link URLs are available as template variables in system prompts, custom AI commands, and Auto Run documents: These variables can be used in:
  • System prompts - give AI agents awareness of their own deep link for cross-referencing
  • Custom AI commands - include deep links in generated output
  • Auto Run documents - reference agents in batch automation workflows
  • Custom notification commands - include deep links in TTS or logging scripts

From Scripts and External Tools

Any application can launch Maestro deep links by opening the URL. This enables integrations like:
  • CI/CD pipelines that open a specific agent after deployment
  • Shell scripts that navigate to a group after batch operations
  • Alfred/Raycast workflows for quick agent access
  • Bookmarks for frequently-used agents
A Prompt Link is a maestro://run/{token} URL that opens a new AI tab in an agent you chose and sends a prompt you wrote. Paste one into a calendar event, a note, a bookmark, or a script, and clicking it runs that prompt. Prompt Links is an Encore Feature, off by default. Turn it on in Settings > Encore Features > Prompt Links, or with maestro-cli encore enable prompt-links.
A link that runs a prompt is a key to your agents. Anyone who can make you click a maestro:// URL (an email, a web page, a calendar invite from a stranger) could otherwise run commands on your machine. Prompt Links are designed around that:
  • The URL carries only a random token. The agent and the prompt stay in Maestro. A forged link names no token Maestro knows, so it does nothing. A leaked link can only run the prompt you wrote, never a new one.
  • Links are one-shot by default. After one run, the link stops working.
  • Maestro stores only a hash of the token. The URL is shown once, when you create it. A backup or synced copy of Maestro’s data holds no working link.
  • Links run only from outside Maestro. A maestro://run link clicked inside Maestro (in an agent reply or a markdown preview) does nothing, so an agent cannot trick you into running one.
  • The web interface cannot create, list, or revoke links.
A calendar event is copied to every attendee. Treat a link in a shared event as shared.
  • Prompt Links window: press Opt+Cmd+Shift+L, search Prompt Links in the command palette, or choose Prompt Links in the Left Bar hamburger menu.
  • From a tab: open an AI tab’s menu and choose Create Prompt Link. The form starts on that agent, with the tab’s unsent draft as the prompt.
  • From the CLI: maestro-cli prompt-link create <agent> "<prompt>" prints the URL.
Each link has these options: Background leaves your view where it is and raises a toast when the link runs. Click the toast to go to the new tab. Foreground brings Maestro forward on the new tab. Use unlimited (or a number of uses) for a link you mean to reuse, such as one in a recurring calendar event. A one-shot link in a recurring event works for the first occurrence only. The Prompt Links window and the Prompt Links tile in Settings list your links with their uses, expiry, and last run. Revoke stops a link for good. Turning Prompt Links off stops every link at once; the links are kept, and can still be revoked with the CLI.
If you only need a prompt to run at a set time, you do not need a link. Use a scheduled task instead: maestro-cli cue schedule --at "2026-12-01 09:00" --agent "My Agent" --prompt "...". A Prompt Link is for when your click is the trigger.

Platform Behavior

Maestro uses a single-instance lock - opening a deep link when Maestro is already running delivers the URL to the existing instance rather than launching a new one.
In development mode, protocol registration is skipped by default to avoid overriding the production app’s handler. Set REGISTER_DEEP_LINKS_IN_DEV=1 to enable it during development.