TokenPak

Open source · beta

TokenPak is open source.

The proxy, Prompt Packing engine, client integrations, local dashboard, Savings Ledger, and Spend Guard are Apache 2.0 licensed and run entirely on your machine. This is the beta surface — features that ship today, no marketing of anything that doesn't.

Install

pip bash
pip install tokenpak
tokenpak setup

One command to install, one to set up. The setup wizard detects API keys, picks a compression profile, and starts the proxy on 127.0.0.1:8766.

What's in the OSS beta

Full Prompt Packing pipeline

Deterministic Prompt Packing for every request — selects, reduces, and structures context into a Pak before it hits the wire. The OSS package is the full pipeline, not a limited demo.

Local proxy, no cloud

Runs at 127.0.0.1. Byte-preserved passthrough; your prompts and credentials stay in your environment and the provider flow you already use.

Nine client integrations

Claude Code, Cursor, Cline, Continue, Aider, OpenAI SDK, Anthropic SDK, LiteLLM, Codex.

Savings Ledger + Spend Guard

Local telemetry store, A/B replay, 50 built-in compression profiles, semantic vault indexing, and a pre-send circuit breaker (Spend Guard) that blocks runaway requests before they reach the provider.

What ships today

Beta-honest inventory of every OSS feature in the current release.

Feature OSS beta
Prompt Packing (full pipeline) Shipped
Local proxy at 127.0.0.1 Shipped
Client integrations (Claude Code, Cursor, Aider, Cline, Continue, Codex, OpenAI SDK, Anthropic SDK, LiteLLM) Shipped
Model routing with fallback rules Shipped
Savings Ledger + local telemetry Shipped
Vault indexing + semantic search Shipped
Local dashboard (TUI + web) Shipped
A/B testing + request replay Shipped
50 built-in compression profiles Shipped
Spend Guard — pre-send circuit breaker, rolling caps Shipped
TIP-1.0 protocol contracts + conformance gate Shipped
Pak recall data plane (storage, FTS, inspect) Shipped
PAKPlan preview / explain / report (read-only) Shipped

Source + package

Ready to try it?

tokenpak runs entirely on your machine. Nothing to sign up for.