---
title: "Installation unter macOS | Wantastic Docs"
description: "Installiere wantasticd in 2 Minuten auf einem Mac (Apple Silicon oder Intel): ein Terminal-Befehl, QR-Code scannen, auf Claim Device klicken."
url: "https://wantastic.app/de/docs/install-macos"
category: "Install wantasticd"
reading_time: "3 Min."
---

# Installation unter macOS

Installiere wantasticd in 2 Minuten auf einem Mac (Apple Silicon oder Intel): ein Terminal-Befehl, QR-Code scannen, auf Claim Device klicken.

> **Outcome:** wantasticd läuft als Hintergrunddienst, der beim Booten startet, das W-Symbol in der Menüleiste zeigt den Status, und der Mac wird in der Konsole als Online angezeigt.

## Before you start

- macOS 11 Big Sur oder neuer, Apple Silicon oder Intel.
- Ein Administratorkonto (du gibst dein Passwort für sudo ein).
- Ein Smartphone oder ein Browser, um dich in der Wantastic-Konsole anzumelden.

## Schnellinstallation (2 Minuten)

Öffne Terminal (Applications → Utilities → Terminal, auf Deutsch Programme → Dienstprogramme) und führe einen Befehl aus. Er installiert wantasticd und zeigt einen QR-Code an. Es wird kein Token benötigt.

1. Kopiere den Befehl unten und füge ihn in ein Terminal auf dem Gerät ein. Gib dein Passwort ein, wenn sudo danach fragt.
2. Das Gerät gibt eine Claim URL und einen QR-Code aus. Scanne den QR-Code mit deinem Smartphone oder öffne die Claim URL in einem Browser.
3. Melde dich in der Wantastic-Konsole an. Das Fenster Claim Wantastic Device öffnet sich mit bereits ausgefülltem Key. Klicke auf Claim Device.
4. Das Terminal gibt "Device claimed" aus. Drücke Strg+C und führe dann den Neustartbefehl unten aus.
5. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

Installieren und zuordnen:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

Nach "Device claimed": Strg+C drücken, dann den Dienst neu starten:

```bash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

*Installieren und zuordnen: genkey gibt eine Claim URL und einen QR-Code aus und wartet dann. Nachdem du in der Konsole auf Claim Device geklickt hast, gibt es "Device claimed" aus. Drücke dann Strg+C und starte den Dienst neu.*

```
$ % curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
Error: wantasticd did not stay running. Last log lines:
…
Generated device claim key: /Library/Application Support/Wantastic/device-claim-key.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app

█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀█
█ ███ █ ▀█▄▀▄█ █ ███ █
█ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀
▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄
█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀
▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀

2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.
2026/10/29 09:15:12 Device claimed. Configuration saved to /Library/Application Support/Wantastic/config.conf
^C
$ % sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

*Console: Claim Wantastic Device. Die Claim URL und der QR-Code füllen den Key für dich aus. Du klickst nur auf Claim Device.*

1. Claim public key ist bereits ausgefüllt
2. Wantastic server unverändert lassen
3. Auf Claim Device klicken

> **Tip:** Kein Smartphone zur Hand? Kopiere die Claim URL aus dem Terminal und öffne sie auf einem beliebigen Computer.

> **Operational note:** Auf einem neuen Mac endet der Installer mit "Error: wantasticd did not stay running". Das ist normal, weil der Mac noch nicht zugeordnet ist. Der QR-Code erscheint direkt danach. Nach "Device claimed" drücke Strg+C und führe den Neustartbefehl unten aus.

## Funktion prüfen

1. Führe wantasticd status aus. Es zeigt Status: Connected und eine VPN IP an.
2. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

Prüfen:

```bash
wantasticd status
```

*wantasticd status: Status: Connected und eine VPN IP bedeuten, dass der Tunnel steht.*

```
$ % wantasticd status
Status:        Connected
Version:       v1.0.54+377f3c0
Mode:          TUN (utun6)
VPN IPs:       10.200.0.14/32
Public key:    q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server:        wg.wantastic.app:51820
Exit node:     false
Local access:  false
Auto update:   true
Traffic:       ↓ 18.4 KiB  ↑ 9.2 KiB
Peers:         2 (direct 1, relay 1)
Uptime:        4m12s
```

*Console: Fenster Devices: Das neue Gerät erscheint unter seinem Namen und wird innerhalb weniger Sekunden Online.*

1. Nach Name suchen
2. Status zeigt Online
3. Overlay-IP stimmt mit wantasticd status überein
4. Last seen wird laufend aktualisiert

## Die Menüleisten-App

In der Menüleiste erscheint ein W-Symbol. Es zeigt den Status an. Wenn du es beendest, wird der Tunnel nicht gestoppt.

Menüleisten-App erneut öffnen:

```bash
launchctl kickstart gui/$(id -u)/com.wantastic.tray
```

*Console: Das W-Menü: Status, Overlay-IP, Peers, Verbindungsschalter, Exit-Node und Version.*

1. Auf das W-Symbol klicken
2. Status: Connected
3. Deine Overlay-IP
4. Peers: Untermenüs P2P und Relay
5. Disconnect / Connect
6. Enable Exit Node
7. Laufende Version
8. Quit blendet das Symbol bis zur nächsten Anmeldung aus

