Awesome-openclaw-skills alexa-cli
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.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/alexa-cli" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-alexa-cli && rm -rf "$T"
manifest:
skills/alexa-cli/skill.mdsource content
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 |
|---|---|
| List all Echo devices |
| Text-to-speech on device |
| Announce to all devices |
| Voice command (smart home, music, etc.) |
| Send command, get response back |
| View recent voice activity |
| Configure authentication |
Notes
- Uses Amazon's unofficial API (same as Alexa app)
- Refresh token valid ~14 days, re-run
if expiredalexacli auth - Device names support partial, case-insensitive matching
- For AI/agentic use,
with natural language is preferredalexacli command