Configuration
All configuration lives in one file on your hub:
~/.openhome/openhome.env
It's a simple KEY=value env file, chmod 600, and it **never leaves your
machine**. Edit it with openhome edit, then openhome restart.
Your API keys are yours. They sit on your hub and are used to call the
services you enabled — nothing is proxied through openhome servers.
The brain (required)
| Key | What it does |
|---|---|
ANTHROPIC_API_KEY | Claude runs the home — understands you and decides actions. Get one at console.anthropic.com. |
OPEN_HOME_MODEL | Optional model override. Defaults to a local model label; set a cloud model only if you opt in. |
Voice reply (optional)
| Key | What it does |
|---|---|
ELEVENLABS_API_KEY | Lifelike spoken replies. From elevenlabs.io. |
ELEVENLABS_VOICE_ID | Which voice (default: Rachel 21m00Tcm4TlvDq8ikWAM). |
ELEVENLABS_MODEL | TTS model (default eleven_turbo_v2_5). |
Music (optional)
| Key | What it does |
|---|---|
SPOTIFY_CLIENT_ID | Spotify app client id. Create an app at developer.spotify.com/dashboard. |
SPOTIFY_CLIENT_SECRET | Spotify app secret. |
SPOTIFY_REDIRECT_URI | OAuth redirect, e.g. http://localhost:4700/audio/spotify/callback. |
SOUNDCLOUD_USER | Optional SoundCloud account for SoundCloud playback. |
After setting these, sign in once at /music → Sign in with Spotify.
Transcription / extras (optional)
| Key | What it does |
|---|---|
GOOGLE_GENAI_TOKEN / GEMINI_API_KEY | Gemini — used for voice speech‑to‑text and as a fallback brain. |
FIRECRAWL_API_KEY | Better web search/scrape for live‑info questions. |
Security & network
| Key | Default | What it does |
|---|---|---|
OPEN_HOME_PASSWORD | changeme | Passphrase to reach the hub. Change this. When set, every route (except /health and login) requires a signed session. Unset = open local dev. |
OPEN_HOME_ALLOW_IPS | — | Optional comma‑separated allowlist (checked against CF‑Connecting‑IP). Belt‑and‑suspenders on top of the passphrase. |
OPEN_HOME_CLOUD_URL | — | The openhome cloud control‑plane used for app sign‑in / SSO. |
Ports & runtime
| Key | Default | What it does |
|---|---|---|
OPEN_HOME_PORT | 4700 | HTTP API + dashboard. |
OPEN_HOME_HTTPS_PORT | 4443 | HTTPS (required for in‑browser mic/voice). |
OPEN_HOME_DEV | — | Enables in‑app test tooling (e.g. the emulated thermostat). |
SNAPCAST_HOST / SNAPCAST_PORT | — | Multi‑room synced audio via Snapcast. |
Example
ANTHROPIC_API_KEY=sk-ant-...
ELEVENLABS_API_KEY=sk_...
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
SPOTIFY_CLIENT_ID=...
SPOTIFY_CLIENT_SECRET=...
SPOTIFY_REDIRECT_URI=http://localhost:4700/audio/spotify/callback
OPEN_HOME_PASSWORD=choose-a-strong-passphrase
OPEN_HOME_PORT=4700
Changes take effect after openhome restart.
Next: Connecting Devices · Security & Privacy