## Dienst verwalten

- Wenn macOS fragt "Do you want the application wantasticd to accept incoming network connections?", klicke auf Allow. Direkte Verbindungen zwischen Geräten benötigen das.
- Lokaler Zugriff (--allow-local-access) wird unter macOS nicht unterstützt.

launchctl:

```bash
sudo launchctl kickstart -k system/com.wantastic.wantasticd      # restart
sudo launchctl bootout system/com.wantastic.wantasticd           # stop until next boot
tail -f /Library/Logs/Wantastic/wantasticd.log                   # live logs
```

## Weitere Installationswege

Das brauchst du nur für Automatisierung oder Sonderfälle. Die Schnellinstallation oben ist der einfachste Weg.

### Mit Token (viele Geräte)

Verwende ein Token, wenn du viele Geräte per Skript installierst oder niemand einen QR-Code scannen kann. Erstelle das Token einmal in der Konsole: Account → Secrets → + New Secret → Generate. Ersetze <TOKEN> damit.

Token-Installation:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --token <TOKEN>
```

> Behandle das Token wie ein Passwort. Jeder, der es hat, kann bis zu dessen Ablauf Geräte zu deinem Konto hinzufügen.

### Ohne Menüleisten-App

Für Server und gemeinsam genutzte Macs. Der Dienst läuft trotzdem; nur das W-Symbol entfällt.

Terminal:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --no-tray; sudo wantasticd genkey
```

*Console: Account → Secrets → + New Secret. Der Wert des Secrets ist das Token.*

1. Tab Secrets öffnen
2. Auf + New Secret klicken
3. Namen vergeben
4. Auf Generate klicken
5. Neues Secret kopieren

## Verify the result

- wantasticd status zeigt Status: Connected und Mode: TUN (utunN).
- Das W-Menü zeigt Status: Connected.
- Der Mac wird unter Devices als Online angezeigt, auch nach einem Neustart.

## Common issues

### Der Installer verweigert die Ausführung.

```
Error: on macOS the installer needs root. Run:
  curl -fsSL https://get.wantastic.app/install.sh | sudo sh
```

- **Where:** install.sh
- **Likely cause:** sudo fehlt, oder es steht vor curl statt vor sh.
- **Fix:** Verwende genau den Befehl unten.

Korrekter Befehl:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

### Der Installer endet mit einem Fehler und Logzeilen.

```
Error: wantasticd did not stay running. Last log lines:
```

- **Where:** install.sh
- **Likely cause:** Der Mac ist noch nicht zugeordnet, daher hat der Dienst keine Konfiguration. Das ist bei einem neuen Mac zu erwarten.
- **Fix:** Ordne den Mac zu und starte dann den Dienst neu.

Zuordnen und neu starten:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### Die Schlüsseldatei kann nicht geschrieben werden.

```
genkey failed: write key file: open …/Application Support/Wantastic/device-claim-key.json: permission denied
```

- **Where:** wantasticd genkey
- **Likely cause:** Ein früherer sudo-Lauf hat root-eigene Dateien in deinem Benutzerordner hinterlassen.
- **Fix:** Gib den Ordner deinem Benutzer zurück und führe den Befehl erneut aus. Neuere Versionen ersetzen diese Dateien selbst.

Ordner-Besitzer korrigieren:

```bash
sudo chown -R "$(whoami)" ~/Library/Application\ Support/Wantastic
```

### Die Konsole zeigt das Gerät als zugeordnet an, aber der Dienst verbindet sich trotzdem nicht.

- **Where:** wantasticd genkey
- **Likely cause:** genkey lief ohne sudo. Es hat die Konfiguration in deinem Benutzerordner (~/Library/Application Support/Wantastic) gespeichert, und der Dienst liest diesen Ordner nicht.
- **Fix:** Führe genkey erneut mit sudo aus und ordne den neuen Key zu. Lösche dann den alten, ungenutzten Geräteeintrag unter Devices.

Als root zuordnen:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### launchctl schlägt bei der Installation oder Neuinstallation fehl.

```
Bootstrap failed: 5: Input/output error
```

- **Where:** install.sh / launchctl
- **Likely cause:** Der alte Dienst war noch beim Beenden.
- **Fix:** Beende ihn von Hand und führe die Schnellinstallation erneut aus.

Lösung:

```bash
sudo launchctl bootout system/com.wantastic.wantasticd
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

### macOS blockiert wantasticd oder meldet, dass es nicht geöffnet werden kann.

```
Warning: could not ad-hoc sign /usr/local/bin/wantasticd
```

- **Where:** install.sh / Gatekeeper
- **Likely cause:** Die Binärdatei hat ein Quarantäne-Flag oder eine ungültige Signatur.
- **Fix:** Entferne das Flag, signiere sie erneut und starte neu.

Lösung:

```bash
sudo xattr -d com.apple.quarantine /usr/local/bin/wantasticd
sudo codesign -f -s - /usr/local/bin/wantasticd
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### Du hast auf Claim Device geklickt, aber das Terminal gibt nie "Device claimed" aus.

