{"id":50515359,"url":"https://github.com/dkmaker/hass-claude-code","last_synced_at":"2026-06-02T23:31:09.469Z","repository":{"id":338125016,"uuid":"1156667296","full_name":"dkmaker/hass-claude-code","owner":"dkmaker","description":"Claude Code for Home Assistant","archived":false,"fork":false,"pushed_at":"2026-02-13T08:25:41.000Z","size":905,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-13T08:31:31.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkmaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-12T23:02:11.000Z","updated_at":"2026-02-13T08:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dkmaker/hass-claude-code","commit_stats":null,"previous_names":["dkmaker/hass-claude-code"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dkmaker/hass-claude-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fhass-claude-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fhass-claude-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fhass-claude-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fhass-claude-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkmaker","download_url":"https://codeload.github.com/dkmaker/hass-claude-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fhass-claude-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33841995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T23:31:08.668Z","updated_at":"2026-06-02T23:31:09.463Z","avatar_url":"https://github.com/dkmaker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code for Home Assistant\n\nA Home Assistant add-on that runs [Claude Code](https://docs.anthropic.com/en/docs/claude-code) inside your HA instance with a web terminal, full API access, and a built-in MCP server providing structured tools for interacting with your smart home.\n\n## Features\n\n- **Web terminal** via Home Assistant Ingress (no port forwarding needed)\n- **Full HA API access** — search entities, call services, query devices/areas\n- **Built-in documentation search** — HA developer and user docs indexed and searchable\n- **Session persistence** — tmux keeps your Claude session alive across browser tab closes\n- **MCP server** with 11 tools for Home Assistant interaction\n- **Optional semantic search** — enable embeddings for AI-powered doc search\n\n## Installation\n\n### 1. Add the repository\n\n[![Open your Home Assistant instance and show the add add-on repository dialog.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fdkmaker%2Fhass-claude-code)\n\nOr manually:\n\n1. Go to **Settings** \u003e **Add-ons** \u003e **Add-on Store**\n2. Click the **three-dot menu** (top right) \u003e **Repositories**\n3. Add: `https://github.com/dkmaker/hass-claude-code`\n4. Click **Save**, then refresh\n\n### 2. Install the add-on\n\n1. Find **Claude Code** in the add-on store\n2. Click **Install** (the Docker image builds locally on your device — this takes a few minutes on first install)\n3. Go to the **Configuration** tab and set your **Anthropic API key**\n4. Click **Start**\n5. Open the **Claude Code** panel in the sidebar\n\n### How the build works\n\nHome Assistant builds the Docker image **locally on your device** when you install the add-on. There are no pre-built images to pull. The build process:\n\n1. Installs Node.js dependencies for the MCP server\n2. Clones the HA documentation from this repository\n3. Builds a keyword search index from the docs\n4. Installs Claude Code CLI, ttyd, tmux, and other tools\n5. Sets up s6-overlay services for process management\n\nFirst install takes several minutes depending on your hardware. Subsequent updates are faster due to Docker layer caching.\n\n## Configuration\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `api_key` | password | *required* | Your Anthropic API key |\n| `model` | string | *(empty)* | Claude model to use (leave empty for default) |\n| `yolo_mode` | bool | `false` | Skip permission prompts (use with caution) |\n| `enable_embeddings` | bool | `false` | Download AI model for semantic doc search (~87MB) |\n| `additional_packages` | list | `[]` | Extra Alpine packages to install (e.g. `python3`, `vim`) |\n\n## MCP Tools\n\nThe built-in MCP server (`home-assistant`) provides these tools to Claude:\n\n| Tool | Description |\n|------|-------------|\n| `search_entities` | Search entities by name, domain, or area |\n| `get_entity_state` | Get state and attributes of a specific entity |\n| `call_service` | Call any HA service (turn on lights, run automations, etc.) |\n| `search_automations` | Search automation entities |\n| `get_ha_config` | Get Home Assistant core configuration |\n| `list_areas` | List all defined areas |\n| `search_devices` | Search the device registry |\n| `get_config_entries` | List integration config entries |\n| `search_docs` | Search HA developer and user documentation |\n| `read_doc` | Read a specific documentation file |\n| `get_doc_stats` | Get documentation index statistics |\n\n## File Access\n\nThe add-on has access to:\n\n| Path | Description | Access |\n|------|-------------|--------|\n| `/homeassistant/` | HA configuration directory (including `.storage/`) | Read/Write |\n| `/config/` | Add-on configuration | Read/Write |\n| `/share/` | Shared storage between add-ons | Read/Write |\n| `/ssl/` | SSL certificates | Read-only |\n| `/media/` | Media files | Read-only |\n\n## Architecture\n\n```\naddon/\n  config.yaml              # HA add-on manifest\n  Dockerfile               # Multi-stage build\n  build.yaml               # Base images per architecture\n  rootfs/                  # Container filesystem overlay\n    etc/s6-overlay/        # s6 service definitions\n    usr/bin/               # Claude entrypoint script\n  mcp-server/              # Node.js MCP server\n    src/\n      index.ts             # MCP entry point (stdio transport)\n      ha-api.ts            # HA REST API tools\n      ha-websocket.ts      # HA WebSocket API tools\n      docs-search.ts       # Documentation search tools\n      db.ts, search.ts, embeddings.ts, indexer.ts  # Search engine\n```\n\nThe MCP server runs as a stdio child process of Claude Code (configured via `.mcp.json`). No separate network port needed.\n\n## Development\n\nTo test locally without HA:\n\n```bash\n# Build the Docker image\ndocker build -t claude-code-addon addon/\n\n# Run with your API key\ndocker run -it \\\n  -e SUPERVISOR_TOKEN=fake \\\n  -e ANTHROPIC_API_KEY=your-key \\\n  claude-code-addon\n```\n\n## Supported Architectures\n\n- `amd64` (x86_64)\n- `aarch64` (ARM64, e.g. Raspberry Pi 4/5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Fhass-claude-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkmaker%2Fhass-claude-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Fhass-claude-code/lists"}