Talk to your home with AI. OpenCode turns OpenCode Zen — a curated AI gateway with fast, free, OpenAI-compatible models — into Home Assistant conversation agents. Add DeepSeek, MiniMax, GLM, Kimi, Big Pickle, and the free models, then chat with your home from Assist, the voice pipeline, or the conversation UI.
👀 New here? Start with the documentation site for a guided tour, or jump straight to Setup below — it only takes a few minutes and a free API key.
- 🤖 Conversation Agent — Add unlimited agents, one per model, via config subentries
- ⚙️ AI Tasks — Generate structured data on demand via the
ai_task.generate_dataservice - 🎤 Voice Pipeline Ready — Works with Assist and the voice pipeline
- 🏠 Home Assistant Control — Let the model call tools to control devices & entities
- 📎 Attachments — Send images/PDFs with your message
- 💬 Chat Log Streaming — Real-time token streaming in the conversation UI
- 🆓 Free Models — Use the free OpenCode Zen models out of the box
- Open Home Assistant → HACS → Integrations → ⋮ → Custom repositories
- Add
https://github.com/pranjal-joshi/opencodewith category Integration - Click Install → Restart Home Assistant
- Download the latest release
- Extract
custom_components/opencodeintoconfig/custom_components/ - Restart Home Assistant
- Get a free API key from opencode.ai/auth
- Go to Settings → Devices & Services → Add Integration → OpenCode
- Enter your API key (optionally override the Zen endpoint)
- Click Add conversation agent, pick a model, and you're done
- (Optional) Click Add AI task, pick a model for structured data generation
Full instructions, screenshots, and troubleshooting are available on the documentation site.
MIT — see LICENSE.
