Save AI coding tokens without switching editors

Keep using Codex, Claude Code, Cursor, or your own agent. Type tp: for bounded coding tasks, route patch execution to a lower-cost executor, and see the savings ratio for every run.

tp: bounded patch flow
DeepSeek V4 Pro
$ pip install git+https://github.com/Leoyen1/tokenpatch.git
$ export MMDEV_EXECUTOR_PROVIDER=deepseek_byok
$ export DEEPSEEK_EXECUTOR_MODEL=deepseek-v4-pro
app tp: add billing tests. Only modify tests/billing_test.py.
patched via bounded executor
all-strong estimate $0.42
tokenpatch actual $0.08
saved 81%

Example savings snapshot

Make the savings visible after every bounded task.

Task

Change a page title. Only modify index.html.

All-strong estimate
$0.42
tokenpatch actual
$0.08
Saved
81%
tokenpatch terminal report showing patch applied, tests passed, and 81% savings

Use your current AI coding tool. Let tokenpatch handle bounded execution.

Use your current coding app

Your strong model stays in charge. tokenpatch handles bounded patch execution in the local project.

Savings Snapshot

Reports show actual cost, all-strong baseline, estimated savings, and cost per applied patch.

Bring your DeepSeek key

BYOK works now. Hosted credits are planned later for users who cannot easily manage a DeepSeek API key.

AI coding cost optimization

Move implementation tokens to the cheapest safe place.

Most AI coding cost is not spent on final judgment. It is spent on repeated implementation loops, patch rewrites, test fixes, and small file edits. tokenpatch separates that workflow: your strong model decides what should happen, then a bounded executor handles the narrow patch.

1. Keep the strong model for planning

Use Codex, Claude Code, Cursor, or another agent for repo understanding, task decomposition, and review.

2. Scope the executor task

Use allowed files and acceptance criteria so the low-cost executor works inside a clear boundary.

3. Measure the applied patch

Reports show executor tokens, estimated all-strong baseline, actual cost, and savings per accepted change.

High-intent use cases

Built for searches developers already make.

Search intenttokenpatch answerStart here
How to reduce Codex token costKeep Codex in charge and route bounded implementation patches through BYOK DeepSeek.Codex use case
Claude Code cost savingsUse Claude for planning and review, then measure lower-cost patch execution separately.Claude Code use case
Cursor DeepSeek executorAdd a file-scoped executor lane to Cursor without replacing the editor workflow.Cursor use case