$npx skillfedfor your agent

glocaltokens

Tool to extract Google device local authentication tokens in Python

With conditionsPyPI Software DevelopmentReleased Jul 2025173.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — glocaltokens-0.7.6-py3-none-any.whl
v0.7.6 · released 2025-07-04 · Python >=3.9 · 6 runtime deps: ghome-foyer-api, gpsoauth, grpcio, requests, simplejson, zeroconf

Yes, if you need local control of Google Home devices and are comfortable with the token refresh lifecycle. The package is actively maintained, has no known vulnerabilities, and uses a permissive MIT license. Install friction is low. Main gotchas: tokens expire daily, re-authentication is rate-limited by Google, and the local API is undocumented. Suitable for home automation and local-network integrations.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Google credentials must be provided; calling the authentication method too frequently may cause Google to disconnect associated Android devices.
  • Low install friction with a pure-Python wheel distribution.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.

last release 2025-07-04 (406 days) · last repo commit 2026-08-03 · 60 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 173,852 downloads/mo, #10,297 on PyPI

Verify before relying

pip install glocaltokens

from glocaltokens.client import GLocalAuthenticationTokens

client = GLocalAuthenticationTokens(
  username="your_google_email",
  password="your_google_password"
)
master_token = client.get_master_token()
google_devices = client.get_google_devices_json()
  • Whether the package handles two-factor authentication or app passwords for Google accounts
  • How token refresh is managed when the 1-day expiration window approaches
  • Whether device discovery works reliably across different network configurations
Same gist for agents: .md · .json

What it is and what it does

glocaltokens is a Python library that retrieves short-lived local authentication tokens for Google Home devices by exchanging Google account credentials with Google's servers. These tokens enable direct local-network communication with Google Home devices via their undocumented local API, bypassing the cloud.

The package handles the OAuth-like flow to obtain master tokens (valid for extended periods) and access tokens (valid 1 hour), then uses those to fetch device-specific local tokens (valid about 1 day). It includes device discovery via zeroconf and supports filtering by device model. The documentation emphasizes storing master tokens rather than credentials, and warns against frequent re-authentication to avoid account lockouts.

Use it for

  • Build local-network home automation that controls Google Home devices without cloud dependency
  • Extract and cache device tokens for periodic refresh in a long-running home assistant daemon
  • Discover Google Home devices on the network and retrieve their local API endpoints
  • Integrate Google Home control into a custom smart-home system using the local API
  • Monitor or control timers and alarms on Google Home devices via direct local calls

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need local control of Google Home devices and are comfortable with the token refresh lifecycle.

The package is actively maintained, has no known vulnerabilities, and uses a permissive MIT license. Install friction is low. Main gotchas: tokens expire daily, re-authentication is rate-limited by Google, and the local API is undocumented. Suitable for home automation and local-network integrations.

Install

glocaltokens on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-08-03 with 60 repository stars. Depends on six runtime packages including grpcio and zeroconf for device discovery and authentication.

Requires Python 3.9 or later. Google credentials must be provided; calling the authentication method too frequently may cause Google to disconnect associated Android devices.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.

Quickstart

pip install glocaltokens

from glocaltokens.client import GLocalAuthenticationTokens

client = GLocalAuthenticationTokens(
  username="your_google_email",
  password="your_google_password"
)
master_token = client.get_master_token()
google_devices = client.get_google_devices_json()

Verify before relying

  • Whether the package handles two-factor authentication or app passwords for Google accounts
  • How token refresh is managed when the 1-day expiration window approaches
  • Whether device discovery works reliably across different network configurations

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
ghome-foyer-apigpsoauthgrpciorequestssimplejsonzeroconf
MaintenanceActively maintained 406 days since the last release
Last repo commit
First released
Downloads173,852 / month, #10,297 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.9Topic :: Software DevelopmentTyping :: Typed

Evidence: glocaltokens-0.7.6-py3-none-any.whl

Tags

Capabilities
google home local authenticationextract google device tokensgoogle home api tokenslocal google home controlgoogle device authenticationgoogle home device discoverygoogle home token management
Topics
home-automationgoogle-homelocal-api
PyPI keywords
AuthenticationGoogleGoogle HomeLocalAuthenticationTokens

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 › “google home local authentication”

  • glocaltokensExtracts local authentication tokens from Google Home devices by…
  • ghome-foyer-apiProvides generated Protobuf stubs for the Google Home Foyer API,…
  • hass-nabucasahass-nabucasa is a Python library that provides Home Assistant with…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also gpsoauth · broadlink · micloud · gkeepapi · google-nest-sdm · ghome-foyer-api · tinytuya · homeassistant · pyhiveapi · fastapi-cloudauth