Skip to content

OpenCode Home Assistant Integration

OpenCode

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

  1. Install the integration
  2. Set up pairing
  3. Add the Lovelace card
  4. Configure blueprints for mobile notifications

Requirements

Support