通过“alexacli”CLI 控制 Amazon Alexa 设备和智能家居。当用户要求在 Echo 设备上讲话/宣布、控制灯/恒温器/锁、发送语音命令或查询 Alexa 时使用。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install alexa-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install alexa-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/alexa-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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: { "openclaw": { "emoji": "🔊", "requires": { "bins": ["alexacli"] }, "env": { "ALEXA_REFRESH_TOKEN": "optional" }, "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)", }, ], }, } ---
Use alexacli to control Amazon Echo devices and smart home via the unofficial Alexa API.
# 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.
alexacli devices
alexacli devices --json
# 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
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
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
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"
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.
alexacli history
alexacli history --limit 5
alexacli history --json
| Command | Description | |---------|-------------| | alexacli devices | List all Echo devices | | alexacli speak | Text-to-speech on device | | alexacli speak | Announce to all devices | | alexacli command | Voice command (smart home, music, etc.) | | alexacli ask | Send command, get response back | | alexacli conversations | List Alexa+ conversation IDs | | alexacli fragments | View Alexa+ conversation history | | alexacli askplus -d | Alexa+ LLM conversation | | alexacli play --url | 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 |
alexacli auth if expiredalexacli command with natural language is preferred--verbose or -v to any command for debug output安装 Alexa CLI 后,可以对 AI 说这些话来触发它
Help me get started with Alexa CLI
Explains what Alexa CLI does, walks through the setup, and runs a quick demo based on your current project
Use Alexa CLI to control Amazon Alexa devices and smart home via the `alexacli` CLI
Invokes Alexa CLI with the right parameters and returns the result directly in the conversation
What can I do with Alexa CLI in my design & creative workflow?
Lists the top use cases for Alexa CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/alexa-cli/ 目录(个人级,所有项目可用),或 .claude/skills/alexa-cli/(项目级)。重启 AI 客户端后,用 /alexa-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Alexa CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Alexa CLI 可免费安装使用。请查阅仓库了解许可证信息。
通过“alexacli”CLI 控制 Amazon Alexa 设备和智能家居。当用户要求在 Echo 设备上讲话/宣布、控制灯/恒温器/锁、发送语音命令或查询 Alexa 时使用。
Alexa CLI 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Alexa CLI
Identifies repetitive steps in your workflow and sets up Alexa CLI to handle them automatically