```
Claim polling not ready: claim config rejected (401): invalid signature or timestamp out of window
```

- **Where:** wantasticd genkey
- **Likely cause:** Die Uhr des Geräts geht falsch. Die Zuordnung funktioniert nur, wenn die Uhr höchstens 30 Sekunden von der echten Zeit abweicht.
- **Fix:** Korrigiere die Uhrzeit. genkey wartet weiter und schließt von selbst ab.

Uhrzeit synchronisieren:

```bash
sudo sntp -sS time.apple.com
```

### Ein zweites Interface (wantastic1) erscheint, oder das Log zeigt einen Portkonflikt.

```
Port 51820 in use, using random port
```

- **Where:** Dienst-Log
- **Likely cause:** genkey läuft noch im Terminal, während der Dienst ebenfalls läuft. Jetzt konkurrieren zwei Instanzen.
- **Fix:** Drücke im genkey-Terminal Strg+C und starte dann den Dienst neu.

Neu starten:

```bash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### wantasticd status gibt Offline aus.

```
Status: Offline — daemon not running (start: sudo launchctl kickstart system/com.wantastic.wantasticd)
```

- **Where:** wantasticd status
- **Likely cause:** Der Hintergrunddienst ist gestoppt, abgestürzt oder startet noch. Der Statusbefehl startet ihn nicht.
- **Fix:** Starte den Dienst.

Dienst starten:

```bash
sudo launchctl kickstart system/com.wantastic.wantasticd
```

### status meldet Running (tunnel down), oder peers zeigt HANDSHAKE never für (server).

```
Device health check failed: …
```

- **Where:** Dienst-Log
- **Likely cause:** Das Netzwerk blockiert ausgehenden UDP-Port 51820 zum Hub (wg.wantastic.app), oder DNS funktioniert nicht.
- **Fix:** Erlaube ausgehendes UDP 51820 in deiner Firewall und starte dann den Dienst neu.

DNS testen und neu starten:

```bash
nslookup wg.wantastic.app
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** wantasticd peers zeigt für (server) einen aktuellen Handshake (zum Beispiel "8s ago").

### Lokaler Zugriff funktioniert auf dem Mac nicht.

```
automatic local-access subnet routing is not supported on macOS yet
```

- **Where:** Log
- **Likely cause:** Lokaler Zugriff funktioniert nur unter Linux und OpenWrt.
- **Fix:** Installiere wantasticd auf einem Linux-Gerät in diesem LAN und aktiviere dort den lokalen Zugriff.

### Du willst das Gerät in ein anderes Konto verschieben oder mit einer neuen Zuordnung von vorn beginnen.

```
Config already exists at /Library/Application Support/Wantastic/config.conf — skipping login.
```

- **Where:** install.sh
- **Likely cause:** Das Gerät behält seine Konfiguration, auch wenn du den Installer erneut ausführst. Du musst die alte Konfiguration zuerst entfernen.
- **Fix:** Verschiebe die alte Konfiguration beiseite und ordne das Gerät dann mit einem neuen Key erneut zu.

Von vorn beginnen:

```bash
sudo mv "/Library/Application Support/Wantastic/config.conf" "/Library/Application Support/Wantastic/config.conf.bak"
sudo wantasticd genkey --force
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** Das Gerät erscheint im neuen Konto und wantasticd status zeigt Connected.

### Eine Token-Installation schlägt direkt nach dem Download fehl.

```
Login failed: registration rejected (401): invalid or expired login token
```

- **Where:** install.sh / wantasticd login
- **Likely cause:** Das Token ist falsch, abgelaufen, aufgebraucht (Max Uses erreicht) oder gelöscht.
- **Fix:** Lass das Token weg. Ordne das Gerät stattdessen zu.

Stattdessen zuordnen:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** Das Gerät erscheint unter Devices und wird als Online angezeigt.

### Die Zuordnung oder die Anmeldung wird abgelehnt.

```
Login failed: account has reached its device limit — upgrade your plan or remove an existing device
```

- **Where:** wantasticd login / Konsole
- **Likely cause:** Die Geräteanzahl deines Tarifs ist ausgeschöpft. Die Konsole zeigt "You have reached the maximum number of devices for your plan." an.
- **Fix:** Lösche unter Devices ein nicht genutztes Gerät (Zeile → Delete) oder wechsle in einen höheren Tarif. Ordne das Gerät dann erneut zu.

## Continue with

- [Choose your install method](https://wantastic.app/de/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [wantasticd CLI reference and operations](https://wantastic.app/de/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Update, roll back and uninstall](https://wantastic.app/de/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
- [macOS and Windows errors](https://wantastic.app/de/docs/errors-macos-windows): launchd, Gatekeeper, tray, sc.exe and Windows service errors with the easiest fixes.
- [Login, token and claim errors](https://wantastic.app/de/docs/errors-login-claim): Fix claim problems (genkey, QR code, Claim Device), "Login failed: …" messages and token errors.
- [Topology, group links and exit nodes](https://wantastic.app/de/docs/topology-and-access): See the network map, let devices reach each other with group links, and send a device's internet through another.
