# Remote Access, E2E Security & Self-Hosting — Octopus ADE

> Canonical HTML: https://octoterm.si/docs/guides/remote-and-self-hosting (ZH) · https://octoterm.si/en/docs/guides/remote-and-self-hosting (EN)
> Docs Index: https://octoterm.si/docs/llms.txt

## TL;DR

Continue monitoring terminals, approving ACP tool cards, dictating prompts, and reviewing Git diffs from iOS, Android, or another computer. Octopus supports account-free **LAN direct pairing**, the **official zero-knowledge relay (`octoterm.si`)**, and **self-hosted Octopus Server**—all sharing the same ECDSA P-256 + ECDH + HKDF-SHA256 + AES-256-GCM end-to-end encryption.

## Three Remote Access Modes

| Mode | Account Required | Pairing / Auth | Best For |
| --- | --- | --- | --- |
| **LAN Direct** | No | 6-digit code, QR code, or `octopus://pair` | Office Wi-Fi, home LAN, personal VPN with zero latency |
| **Official Relay (`octoterm.si`)** | Yes | Same account + 8-char Device Access Password (zero-knowledge) | Cross-network 5G mobile access with no public IP or port forwarding |
| **Self-Hosted Octopus Server** | Self-managed | `octopus://relay` deep link or custom server sign-in | Enterprises, compliance teams, and self-hosters |

## End-to-End Cryptographic Architecture

- **Device-local ECDSA P-256 identity keys**: Generated on each device; private keys never leave the device.
- **Ephemeral ECDH P-256 + HKDF-SHA256**: Fresh session keys per connection providing forward secrecy.
- **Per-frame AES-256-GCM**: Encrypts and authenticates terminal I/O, ACP timelines, permission approvals, and remote file diffs.
- **Zero-knowledge 8-character Device Access Password**: Verified end to end via **PBKDF2-SHA256 + HMAC-SHA256** between devices; never sent to or stored by the relay.
- **Device management**: Default quota is 5 devices (desktops + phones combined) with instant revocation under Desktop Settings → Remote Access → Authorized Devices.

## Self-Hosting Octopus Server (Docker Compose Example)

```yaml
services:
  octopus-server:
    image: ghcr.io/aidotnet/octopus-server:latest
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
      - OCTOPUS_PUBLIC_URL=https://relay.example.com
    volumes:
      - ./data:/app/data
```

Always terminate TLS (HTTPS/WSS) with Nginx, Caddy, or Traefik in production. Share one-click team onboarding via:

```text
octopus://relay?v=1&url=https://relay.example.com&name=TeamRelay
```

## Octopus Cloud Host Tiers

| Plan | Monthly | Compute & Storage | Availability & Quotas |
| --- | --- | --- | --- |
| **Free** | $0 | 2 vCPU / 4 GB RAM / 20 GB Disk / 100 GB Traffic | Hibernates after 30 min idle (persistent disk), 1 GiB relay, 5 devices |
| **Pro** | $20/mo | 4 vCPU / 8 GB RAM / 100 GB Disk / 500 GB Traffic | Always-on paid pool, 20 GiB relay, 10 devices, daily S3 backups |
| **Builder** | $50/mo | 8 vCPU / 16 GB RAM / 200 GB Disk / 2 TB Traffic | Always-on paid pool, 100 GiB relay, 15 devices, priority email support |
| **Max** | $100/mo | 16 vCPU / 32 GB RAM / 500 GB Disk / 5 TB Traffic | Always-on paid pool, 500 GiB relay, 30 devices, priority support + SLA |

Local Octopus Desktop and Mobile are permanently free and open source. Check https://octoterm.si/en/pricing for current paid-plan availability.
