Repository navigation
Installation and Setup
Pajeronda edited this page Dec 27, 2025
·
2 revisions
Getting AI Code Task up and running involves two main steps: installing the custom component and adding the card to your dashboard.
- Open HACS in your Home Assistant instance.
- Go to Integrations.
- Click the three dots in the top right corner and select Custom repositories.
- Paste the URL:
https://github.com/pajeronda/ai_code_task - Select Integration as the category and click Add.
- Search for "AI Code Task" and click Download.
- Restart Home Assistant.
- Download the latest release.
- Extract the
ai_code_taskfolder from thecustom_componentsdirectory in the zip file. - Copy this folder into your Home Assistant's
config/custom_components/directory. - Restart Home Assistant.
- Go to Settings > Devices & Services.
- Click Add Integration.
- Search for AI Code Task and follow the on-screen instructions.
-
Configuration Options:
-
Default Provider: Select the
ai_taskentity you want to use (e.g.,xAI Conversation). - Assistant Name: (Optional) Give your assistant a custom name.
- Advanced Mode: Enable this to configure the System Prompt and Context Limits.
-
Default Provider: Select the
- Open your dashboard and enter Edit Mode.
- Click Add Card.
- Search for AI Code Task.
- Save the card.
Tip
This card works best in Panel Mode (single card view). This gives you the full width for the dual-pane layout, making it much easier to edit code and chat simultaneously.
AI Code Task uses Home Assistant's AI Task platform. To use a specific model, you must have an integration that provides an ai_task entity.
- xAI Conversation (Recommended): Requires the xAI Conversation integration, which exposes robust coding capabilities.
-
Other Providers: Any integration that acts as an
ai_taskprovider can be used. (Note: Standard "Conversation" agents like OpenAI must be wrapped or supported by an adapter to appear here).
AI Code Task β Bring your AI Assistant into your Home Assistant Dashboard.