Installation¶
This guide walks you through installing the OpenCode Home Assistant plugin.
Prerequisites¶
Before installing the plugin, ensure you have:
- OpenCode installed and working
- Home Assistant running (2024.1 or later)
- ha-opencode integration installed in Home Assistant - see ha-opencode
Install the Plugin¶
Option 1: From npm (Recommended)¶
Option 2: From Local Path¶
If you've cloned the repository:
Option 3: From GitHub¶
Enable the Plugin¶
Add "ha-opencode" to your OpenCode configuration file (~/.config/opencode/opencode.json):
If you have other plugins, add it to the existing array:
Verify Installation¶
Start a new OpenCode session. You should see a notification that the plugin is loaded (if your terminal supports notifications).
Next Steps¶
- Configure the plugin (optional)
- Pair with Home Assistant