Alexa CLI Control

VerifiedCaution

Control Amazon Echo devices and smart home via the alexacli CLI. Speak, send voice commands, and query Alexa.

Sby Skills Guide Bot
ProductivityBeginner
8/15/2026
Claude CodeCursorWindsurfCodex
#smart-home#alexa#voice-control#iot#cli

Recommended for

Automated summary

Drives Amazon Echo devices and smart home hardware from the terminal through the `alexacli` tool, sending text-to-speech, announcements, or spoken-style commands to Alexa.

Strengths

  • Covers several jobs with one command: targeted text-to-speech, announce-to-all, smart home commands, and queries that return Alexa's reply.
  • Device names are matched partially and case-insensitively, which keeps commands short.
  • `--json` output on `devices`, `ask`, and `history` makes it easy to script or chain into an agent workflow.
  • The `ask` subcommand returns Alexa's spoken answer as text, useful for checking thermostat state or calendar info.

Limitations

  • Built on Amazon's unofficial API (the same one the Alexa app uses), so stability is not guaranteed.
  • The refresh token lasts roughly 14 days; `alexacli auth` must be re-run when it expires.
  • Requires installing the `alexacli` binary via brew or go plus a working Amazon account login.
  • Answers from `ask` depend on Alexa's own interpretation and are not structured data.
When to use it

Use it when a user wants an Echo to speak, broadcast an announcement across rooms, or trigger a smart home action from the command line.

When not to use it

Avoid it when you need a stable, documented smart home integration with guarantees, or when no Echo devices are set up on the Amazon account.

Security analysis

Caution
Quality score88/100

The skill facilitates control of physical devices through a third-party CLI and unofficial API. While there is no malicious intent or destructive commands, the ability to lock/unlock doors, adjust thermostats, and send announcements across home devices warrants caution. Credential handling and device control should be reviewed by the user.

Findings
  • •Uses an external CLI (alexacli) that authenticates to Amazon's unofficial Alexa API and can control physical smart home devices including locks, lights, and thermostats.
  • •Commands are executed via shell but no declared allowed-tools are specified in the skill metadata.
  • •Potential for unintended device actions if natural language commands are ambiguous, though no destructive or exfiltrating behavior is present.
How this analysis is made

Examples

Announce a build result
Announce on all my Echo devices that the deployment finished successfully.
Control lights by voice
Tell the Kitchen Echo to dim the living room lights to 30 percent.
Query thermostat state
Ask the bedroom Echo what the thermostat is currently set to and show me the answer.

name: alexa-cli description: Control Amazon Alexa devices and smart home via the alexacli CLI. Use when a user asks to speak/announce on Echo devices, control lights/thermostats/locks, send voice commands, or query Alexa. homepage: https://github.com/buddyh/alexa-cli metadata: {"clawdbot":{"emoji":"🔊","requires":{"bins":["alexacli"]},"install":[{"id":"brew","kind":"brew","formula":"buddyh/tap/alexacli","bins":["alexacli"],"label":"Install alexacli (brew)"},{"id":"go","kind":"go","module":"github.com/buddyh/alexa-cli/cmd/alexa@latest","bins":["alexacli"],"label":"Install alexa-cli (go)"}]}}

Alexa CLI

Use alexacli to control Amazon Echo devices and smart home via the unofficial Alexa API.

Devices

alexacli devices
alexacli devices --json

Text-to-Speech

# Speak on a specific device
alexacli speak "Hello world" -d "Kitchen Echo"

# Announce to ALL devices
alexacli speak "Dinner is ready!" --announce

# Device name matching is flexible
alexacli speak "Build complete" -d Kitchen

Voice Commands (Smart Home Control)

Send any command as if you spoke it to Alexa:

# Lights
alexacli command "turn off the living room lights" -d Kitchen
alexacli command "dim the bedroom lights to 50 percent" -d Bedroom

# Thermostat
alexacli command "set thermostat to 72 degrees" -d Bedroom

# Locks
alexacli command "lock the front door" -d Kitchen

# Music
alexacli command "play jazz music" -d "Living Room"

# Timers
alexacli command "set a timer for 10 minutes" -d Kitchen

The -d flag specifies which Echo processes the command.

Ask (Get Response Back)

Send a command and capture Alexa's text response:

alexacli ask "what's the thermostat set to" -d Kitchen
# Output: The thermostat is set to 68 degrees.

alexacli ask "what's on my calendar today" -d Kitchen --json

Useful for querying device state or getting Alexa-specific info.

History

alexacli history
alexacli history --limit 5 --json

Command Reference

| Command | Description | |---------|-------------| | alexacli devices | List all Echo devices | | alexacli speak <text> -d <device> | Text-to-speech on device | | alexacli speak <text> --announce | Announce to all devices | | alexacli command <text> -d <device> | Voice command (smart home, music, etc.) | | alexacli ask <text> -d <device> | Send command, get response back | | alexacli history | View recent voice activity | | alexacli auth | Configure authentication |

Notes

  • Uses Amazon's unofficial API (same as Alexa app)
  • Refresh token valid ~14 days, re-run alexacli auth if expired
  • Device names support partial, case-insensitive matching
  • For AI/agentic use, alexacli command with natural language is preferred

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/alexa-cli-control-mstwj09i/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/alexa-cli-control-mstwj09i' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/alexa-cli-control-mstwj09i/download' --output '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md.part' && mv '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md.part' '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && test -s '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/alexa-cli' && cp -R '.skill-downloads/alexa-cli-control-mstwj09i' '.claude/skills/alexa-cli'

Cursor
test -f '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && test -s '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/alexa-cli' && cp -R '.skill-downloads/alexa-cli-control-mstwj09i' '.cursor/skills/alexa-cli'

Codex
test -f '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && test -s '.skill-downloads/alexa-cli-control-mstwj09i/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/alexa-cli' && cp -R '.skill-downloads/alexa-cli-control-mstwj09i' '.agents/skills/alexa-cli'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/alexa-cli-control-mstwj09i'

openskills read 'alexa-cli-control-mstwj09i'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/alexa-cli-control-mstwj09i/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills