tailscale
Asynchronous Python client for the Tailscale API.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is well-suited for anyone integrating Tailscale into Python automation, Home Assistant, or infrastructure tooling. Requires Python 3.11+ and a valid Tailscale API key; no other gotchas.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Tailscale API key (tskey-...) issued by Tailscale and a tailnet name to authenticate.
- Low install friction with a pure Python wheel.
- Actively maintained with recent releases; last commit 2026-08-14.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows use in commercial and private projects with minimal restrictions—only requires preserving copyright and license notices.
last release 2026-04-21 (115 days) · last repo commit 2026-08-14 · 66 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 145,700 downloads/mo, #11,120 on PyPI
Alternatives
Verify before relying
import asyncio
from tailscale import Tailscale
async def main():
async with Tailscale(tailnet="your-tailnet", api_key="tskey-...") as ts:
devices = await ts.devices()
for device_id, device in devices.items():
print(f"{device.hostname} ({device.os})")
asyncio.run(main())- Whether the optional CLI extra (tailscale[cli]) adds significant dependencies or install friction beyond the base package.
- Performance characteristics when managing large tailnets (number of devices, API call latency).
- Compatibility with Tailscale API versions and any breaking changes in recent Tailscale service updates.
What it is and what it does
This package provides an async Python interface to the Tailscale API, letting you programmatically query device status, manage network configuration, and automate tailnet operations. It wraps HTTP calls to Tailscale's public API endpoints with typed dataclasses (Device, User, DNS settings, etc.) and exposes them through an async context manager. The client handles authentication via API key or OAuth, request timeouts, and JSON serialization using orjson for performance.
Typical use cases include Home Assistant integrations that trigger automations based on device connectivity, third-party tools that need to authorize or rename devices, and infrastructure scripts that manage subnet routes or DNS settings across a tailnet. An optional CLI is available for direct terminal access to the same operations without writing Python code.
Use it for
- Home Assistant automations triggered by Tailscale device status changes or network events.
- Infrastructure scripts that authorize, rename, or delete devices from a tailnet programmatically.
- Third-party dashboards or monitoring tools that query device addresses, OS versions, and last-seen timestamps.
- DNS and subnet route management automation across multiple tailnet devices.
- Terminal-based CLI for quick device queries and tailnet administration without code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is well-suited for anyone integrating Tailscale into Python automation, Home Assistant, or infrastructure tooling. Requires Python 3.11+ and a valid Tailscale API key; no other gotchas.
Install
tailscale on PyPI
Before you install
Low install friction with a pure Python wheel. Actively maintained with recent releases; last commit 2026-08-14. Requires Python 3.11 or later. Four runtime dependencies (aiohttp, mashumaro, orjson, yarl) are all stable, widely-used async/serialization libraries.
Requires a valid Tailscale API key (tskey-...) issued by Tailscale and a tailnet name to authenticate.
License in practice
MIT license (permissive) allows use in commercial and private projects with minimal restrictions—only requires preserving copyright and license notices.
Quickstart
import asyncio
from tailscale import Tailscale
async def main():
async with Tailscale(tailnet="your-tailnet", api_key="tskey-...") as ts:
devices = await ts.devices()
for device_id, device in devices.items():
print(f"{device.hostname} ({device.os})")
asyncio.run(main())
Verify before relying
- Whether the optional CLI extra (tailscale[cli]) adds significant dependencies or install friction beyond the base package.
- Performance characteristics when managing large tailnets (number of devices, API call latency).
- Compatibility with Tailscale API versions and any breaking changes in recent Tailscale service updates.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaiohttpmashumaroorjsonyarl |
| Maintenance | Actively maintained 115 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 145,700 / month, #11,120 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: tailscale-0.8.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 › “tailscale api client”
- tailscaleAsynchronous Python client for querying and managing Tailscale…
- pulumi-tailscaleA Pulumi resource provider that lets you declare and manage Tailscale…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also gotailwind · pulumi-tailscale · python-bsblan · adguardhome · elgato · pysmartthings · py-synologydsm-api · energyzero · open-meteo · directv