Local CLI for tracking AI coding quota windows, planning reset coverage, and optional explicit provider-native kicks.
Project description
TokenKick
Reset? Go.
TokenKick is a local-first CLI, TUI, beta macOS app, and agent-facing MCP surface for developers who juggle multiple AI coding accounts. It tracks quota reset windows, shows which account should be used next, and can optionally send a tiny provider-native request to anchor a freshly reset window after explicit opt-in.
It does not increase quota, bypass limits, or move provider credentials into a TokenKick cloud. It reads the provider state you already have locally and helps you avoid losing usable hours because a reset happened while nobody noticed.
At A Glance
- Tracks Codex and Claude quota windows from local provider state where available.
- Falls back to local Codex session files and optional CodexBar compatibility data when provider-native status is unavailable.
- Separates safe reads from active quota-consuming actions.
- Plans work windows with
tk planbefore scheduling pending session kicks. - Keeps auto-kick off by default; Codex and Claude automation require explicit provider-risk consent.
- Ships local surfaces for humans and agents: terminal UI, scriptable CLI, daemon, beta macOS app, Telegram remote status, and MCP server.
Quick Start
pipx install tokenkick
tk
On first run, tk opens the TUI and starts setup when no accounts are saved.
Setup discovers accounts and saves them with auto-kick off by default. If you
later enable auto-kick for Codex or Claude, TokenKick shows a provider-specific
risk notice and requires you to type ENABLE before saving the acknowledgment.
For a manual CLI setup:
tk setup
tk status --refresh
tk auto enable "<label>"
tk notify --ntfy tokenkick-yourname
tk daemon --background
For scripts and automation, use explicit commands:
TK_NO_INTERACTIVE=1 tk status --json-output
TK_NO_INTERACTIVE=1 tk status --refresh --json-output
TK_NO_INTERACTIVE=1 tk plan --work-window 18:30-23:30 --json-output
TK_NO_INTERACTIVE=1 tk run --dry-run --json-output
TK_NO_INTERACTIVE=1 tk history --verbose
TK_NO_INTERACTIVE=1 tk doctor
Demo Gallery
The screenshots below use synthetic demo data and can be regenerated with:
.venv/bin/python scripts/render-readme-demo.py
| CLI status | Work-window planning |
|---|---|
| macOS app main window | macOS menu bar popover |
|---|---|
How TokenKick Thinks
TokenKick follows a small loop:
- Observe - read cached or live provider status and normalize account windows into states such as fresh, active, waiting, and unknown.
- Recommend - show the next useful action for each account and avoid spending fresh windows while another session is still active.
- Plan - map reset windows against a requested work block, then produce a deterministic schedule preview.
- Act - only after opt-in, run a tiny provider-native request or let the daemon execute due pending kicks through the same guardrails.
Safe diagnostics do not kick or run provider model calls: tk status,
tk accounts detail, tk history, tk doctor, tk reset-log,
tk codex-usage, tk codex-strategy status, tk codex-surfaces, and
tk codex-surface-patterns.
Active actions can consume quota or anchor windows: tk kick, tk run, force
kicks, and hidden active diagnostics.
Agent Quick Reference
Agents should read llms.txt first, then
docs/AGENT_PLAYBOOK.md. The short version:
- Always set
TK_NO_INTERACTIVE=1. - Prefer
--json-outputwhere available. - Use cached
tk status --json-outputfor repeated reads. - Use
tk status --refresh --json-outputonly when a live provider read is genuinely needed. - Preview active work with
tk run --dry-run --json-output. - Never add
--accept-risk ENABLEunless the user has explicitly approved the provider consent text shown by TokenKick. - Never invent scheduler commands. Use
tk plan,tk schedule, pending kicks, and the daemon behavior documented in the playbook.
Minimal agent planning flow:
TK_NO_INTERACTIVE=1 tk status --json-output
TK_NO_INTERACTIVE=1 tk calendar --json-output
TK_NO_INTERACTIVE=1 tk plan --work-window 18:30-23:30 --json-output
Provider Support
Codex and Claude are kickable in this release. Gemini and Antigravity are monitor-only. Other providers are unsupported until their status shape and safe kick behavior are verified.
Codex-Spark is detected as a separate Codex quota bucket when the provider
exposes it. TokenKick then shows it as a sibling account such as
codex-spark (...) with its own session and weekly window. It does not infer
Spark access from your subscription tier. tk plan skips Spark until you set
an explicit usable_session_minutes for that account, because the rough
placeholder is not enough evidence for orchestration decisions.
macOS App
The native Mac app is a beta desktop surface for the same local runtime. When available, beta DMGs are attached to GitHub Releases. The CLI is the recommended install path for first-time users; non-notarized beta DMGs may show a macOS security warning.
Useful app docs:
Documentation
- User overview
- How TokenKick works
- Commands
- Agent playbook
- MCP server
- Magic setup (advanced)
- Providers
- Changelog
- Security
- Contributing
Disclaimer
TokenKick is an independent, open-source project. It is not affiliated with, endorsed by, or sponsored by OpenAI, Anthropic, Google, or any other provider. "Codex", "ChatGPT", "Claude", and "Gemini" are trademarks of their respective owners, used here only to describe compatibility.
TokenKick does not increase your quota, bypass rate limits, or evade any provider restriction. It helps you track your own reset windows and, optionally, send a minimal request through a provider's official CLI to anchor a window you have already paid for.
Automated or scheduled kicking may violate a provider's Terms of Service. Some providers restrict automated or scripted access to their consumer products. Enabling auto-kick is your decision and your responsibility. You alone are responsible for how you use TokenKick with your accounts and for complying with each provider's terms. Use at your own risk.
TokenKick is provided "as is", without warranty of any kind. The authors are not liable for any consequence arising from its use, including account restriction, suspension, or loss of access.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tokenkick-1.0.2.tar.gz.
File metadata
- Download URL: tokenkick-1.0.2.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
679cf50d782f2250dce2cff18dd21e12dc521a18735f051dd2426592ab9a5d49
|
|
| MD5 |
8bd4d0b8feb62425a983652018ff041b
|
|
| BLAKE2b-256 |
b20c0f2e10fc4957e6c9d354a4b5e186cb6494ffa881f8302fd7473b042514fe
|
Provenance
The following attestation bundles were made for tokenkick-1.0.2.tar.gz:
Publisher:
release.yml on noriworks/tokenkick
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tokenkick-1.0.2.tar.gz -
Subject digest:
679cf50d782f2250dce2cff18dd21e12dc521a18735f051dd2426592ab9a5d49 - Sigstore transparency entry: 1977687044
- Sigstore integration time:
-
Permalink:
noriworks/tokenkick@eba6259c34ce75de4b1292e78f17545116f2bb7c -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/noriworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eba6259c34ce75de4b1292e78f17545116f2bb7c -
Trigger Event:
push
-
Statement type:
File details
Details for the file tokenkick-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tokenkick-1.0.2-py3-none-any.whl
- Upload date:
- Size: 287.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b45b7d7802e6a1cec63cca99fa1247465f9e5b466db896cbcda0b07ac6748502
|
|
| MD5 |
921e5e2bd0bb469fe785b25d245a867d
|
|
| BLAKE2b-256 |
767ddcb2576c8a27fd066d4d7678ab72064dab0fcbc9dbff99f9669b9cb76eb5
|
Provenance
The following attestation bundles were made for tokenkick-1.0.2-py3-none-any.whl:
Publisher:
release.yml on noriworks/tokenkick
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tokenkick-1.0.2-py3-none-any.whl -
Subject digest:
b45b7d7802e6a1cec63cca99fa1247465f9e5b466db896cbcda0b07ac6748502 - Sigstore transparency entry: 1977687102
- Sigstore integration time:
-
Permalink:
noriworks/tokenkick@eba6259c34ce75de4b1292e78f17545116f2bb7c -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/noriworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eba6259c34ce75de4b1292e78f17545116f2bb7c -
Trigger Event:
push
-
Statement type: