TL;DR
Octopus registers the octopus:// scheme across macOS, Windows, Linux, and Mobile for provider/import, bot/import, plugin/install, pair, relay, and auth-done with 32 KiB single-instance IPC and mandatory log redaction.
Complete Route Table
| URI | Target | Purpose & Behavior |
|---|---|---|
octopus:// | Desktop | OPIP v1 model provider import with host verification modal and keychain-only secret storage. |
octopus:// | Desktop / Mobile | Portable Bot snapshot import (GZip + Base64Url, secret-free) with secret scan confirmation. |
octopus:// | Desktop | Launches Desktop from the Web Plugin Marketplace for SHA-256 and permission review. |
octopus:// | Mobile | QR / deep-link device pairing with host public-key fingerprint. |
octopus:// | Mobile / Desktop | Self-hosted Octopus Server quick setup link. |
octopus:// | Desktop / Mobile | Returns focus to Octopus after browser OAuth sign-in. |
OS Registration & Single-Instance Forwarding
- macOS: Registered via Info.plist CFBundleURLSchemes. Running instances receive URIs directly via Avalonia IActivatableLifetime.Activated; cold launches dispatch after MainWindow is ready.
- Windows / Linux: Registered via Windows Registry (Software\Classes\octopus) and Linux xdg-mime (octopus.desktop). Secondary launches forward URIs over a per-user NamedPipe (32 KiB limit) and exit immediately.
Automatic Redaction
DeepLinkRedactor
All startup traces (
startup-*.log), crash breadcrumbs, and mobile diagnostic exports strip query strings and fragments before touching disk, recording only octopus:// provider /import ?[REDACTED].Local CLI Testing
bashTrigger octopus:// locally
# macOS
open "octopus://provider/import?v=1&baseUrl=https://api.example.com&name=MyRelay"
# Linux
xdg-open "octopus://provider/import?v=1&baseUrl=https://api.example.com&name=MyRelay"
# Windows (PowerShell)
Start-Process "octopus://provider/import?v=1&baseUrl=https://api.example.com&name=MyRelay"Frequently Asked Questions
- Does clicking an octopus:// link spawn duplicate windows on Windows or Linux?
- No. SingleInstanceGuard detects the running primary instance via an OS file lock, forwards the URI (up to 32 KiB) over a per-user NamedPipe, and exits immediately.
- How does Octopus Mobile handle octopus://provider/import?
- Managed model providers live on Desktop. Mobile redacts the link in diagnostics and guides users to open or paste the link in Octopus Desktop under Settings → Model Providers → Import Link.