← All guides

Guide

Let Claude or ChatGPT control your Sonos

Add a connector in Claude or ChatGPT with ZoneFoundry's address, confirm once on your phone, and then just tell the AI "play Jay Chou in the living room". No home bridge needed, but you do need to be signed in to your Sonos account.

Last updated: 2026-10-05

Written for 1.0.14. If you can't find the cards described here, update ZoneFoundry to 1.0.14 or later from the App Store. Older versions (1.0.10–1.0.13) don't have the four cards: for Claude or ChatGPT, copy the same link from Connect a new AI app on AI access; the rest is the same.

Level · Easy ~3 min No bridge needed

Before you start

  • ZoneFoundry signed in to your Sonos account (Sonos account in Settings shows it's connected). Local network only, without signing in, isn't enough.
  • An AI to connect: Claude and ChatGPT use a connector plus a 6-digit code; Super XiaoAi (Xiaomi phones) uses a link generated in its card; Muse (Meta, US only for now) uses a key generated in its card; Hermes and OpenClaw use a config file; Claude Code and scripts use an access key.

Where to find AI access

  • Settings (the gear at the top right of Home) → AI & Chat → AI access (under Connections in 1.0.10).
  • Or from Automations → Connected Agents → AI access.

Four cards: Claude, ChatGPT, Super XiaoAi, Muse

From 1.0.14, the AI apps section of AI access has a card each for Claude, ChatGPT, Super XiaoAi and Muse, so you can see at a glance what's connected:

  • Not connected: the card shows Connect on the right, with a line on how to connect, such as "Add a link in Claude settings, then enter a 6-digit code".
  • Connected: it shows Authorized, with recent usage underneath, such as "Last used 3 min ago · 128 calls · last: play_music", or "Never used yet".
  • Tap a card to see the app's icon and status (Not connected yet or Authorized), a Connected list if you've connected it before, and that app's own three steps under How to connect (Connect again once connected). The Claude and ChatGPT pages also have an Enter authorization code box at the bottom.
AI access: four cards, one per appThe AI apps section of AI access has four cards: Claude, ChatGPT, Super XiaoAi and Muse. Connected ones show Authorized and usage; the rest show Connect. Claude and ChatGPT open connector steps that end with a 6-digit code; Super XiaoAi generates a ready-to-paste link; Muse generates a key.AI access: four cards, one per appAI appsClaude✓ AuthorizedLast used 3 min ago · 128 calls› Settings → Connectors → Add custom connectorChatGPTConnectAdd a link in ChatGPT, then entera 6-digit code› Developer mode → Create → OAuthSuper XiaoAiConnectGet a ready-to-paste link for yourXiaomi phone› Generate link → Copy link / ShareMuseConnectMeta's assistant, US only ·connects with a key› Generate key → say one line in MuseOnly Claude / ChatGPT need a 6-digit code
Illustration: Claude is shown connected (Authorized plus usage; the numbers are only an example) and the other three are not connected yet.
The AI apps section of AI access: four cards for Claude, ChatGPT, Super XiaoAi and Muse, none connected yet, each showing Connect

Page order: the first time, before any AI is connected, it's the four AI apps cards → Other AI apps → Enter authorization code → Advanced. Once an AI is connected, Enter authorization code moves to the top. Other connector-based AI apps that aren't one of the four cards are listed under Other connected AI apps once connected.

Connect Claude or ChatGPT

1

Open the card and copy the connector link

AI access → tap the Claude or ChatGPT card. Under How to connect you'll find the connector link https://relay.zonefoundry.dev/mcp; tap Copy below it. Both cards use the same link; only where you add it differs.

2

Add the connector on your computer

The card lists these steps:

  • Claude: "On claude.ai or the Claude desktop app, open Settings → Connectors → Add custom connector, and paste this link", then "Click Connect. A page with a 6-digit code opens."
  • ChatGPT: "On chatgpt.com, open Settings → Apps → Advanced settings and turn on Developer mode." → "Back in Apps, choose Create. Paste this link as the MCP server URL and set Authentication to OAuth" → "Create it and connect."

An authorization page then opens on your computer, with a QR code and a 6-digit code. (Menu names inside Claude and ChatGPT may change; go by what their current screens show.)

3

Approve on your phone (within 5 minutes)

The authorization page is valid for 5 minutes. Use any one of these:

  • Scan (fastest): the top of the page says Scan with your phone to approve. Point your iPhone camera at the QR code, then tap Allow in the ZoneFoundry app.
  • Enter the code: in ZoneFoundry on your phone, use Enter authorization code at the bottom of the Claude or ChatGPT card (or the one on AI access) → type the 6 digits from the page → Authorize.
  • Tell the assistant: say or type "authorize 123456" (your code) to the ZoneFoundry assistant, or send the same thing in your linked WeChat / QQ. If your app is in Chinese, say 「授权 123456」; the authorization page shows both.
  • Already have a ZoneFoundry account: under Have a ZoneFoundry account? Sign in to approve here, choose Continue with Apple, Continue with GitHub or Continue with email code (for email, enter the 6-digit code we send you); if Google is reachable on your network, a Google sign-in button appears too. The page then asks “Allow Claude to control “your home”?” — tap Allow. Use the same account you’re signed in with in the app; if you never signed in to an account in the app, scan the QR code or enter the code instead.
  • If the authorization page opened on your phone, just tap Allow in the app.
4

Back to Claude / ChatGPT

The page shows "Approved — returning…"; go back to Claude or ChatGPT and start talking. The matching card in ZoneFoundry now shows Authorized.

Super XiaoAi (Xiaomi phones)

Needs Super XiaoAi 8.2.3.1619 or later on a Xiaomi phone or tablet; XiaoAi speakers aren't supported yet. No need to build the address by hand:

  1. AI access → Super XiaoAi card → Generate link → Copy link or Share it to your Xiaomi phone.
  2. In Super XiaoAi: MCP 服务 (MCP services) → + at the top right. Name: zonefoundry; Server URL: paste the link; leave Auth Token empty; tap 添加 (Add).
  3. In the chat, switch 快速 (Fast) to 专家 (Expert), then say "用 sonos 在客厅放周杰伦".

Full guide with pictures: control Sonos with Super XiaoAi →

Muse (Meta, US only for now)

Muse is Meta's personal assistant, available in the US only for now. It connects with a key, and the sentence you say to it is in English.

1

Generate a key in the card

AI access → Muse card. Under step 1, "Generate a key for Muse:", tap Generate key, then Copy key. The screen only shows a masked version; what you copy is the full key.

As the card warns: copy it now, because it can't be shown again after you leave the page. Anyone who has it can control your Sonos, so don't post it in groups. Lost it? Generate a new one.

2

Say this in Muse

Step 2 in the card, "In Muse, say:", has this sentence. Tap Copy and send it to Muse:

Add a custom connector for my Sonos speakers. It's a remote MCP server at https://relay.zonefoundry.dev/mcp and it needs a bearer token.
3

Paste the key into the secure box

When Muse asks for the token, paste the key into its secure entry box, not into the chat. Once connected, the Muse card in ZoneFoundry shows Authorized and its usage.

The Muse card after Generate key: a masked key, a Copy key button and an orange warning in step 1, followed by steps 2 and 3

Hermes, OpenClaw and other AI apps

The Other AI apps section of AI access covers any other AI app that supports custom connectors (MCP): add a connector with the same link, https://relay.zonefoundry.dev/mcp, and approve it with a 6-digit code. It also has Hermes / OpenClaw setup: add the config it gives you (it uses auth: oauth), then run the login command. You'll get a 6-digit code; approve it as in step 3.

Claude Code and scripts: access keys

  • AI access → Advanced → Access keys → under Generate a key, type a name (for example Claude) → tap Generate next to the name field → Copy the whole block. Paste the whole block into the assistant's chat and it sets itself up; nothing to type by hand.
  • The key is shown once only; after that you only see a masked version. You can Revoke it any time; it stops working immediately, and you can generate a new one.
  • Keys generated in the Super XiaoAi and Muse cards also appear under Your keys on the Access keys page.
  • In the older 1.0.9, there's no Advanced: AI access goes straight to name → Generate → Copy the whole block.

Manage connected AI apps

  • Each card shows recent usage. Tap the card, then an entry under Connected, for details: last used, total calls and most recent tool. AI apps that aren't one of the four cards are under Other connected AI apps and work the same way.
  • At the bottom of the details: connector-based ones (Claude, ChatGPT) have Disconnect, which cuts the AI off immediately (connect again from the AI app to use it again); key-based ones (Super XiaoAi, Muse) have Revoke this key, which stops it working immediately, and you can generate a new one in the card.
  • Connections are shared by the whole home, and each AI or key can be disconnected or revoked on its own.

What it can do once connected

Just talk normally. ZoneFoundry gives the AI 27 tools in total:

  • Play: songs, artists, albums, playlists, news, radio, search (without playing), play history, favorites, Sonos playlists, and your taste summary.
  • Control: play/pause, previous/next, seek, volume (at most 70 in one go, and ±30 per relative change), mute, shuffle/repeat.
  • Rooms: list rooms, what's playing, group/ungroup, move the music to another room, switch to TV / line-in, home theater (night mode, speech enhancement). Switching to TV, to line-in or back to music goes through the Sonos cloud, so you don't need to be home or have the app open (Sonos account sign-in needed).
  • Other: announce a message, reminders (set / list / cancel), undo the last action.

It can also set up a scheduled scene: say “play white noise in the bedroom at 11 pm the day after tomorrow” and the scene and its schedule are created; say “cancel” within 10 minutes to undo. See Schedule Sonos with one sentence.

Do AI requests go into the queue?

  • With the home bridge: straight into the Sonos queue, so you can skip and see the list.
  • Without a bridge: sound starts right away and plays on the speaker directly, but isn't in the play queue yet; open ZoneFoundry later and the list loads automatically.

FAQ

The code expired?

If you don't approve within 5 minutes it expires, and the page says "Expired — go back and connect again." Go back to Claude or ChatGPT and connect again.

Said "authorize 123456" and nothing happened?

Make sure you said it to the ZoneFoundry assistant or in your linked WeChat / QQ. If the app is in Chinese, use 「授权 123456」 instead. You can also type the code under AI access → Enter authorization code.

Why don't AI-requested songs show in the Sonos app's queue?

Without the home bridge the songs play on the speaker directly and aren't in the play queue yet; they load once you open ZoneFoundry. With a bridge they go straight into the queue.

Can others in my home use it?

Yes, it's shared by the home. Each AI or key can be disconnected or revoked on its own.

I connected Claude Code with an access key. Why does the Claude card still say Connect?

The Claude and ChatGPT cards only count connections authorized through the connector (the 6-digit code). Anything connected with an access key, such as Claude Code or a script, is listed under Advanced → Access keys instead.

Do I need the home bridge?

No, just a Sonos account sign-in. The bridge only decides whether AI-requested songs go straight into the queue.

No fixed command phrasing to memorise

Telling Claude or ChatGPT "play Jay Chou in the living room" is enough; no fixed syntax to memorise. ZoneFoundry is an iOS app that works with your existing Sonos.