OpenCode Home Assistant Integration¶
Unofficial Home Assistant Integration for OpenCode
Unofficial Project
This is an unofficial community project and is not affiliated with, endorsed by, or supported by OpenCode or Anomaly. OpenCode branding is used in accordance with their brand guidelines.
A native Home Assistant integration for OpenCode, the AI coding assistant.
Overview¶
This integration enables you to:
- Monitor OpenCode sessions in real-time
- Control sessions from Home Assistant or your mobile device
- Automate responses to permission requests
- Visualize sessions with a custom Lovelace card
Architecture¶
┌─────────────────┐ WebSocket ┌──────────────────┐
│ │◄────────────────►│ │
│ OpenCode │ │ Home Assistant │
│ + Plugin │ │ + Integration │
│ │ │ │
└─────────────────┘ └──────────────────┘
│
▼
┌──────────────────┐
│ Lovelace Card │
│ Mobile App │
│ Automations │
└──────────────────┘
The integration communicates directly with OpenCode via WebSocket - no MQTT broker required.
Quick Start¶
- Install the integration
- Set up pairing
- Add the Lovelace card
- Configure blueprints for mobile notifications
Requirements¶
- Home Assistant 2024.1 or later
- opencode-homeassistant plugin installed in OpenCode
Support¶
- GitHub Issues - Report bugs or request features
- OpenCode Plugin Docs - Plugin documentation