AlexaPy
Python API to control Amazon Echo Devices Programmatically.
Decision gist · record as of 2026-08-14
Yes, if you need programmatic Alexa control and accept the risk that undocumented API endpoints may break. Active maintenance, low install friction, and permissive licensing make it suitable for Home Assistant integrations and home automation projects. Not recommended for production systems requiring guaranteed stability.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires valid Amazon account credentials and an active Alexa device; no official API means authentication method may change without notice.
- Low install friction with a pure-wheel distribution.
- Active maintenance as of 23 days ago.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-07-22 (23 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 672,721 downloads/mo, #5,400 on PyPI
Alternatives
Verify before relying
pip install alexapy
import asyncio
from alexapy import AlexaAPI
async def main():
alexa = AlexaAPI()
# Requires Amazon credentials and device setup
await alexa.login()
asyncio.run(main())- Stability and reliability given that Alexa has no official API and the library may break without warning
- Current feature completeness and which Alexa device types are fully supported
- Whether authcaptureproxy dependency is a custom or third-party package and its maintenance status
What it is and what it does
alexapy is a Python library for controlling Amazon Echo and Alexa devices programmatically without an official Amazon API. It was originally built to power the alexa_media_player custom component for Home Assistant, allowing developers to automate Echo devices, query their state, and integrate them into broader home automation workflows.
The library handles authentication, device discovery, and command execution through reverse-engineered Alexa endpoints. It uses aiohttp for async HTTP communication, cryptography for secure operations, and beautifulsoup4 for parsing responses. Because it relies on undocumented endpoints rather than an official API, functionality may break when Amazon changes their service—this is a known and documented limitation.
Use it for
- Automate Echo device control in Home Assistant or other home automation platforms
- Build scripts to query Alexa device state and trigger actions programmatically
- Integrate Alexa devices into custom Python applications that need device discovery and control
- Create voice-triggered workflows that respond to Alexa commands via this library
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need programmatic Alexa control and accept the risk that undocumented API endpoints may break.
Active maintenance, low install friction, and permissive licensing make it suitable for Home Assistant integrations and home automation projects. Not recommended for production systems requiring guaranteed stability.
Install
alexapy on PyPI
Before you install
Low install friction with a pure-wheel distribution. Active maintenance as of 23 days ago. Depends on 12 runtime packages including aiohttp, requests, and cryptography for async and secure communication.
Requires valid Amazon account credentials and an active Alexa device; no official API means authentication method may change without notice.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install alexapy
import asyncio
from alexapy import AlexaAPI
async def main():
alexa = AlexaAPI()
# Requires Amazon credentials and device setup
await alexa.login()
asyncio.run(main())
Verify before relying
- Stability and reliability given that Alexa has no official API and the library may break without warning
- Current feature completeness and which Alexa device types are fully supported
- Whether authcaptureproxy dependency is a custom or third-party package and its maintenance status
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 12 packagesaiofilesaiohttpauthcaptureproxybackoffbeautifulsoup4certificryptographyhttpxpyotprequestssimplejsonyarl |
| Maintenance | Actively maintained 23 days since the last release |
| First released | |
| Downloads | 672,721 / month, #5,400 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: alexapy-1.30.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “echo automation library”
- AlexaPyalexapy provides programmatic control of Amazon Echo and Alexa…
- aioamazondevicesAsync Python library for controlling and querying Amazon Alexa…
- multipingMultiPing sends ICMP echo requests (pings) to one or many IP…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aioamazondevices · plugwise · aiomusiccast · teslajsonpy · zigpy-xbee · zigpy-znp · aiohomekit · switchbot-api · aioslimproto · pyhiveapi