openhome

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)

KeyWhat it does
ANTHROPIC_API_KEYClaude runs the home — understands you and decides actions. Get one at console.anthropic.com.
OPEN_HOME_MODELOptional model override. Defaults to a local model label; set a cloud model only if you opt in.

Voice reply (optional)

KeyWhat it does
ELEVENLABS_API_KEYLifelike spoken replies. From elevenlabs.io.
ELEVENLABS_VOICE_IDWhich voice (default: Rachel 21m00Tcm4TlvDq8ikWAM).
ELEVENLABS_MODELTTS model (default eleven_turbo_v2_5).

Music (optional)

KeyWhat it does
SPOTIFY_CLIENT_IDSpotify app client id. Create an app at developer.spotify.com/dashboard.
SPOTIFY_CLIENT_SECRETSpotify app secret.
SPOTIFY_REDIRECT_URIOAuth redirect, e.g. http://localhost:4700/audio/spotify/callback.
SOUNDCLOUD_USEROptional SoundCloud account for SoundCloud playback.

After setting these, sign in once at /music → Sign in with Spotify.

Transcription / extras (optional)

KeyWhat it does
GOOGLE_GENAI_TOKEN / GEMINI_API_KEYGemini — used for voice speech‑to‑text and as a fallback brain.
FIRECRAWL_API_KEYBetter web search/scrape for live‑info questions.

Security & network

KeyDefaultWhat it does
OPEN_HOME_PASSWORDchangemePassphrase 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

KeyDefaultWhat it does
OPEN_HOME_PORT4700HTTP API + dashboard.
OPEN_HOME_HTTPS_PORT4443HTTPS (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