--- id: alexapy version: "1.30.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # AlexaPy — Python API to control Amazon Echo Devices Programmatically. License: permissive · Maintenance: active · Downloads: 672.7K/mo ## 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 above — verify before relying. alexapy provides programmatic control of Amazon Echo and Alexa devices through Python, enabling automation and integration with home automation systems. 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 pip install alexapy uv add alexapy poetry add alexapy ## Installing AlexaPy 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. 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()) Requires valid Amazon account credentials and an active Alexa device; no official API means authentication method may change without notice. 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_current - Install friction: low - Maintenance: active - Downloads: 672.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags alexa device control python, echo automation library, amazon alexa api python, home assistant alexa integration, programmatic echo control, home-automation, alexa-control, reverse-engineered-api [View on SkillFed](https://skillfed.io/packages/alexapy) · [View on PyPI](https://pypi.org/project/alexapy/)