Skip to content

octopus:// Deep-Link Reference

Octopus registers the octopus:// custom URL scheme across macOS, Windows, Linux, and Mobile, routing invocations through single-instance IPC with mandatory query redaction.

  • Scheme: octopus://
  • IPC Limit: 32 KiB
  • Auto Redacted
5 min readUpdated
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

URITargetPurpose & Behavior
octopus://provider/import?v=1&...DesktopOPIP v1 model provider import with host verification modal and keychain-only secret storage.
octopus://bot/import?data=...Desktop / MobilePortable Bot snapshot import (GZip + Base64Url, secret-free) with secret scan confirmation.
octopus://plugin/install?id=...&version=...DesktopLaunches Desktop from the Web Plugin Marketplace for SHA-256 and permission review.
octopus://pair?v=1&id=...&fp=...&t=...MobileQR / deep-link device pairing with host public-key fingerprint.
octopus://relay?v=1&url=...&key=...Mobile / DesktopSelf-hosted Octopus Server quick setup link.
octopus://auth-doneDesktop / MobileReturns 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.

Octopus WeChat group

Scan with WeChat to join the (Chinese-speaking) community group for tips, feedback and release news.

QR code expired? Let us know in a GitHub issue.