ha-cli

ha-cli is a skill for Claude Code from larsboes/Axon. It costs 108 tokens per session (321 once invoked), scanned A, original, MIT.

A command-line tool for querying and controlling a configured Home Assistant installation. Home Assistant is software that connects and automates smart-home devices such as lights, sensors, and thermostats.

In plain words
What is it for?
Use it to list devices and states, inspect automations and integrations, call Home Assistant services, reload automations, or save a private device inventory.
Why use it?
It provides one place to inspect smart-home devices and settings or trigger actions, while keeping private connection details out of public files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the home-automation plugin — 10 skills shipped together

Good fit Use it to list devices and states, inspect automations and integrations, call Home Assistant services, reload automations, or save a private device inventory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/larsboes/axon/ha-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add larsboes/Axon --skill ha-cli
Clone the repo
git clone --depth 1 https://github.com/larsboes/Axon

Made for: Claude Code.

Or install home-automation, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/larsboes/axon/ha-cli/github.svg)](https://agentmods.dev/skills/larsboes/axon/ha-cli)
Your own site
<a href="https://agentmods.dev/skills/larsboes/axon/ha-cli"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/larsboes/axon/ha-cli"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.00321
Opus 5.5 $0.00043 $0.00128
Sonnet 5.5 $0.00022 $0.00064
Haiku 4.5 $0.00011 $0.00032

Measured 1mo ago against content hash 28255fcf9503, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Packs/home-automation/skills/ha-cli/SKILL.md · 33 lines

What it actually says

ha-cli

Generic Home Assistant REST tooling. Non-secret connection facts come from the active overlay; the API token comes from the configured private secret mechanism at runtime.

Commands

scripts/ha-cli config
scripts/ha-cli domains
scripts/ha-cli states [DOMAIN]
scripts/ha-cli get ENTITY_ID
scripts/ha-cli automations
scripts/ha-cli unavailable
scripts/ha-cli entries
scripts/ha-cli call DOMAIN SERVICE [JSON]
scripts/ha-cli reload-automations
scripts/ha-inventory [--overlay PATH] [--output PATH]

Read operations may reveal private entity IDs, locations, devices, URLs, and integration names. Keep their output local. ha-inventory writes to the active overlay by default and must never target the Axon repository.

Service calls and reloads are writes. Confirm the target and requested action before invoking them. A missing token or endpoint is an error; do not substitute remembered deployment facts.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +56 tokens per session 28255fcf9503
  2. 2mo ago First seen · 33 lines · 52 tokens per session scan A b9144e50db6c

Subscribe to this mod's changes

ha-cli is a skill published in the GitHub repository larsboes/Axon (1 stars, last pushed 1mo ago), licensed MIT. It adds 108 tokens to every session and 321 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ha-cli compared with skills from other repositories

ha-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-clilarsboes/AxonSkill11mo agoMITA108Claude Code
usecase-smart-home-brainCoWork-OS/CoWork-OSSkill537todayMITA22Claude Code, Codex
openhuetaracodlabs/aidenSkill87518d agoAGPL-3.0A15Claude Code, Codex
freecadEldanRing/qubiclSkill137d agoApache-2.0A23Claude Code, Codex
ryu-local-modelamajorai/ryuSkill44yesterdaynoneA75Claude Code, Codex
beryl-it-techStunspot/nova-the-optimal-ai-mindSkill3110d agononeA17Claude Code, Codex
it-work-reviewerStunspot/nova-the-optimal-ai-mindSkill3110d agononeA17Claude Code, Codex