ha-cli

ha-cli is a skill for Claude Code, Codex from larsboes/Axon. It costs 52 tokens per session (265 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 CodeCodex

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.

agentmods
npx agentmods add skills/larsboes/axon/ha-cli
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, Codex.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.00265
Opus 5 $0.00026 $0.00133
Sonnet 5 $0.00010 $0.00053
Haiku 4.5 $0.00005 $0.00026

Measured 3d ago against content hash b9144e50db6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (0 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 265 once invoked, about $0.0003 per session on Opus 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.