$npx skillfedfor your agent

tailscale

Asynchronous Python client for the Tailscale API.

Worth itPyPI Python ModulesReleased Apr 2026145.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tailscale-0.8.0-py3-none-any.whl
v0.8.0 · released 2026-04-21 · Python >=3.11 · 4 runtime deps: aiohttp, mashumaro, orjson, yarl

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
aiohttpmashumaroorjsonyarl
MaintenanceActively maintained 115 days since the last release
Last repo commit
First released
Downloads145,700 / month, #11,120 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
tailscale api clientasync tailscale managementtailnet device controltailscale python sdkvpn network automationtailscale cli toolmesh network api
Topics
async-clientvpn-managementhome-assistant
PyPI keywords
apiasyncclienthome-assistantmesh-vpnnetworktailnettailscalevpnwireguard

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also gotailwind · pulumi-tailscale · python-bsblan · adguardhome · elgato · pysmartthings · py-synologydsm-api · energyzero · open-meteo · directv