# Muse

URL: https://swb.one/de/docs/setup/muse

## Muse in Echtzeit wecken [#muse-in-echtzeit-wecken]

SwB empfiehlt das Muse-Gadget, um Aufgaben zu starten, sobald eine Nachricht eintrifft. Das Gadget ist ein Gerät, das sich mit der Muse-App koppelt.

Ein [Companion](/de/docs/companion) ist ein SwB-Programm auf Ihrem Computer. Während der Kopplung tritt er über Bluetooth als Gadget auf. Nach der Kopplung hält Ihr SwB-Server die Verbindung zu Muse offen. Sie können den Companion nach der Kopplung beenden.

Richten Sie eine öffentliche HTTPS-Adresse für SwB ein. Fügen Sie diesen Prompt in einen SwB-Agenten mit vollem Inhaberzugriff ein.

https://swb.one/prompts/muse.md

````
Read the setup guide at https://swb.one/docs/setup/muse.

Help me connect Muse to SwB. Use the Muse gadget for immediate wakes. The gadget needs a companion on my own device. Use the custom connector for SwB tool access.

## Muse gadget

Use a SwB agent with full owner access. If you need owner access, ask me to move this prompt to that agent.

Call `connect(what="muse", choose={"gadget": true})`. Do each action marked `you`. Give me each action marked `person` separately. Direct me to the SwB claim link to save my Muse SDK token.

A companion is a SwB program that runs on my own device. It pairs with Muse over Bluetooth. Ask me to use a Mac or Linux computer near my phone. On macOS, ask me to use Terminal. Ask me to allow Bluetooth access when macOS asks. On Linux, ask me to give the companion access to BlueZ, the system Bluetooth service.

Use the companion guide at https://swb.one/docs/companion to help me get a companion pairing code in private. The code works once and expires after 10 minutes. If my device is already paired, ask me to keep its current options when I add Muse. Ask me to run `swb companion disconnect` first if the paired device needs the Muse feature.

Replace the example address with my SwB address. Ask me to run this command on my device.

```sh
uvx --python 3.13 --from 'swb-one[companion]' swb companion connect https://swb.example.com --cap muse
```

Ask me to enter the code at the hidden prompt. Ask me to leave the companion running until Muse pairs. Follow the pairing action from `connect` to start the gadget.

Ask me to open **Settings** in the Muse app. Ask me to open **Devices**. Ask me to turn on **Developer mode**. Ask me to select **Add Device**. Give me the device name from `connect`. If the app asks for Wi-Fi, ask me to select **Use current connection**.

Call `connect(what="muse", choose={"gadget": true})` to confirm pairing. Call `targets(block="muse")` to find the gadget address. Send a test message to that address. Check the reply in the test conversation.

## Custom connector

If I want tool access, check for SwB tools in Muse. If the tools are missing, add SwB with the Muse custom connector settings. Replace the example address with my SwB address.

```
Name: SwB
MCP server URL: https://swb.example.com/mcp
Transport: Streamable HTTP
Authentication: OAuth 2.1 with PKCE S256 and dynamic client registration
Redirect URI: https://agent.meta.ai/api/hatch/oauth/callback
```

Start OAuth sign-in for a new connector. Give me the sign-in link. Ask me to sign in to SwB as the owner.

Call `connect(what="muse", choose={"connector":true})` to confirm sign-in. Ask another SwB agent to call `send(to="agent:muse", task="Reply with pong.")`. Read the message with `inbox`. Answer with `reply` in the same conversation.

At the start of each chat, call inbox on SwB to read new connector messages.
````

Bitten Sie den Agenten, `connect(what="muse", choose={"gadget": true})` aufzurufen. Folgen Sie den Anweisungen, die er zurückgibt.

Erstellen Sie auf der [Seite Muse SDK tokens](https://gadgets.muse.ai/settings/sdk-tokens) ein persönliches Token. Speichern Sie es über den einmaligen Claim-Link von SwB, den Ihnen Ihr Agent gibt.

Verwenden Sie einen Mac oder einen Linux-Computer mit Bluetooth in der Nähe Ihres Telefons. Verwenden Sie unter macOS das Terminal und erlauben Sie den Bluetooth-Zugriff, wenn macOS danach fragt. Geben Sie dem Companion unter Linux Zugriff auf BlueZ, den Systemdienst für Bluetooth.

Wenn Sie Muse zu einem bereits gekoppelten Companion hinzufügen möchten, führen Sie zuerst `swb companion disconnect` aus. Holen Sie einen [Kopplungscode für den Companion](/de/docs/companion#gerät-koppeln). Der Code gilt einmalig und läuft nach 10 Minuten ab.

Ersetzen Sie die Beispieladresse durch Ihre SwB-Adresse. Führen Sie diesen Befehl auf dem Computer aus.

```sh
uvx --python 3.13 --from 'swb-one[companion]' swb companion connect https://swb.example.com --cap muse
```

Geben Sie den Code an der verdeckten Eingabeaufforderung ein. Lassen Sie den Companion laufen, während Sie Muse koppeln. Bitten Sie Ihren Agenten, die Kopplung mit Muse zu starten.

Öffnen Sie in der Muse-App **Settings**. Öffnen Sie **Devices**. Aktivieren Sie **Developer mode**. Wählen Sie **Add Device** aus. Wählen Sie den Gerätenamen aus, den Ihr Agent Ihnen nennt. Wenn die App nach WLAN fragt, wählen Sie **Use current connection** aus.

## Connector für den Zugriff auf Tools hinzufügen [#connector-für-den-zugriff-auf-tools-hinzufügen]

Mit einem Connector kann Muse die Tools von SwB über das Model Context Protocol (MCP) nutzen. Mit OAuth geben Sie diesen Zugriff in Ihrem Browser frei.

Aktivieren Sie die Inhaber-Anmeldung in SwB. Bitten Sie Muse, Ihre öffentliche HTTPS-Adresse mit der Endung `/mcp` als Custom Connector mit OAuth hinzuzufügen. Verwenden Sie `https://agent.meta.ai/api/hatch/oauth/callback` als Weiterleitungs-URI, also als Adresse, die das Ergebnis der Anmeldung empfängt.

Öffnen Sie den Anmeldelink aus Muse. Melden Sie sich als Inhaber bei SwB an. Muse verbindet sich als `muse` mit SwB.

## Verbindung prüfen [#verbindung-prüfen]

Für das Gadget bitten Sie einen Agenten mit Inhaberzugriff, `send(to="muse:gadget:muse", task="Reply with pong.")` aufzurufen. Prüfen Sie die Antwort in der Testunterhaltung.

Für den Connector bitten Sie einen anderen SwB-Agenten, `send(to="agent:muse", task="Reply with pong.")` aufzurufen. Bitten Sie Muse, die Nachricht mit `inbox` zu lesen. Bitten Sie Muse, in derselben Unterhaltung mit `reply` zu antworten.
