Claude Terminal provides a web-based terminal interface with Claude Code CLI pre-installed, allowing you to access Claude's powerful AI capabilities directly from your Home Assistant dashboard. Claude Code is an AI coding assistant by Anthropic that can help you with Home Assistant configuration, automation creation, debugging, and general coding tasks.
Follow these steps to install the add-on:
- Navigate to your Home Assistant instance
- Go to Settings -> Add-ons -> Add-on Store
- Click the three dots in the top right corner and select "Repositories"
- Add the URL of this repository and click "Add"
- Find the "Claude Terminal" add-on and click on it
- Click "Install"
No configuration is needed! The add-on uses OAuth authentication, so you'll be prompted to log in to your Anthropic account the first time you use it.
The Claude Code CLI launches automatically when you open the terminal. You can interact with it using the following commands:
claude -i- Start an interactive Claude sessionclaude --help- See all available commandsclaude "your prompt"- Ask Claude a single questionclaude process myfile.py- Have Claude analyze a fileclaude --editor- Start an interactive editor session
All your files are stored in /config/claude-code, which persists between restarts.
Claude Terminal is particularly useful for Home Assistant tasks. Here are some example uses:
# Create a new automation
claude "create an automation that turns on lights when motion is detected, but only if it's dark"
# Debug an existing automation
claude "why isn't my automation working? Here's the code: [paste automation code]"
# Get help with syntax
claude "what's wrong with this YAML? [paste YAML]"
# Create a new configuration
claude "create a configuration for a zigbee device with these capabilities: [list capabilities]"
# Clean up entity names
claude "suggest better names for these entities: [paste entity list]"
# Create a template sensor
claude "create a template sensor that averages these temperature sensors: [paste sensor IDs]"
# Create a new integration
claude "help me create a custom integration for my smart coffee maker"
# Debug integration issues
claude "why is my custom component failing to load? Here's the error: [paste error]"
-
Authentication Issues:
- If you're having trouble with OAuth login, try clearing your browser cookies
- Make sure you have a valid Anthropic account with billing enabled
-
Connection Problems:
- Check your internet connection
- Verify the add-on can reach api.anthropic.com
-
Terminal Connection Issues:
- If the terminal disconnects, try refreshing the page
- Check if the add-on is still running in Home Assistant
Check the add-on logs for detailed information about any issues:
- Go to the add-on page in Home Assistant
- Click the "Logs" tab
Claude Terminal is designed with security in mind:
- The add-on runs in an isolated container
- Your code and queries go directly to Anthropic's API
- OAuth authentication ensures secure access to your account
To further enhance security:
- Log out when not actively using the terminal
- Monitor the add-on logs for unusual activity
- Keep your Anthropic account secure with a strong password
- For issues with the add-on itself, please open an issue on the GitHub repository
- For Claude Code-specific issues, refer to the Anthropic documentation
- For billing or API questions, visit Anthropic's support site
This add-on was created with the assistance of Claude Code itself! The entire development process, debugging, and documentation were all completed using Claude's AI capabilities.
This add-on is provided under the MIT License. Claude Code itself is subject to Anthropic's Commercial Terms of Service.