Skip to content

airy10/opencode_ha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode Home Assistant Integration

This integration allows you to use the OpenCode API as a conversation agent in Home Assistant. The code is based on the official Open Router component.

Installation

Place the custom_components folder in your configuration directory (or add its contents to an existing custom_components folder). Alternatively install via HACS.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Configuration

To add the OpenCode service to your Home Assistant instance, use this My button:

Open your Home Assistant instance and start setting up a new integration.

Manual configuration steps:

  1. Browse to your Home Assistant instance.
  2. Go to Settings > Devices & services.
  3. In the bottom right corner, select the Add Integration button.
  4. From the list, select OpenCode.
  5. Follow the instructions on screen to complete the setup.

Generate an API Key

The API key is used to authenticate requests to OpenCode. To generate an API key:

  1. Log in to OpenCode Zen or sign up for an account.
  2. Go to the API Keys section in your account settings.
  3. Select Create API Key.
  4. Give the key a name and configure any necessary limits.

Supported functionality

The OpenCode integration allows you to generate data using AI models available on OpenCode. You can use this functionality in automations, scripts, or directly in the Home Assistant UI.

Removing the integration

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three dots menu. Then, select Delete.

About

OpenCode component for Home Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages