Context tools and request records
Explicit compression operations can reduce eligible content. The built-in Pak builder preserves conversation turns; byte-preserved routes report zero product-attributed reduction.
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 page lists what ships today; anything not yet verified is labeled as such.
python -m 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.
Explicit compression operations can reduce eligible content. The built-in Pak builder preserves conversation turns; byte-preserved routes report zero product-attributed reduction.
Runs at 127.0.0.1. Byte-preserved passthrough; your prompts and credentials stay in your environment and the provider flow you already use.
Tested SDK adapters: OpenAI SDK, Anthropic SDK and LiteLLM. First-class integrations: Claude Code and Codex. Compatibility targets (not yet independently verified): Cursor, Cline, Continue and Aider.
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.
Inventory of the open-source features in the current release.
| Feature | Status |
|---|---|
| Explicit context tools; conversation history preserved by default | Shipped |
| Local proxy at 127.0.0.1 | Shipped |
| Tested SDK adapters: OpenAI SDK, Anthropic SDK, LiteLLM | Shipped |
| First-class integrations: Claude Code and Codex | Shipped |
| Client integrations — compatibility targets: Cursor, Cline, Continue, Aider | Unverified |
| Routing policy configuration and observe-mode records | Shipped; enforcement not active by default |
| 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 |
tokenpak runs entirely on your machine. Nothing to sign up for.