Alexa Cli.Bak
/install alexa-cli-bak
Alexa CLI
Use alexacli to control Amazon Echo devices and smart home via the unofficial Alexa API.
Authentication
# Browser login (recommended)
alexacli auth
# Non-US accounts
alexacli auth --domain amazon.de
alexacli auth --domain amazon.co.uk
# Check auth status
alexacli auth status
alexacli auth status --verify # validate token against API
# Remove credentials
alexacli auth logout
Token is valid ~14 days. Configuration stored in ~/.alexa-cli/config.json.
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, switches, plugs
alexacli command "turn off the living room lights" -d Kitchen
alexacli command "dim the bedroom lights to 50 percent" -d Bedroom
# Thermostats
alexacli command "set thermostat to 72 degrees" -d Bedroom
alexacli command "what's the temperature inside" -d Kitchen
# Locks
alexacli command "lock the front door" -d Kitchen
# Music
alexacli command "play jazz music" -d "Living Room"
alexacli command "stop" -d "Living Room"
# Questions
alexacli command "what's the weather" -d Kitchen
# Timers
alexacli command "set a timer for 10 minutes" -d Kitchen
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
Alexa+ (LLM Conversations)
Interact with Amazon's LLM-powered assistant:
# Quick start - auto-selects conversation
alexacli askplus -d "Echo Show" "What's the capital of France?"
# Multi-turn retains context
alexacli askplus -d "Echo Show" "What about Germany?"
# List conversations
alexacli conversations
# View conversation history
alexacli fragments "amzn1.conversation.xxx"
Audio Playback
Play MP3 audio through Echo devices:
alexacli play --url "https://example.com/audio.mp3" -d "Echo Show"
Requirements: MP3 at 48kbps, 22050Hz sample rate, HTTPS URL.
History
alexacli history
alexacli history --limit 5
alexacli history --json
Command Reference
| Command | Description |
|---|---|
alexacli devices |
List all Echo devices |
alexacli speak \x3Ctext> -d \x3Cdevice> |
Text-to-speech on device |
alexacli speak \x3Ctext> --announce |
Announce to all devices |
alexacli command \x3Ctext> -d \x3Cdevice> |
Voice command (smart home, music, etc.) |
alexacli ask \x3Ctext> -d \x3Cdevice> |
Send command, get response back |
alexacli conversations |
List Alexa+ conversation IDs |
alexacli fragments \x3Cid> |
View Alexa+ conversation history |
alexacli askplus -d \x3Cdevice> \x3Ctext> |
Alexa+ LLM conversation |
alexacli play --url \x3Curl> -d \x3Cdevice> |
Play MP3 via SSML |
alexacli auth |
Browser login or manual token |
alexacli auth status [--verify] |
Show auth status |
alexacli auth logout |
Remove credentials |
alexacli history |
View recent voice activity |
Notes
- Uses Amazon's unofficial API (same as Alexa app)
- Refresh token valid ~14 days, re-run
alexacli authif expired - Device names support partial, case-insensitive matching
- For AI/agentic use,
alexacli commandwith natural language is preferred - Add
--verboseor-vto any command for debug output
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install alexa-cli-bak - 安装完成后,直接呼叫该 Skill 的名称或使用
/alexa-cli-bak触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Alexa Cli.Bak 是什么?
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,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。
如何安装 Alexa Cli.Bak?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install alexa-cli-bak」即可一键安装,无需额外配置。
Alexa Cli.Bak 是免费的吗?
是的,Alexa Cli.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Alexa Cli.Bak 支持哪些平台?
Alexa Cli.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Alexa Cli.Bak?
由 Knochen666(@knochen666)开发并维护,当前版本 v1.0.0。