# Complete `octopus://` Deep-Link Reference

> Canonical HTML: https://octoterm.si/docs/protocols/deep-links (ZH) · https://octoterm.si/en/docs/protocols/deep-links (EN)
> LLMs index: https://octoterm.si/docs/llms.txt

**TL;DR:** Octopus registers the `octopus://` URL scheme across macOS (`Info.plist`), Windows (Registry), Linux (`xdg-mime`), and Mobile, forwarding links through single-instance IPC (32 KiB limit) with mandatory secret redaction before any log touches disk.

## 1. Complete Route Table

| URI | Platform | Purpose |
|---|---|---|
| `octopus://provider/import?v=1&...` | Desktop | OPIP v1 model provider import confirmation modal (OS keychain storage). |
| `octopus://bot/import?data=...` | Desktop / Mobile | Portable Bot snapshot import (GZip + Base64Url, secret-free). |
| `octopus://plugin/install?id=...&version=...` | Desktop | Web Plugin Marketplace install modal with SHA-256 and permission review. |
| `octopus://pair?v=1&id=...&fp=...&t=...` | Mobile | Direct LAN/relay device pairing with host public-key fingerprint. |
| `octopus://relay?v=1&url=...&key=...` | Mobile / Desktop | Self-hosted Octopus Server setup link. |
| `octopus://auth-done` | Desktop / Mobile | Brings Octopus back to the foreground after browser sign-in. |

## 2. Cross-Platform Registration & Single-Instance Forwarding

- **macOS**: `CFBundleURLSchemes = ["octopus"]` in `Info.plist`; delivered live via Avalonia `IActivatableLifetime.Activated` or cold-start args.
- **Windows**: Inno Setup registers `Software\Classes\octopus`; secondary launches forward the URI over a per-user `NamedPipe` (32 KiB max) via `SingleInstanceGuard` and exit immediately.
- **Linux**: `octopus.desktop` registers `MimeType=x-scheme-handler/octopus;` via `xdg-mime`; forwarded over the same per-user `NamedPipe`.

## 3. Automatic Log Redaction (`DeepLinkRedactor`)

All startup logs (`startup-*.log`), crash breadcrumbs, IPC forwarding logs, and mobile diagnostic exports strip query strings and fragments before touching disk (`octopus://provider/import?[REDACTED]`).
