Local Execution Engine for AI Agents

Your AI thinks.
TokenKit gets it done.

Powerful local tools that help AI agents process documents, images, videos and files through a unified, permission-controlled execution engine.

TokenKit is a Mac app. to open it on your Mac.

Free to start · No account · TokenKit uploads nothing · Your originals are never changed

29% fewer tokens on long PDF tasks in our tests
TokenKit's overview screen, listing three runs made through MCP: a video clip, an image batch and a PDF search

The problem

Your agent is brilliant. Its toolbox is not.

Ask an AI agent to handle a PDF, a folder of images or a video, and watch what happens. We watched, 153 times.

It improvises

Asked to cut a video on a Mac without extra software, the agent wrote and compiled its own Swift program. Twenty-one throwaway scripts in twelve tasks.

It needs what you never installed

ffmpeg, poppler, tesseract: your agent assumes they are there. When they are not, it stalls, or you spend your evening installing them.

It tries, checks and tries again

Compress, measure, compress again. Every round trip is time, and context you pay for.

The fix

Say the outcome. Get the result.

You ask in plain words. Your agent hands the job to TokenKit, which does every step on your Mac and answers with facts it has checked.

agent session · illustration

YouConvert every image in my project's photos folder to JPEG, at most 1600 px, keeping each file under 400 KB.

AgentOne request to TokenKit, with the size limit as part of the goal.

TokenKit
  • Batch conversion of the folder
  • Quality lowered per file until it fits
  • Size of every file checked
  • Location and camera data removed

Result8 images written: 14.3 MB to 3.2 MB, 78% smaller. Every file is within the limit.

Illustration. The requests are examples; the results are the answers TokenKit gave to these requests in our local tests, not a recording of an agent session.

Same request. Two very different afternoons.

You ask forWithout TokenKitWith TokenKit
A 720p clip with its audio and four framesWrites and compiles a Swift program: 40 sOne request: 13 s
Every image under a size limitConverts, measures and reconverts: 8 turnsStates the limit once: 3 turns
The pages of a 120-page contract that mention a clauseCommand-line tools: 21.2 sSearch and save in one request: 8.8 s
Twelve file tasks on a Mac with nothing else installed21 scripts written, 443 sNo scripts, 241 s

Observed in our test sessions, medians of three runs per task. Rows 1 and 4 compare with a Mac that has no extra software; row 2 with our previous version; row 3 with an agent using command-line tools. Full method.

The proof

Fewer tokens. Less waiting. Zero scripts.

Measured in 153 real agent sessions, December 2026. Each figure says what it was compared with. Against a well-equipped agent across all tasks the token difference was about 10%, inside run-to-run variation. Method and limits.

29%fewer tokensthan our previous version, on the same five tasks · 15 sessions each
29%fewer tokens on long PDFsthan an agent with conventional command-line tools · median of 3 runs
58%less time on long PDFs8.8 s against 21.2 s with conventional tools · median of 3 runs
0scripts written by the agentagainst 8 with conventional tools and 21 on a stock Mac · all tasks

Why TokenKit exists

It started with a five-second video clip.

We asked an AI agent for something simple: cut a short clip from a recording and save its audio. It could not. The Mac had no video tool it knew, so it wrote a program from scratch, compiled it, ran it, found a mistake and wrote it again. Forty seconds and three scripts for a job that should take one sentence.

It understood the request perfectly. What it lacked was hands. Every PDF, every scan, every folder of images sent it back to improvising: scripts that work once, tools you were supposed to have installed, results it had to check and redo.

So we built the hands. One Mac app with the tools an agent actually reaches for, behind one engine that asks first what the agent is allowed to touch. No server. No account. Nothing leaves your Mac through TokenKit.

Read the whole story

How it works

Working in the time it takes to make coffee.

Three steps. No terminal required for the first two.

  1. 1

    Install and try it

    Open TokenKit and press one button: a built-in sample shows the tools working before you connect anything.

  2. 2

    Connect your agent

    Copy one line from Connections into your agent. That is the whole setup.

  3. 3

    Choose your folders

    Add the folders the agent may use. From then on it just works, and you can remove a folder whenever you like.

The agent interprets. TokenKit executes.

  1. Yousay what you want
  2. AI agentunderstands the request and decides what to do
  3. TokenKit · MCP or CLIreceives one goal with its limits
  4. Local execution enginevalidates, checks permissions, runs the steps, reads the result back
  5. PDF · OCR · Images · Video · Audio · Files · DataApple frameworks on your Mac
  6. Validated resulta short answer with the facts, and new files beside your originals

Fragmented workflow

The agent asks for one operation, checks the result, adjusts and asks again.

  1. convert at quality 0.8
  2. inspect sizes
  3. convert again at 0.65
  4. convert again at 0.45
  5. inspect sizes
  6. check metadata with the shell

Our image task with the previous version of TokenKit: a median of 8 turns.

Goal-based workflow

The agent states the outcome. TokenKit runs the deterministic steps and reports whether the goal was met.

  1. convert the folder, each file under 500 KB, metadata removed

The same task with goal-based calls: a median of 3 turns, the same as an agent writing its own script. Not every task becomes a single call: the video task still took two.

Integrations

Works with the agent you already use.

TokenKit speaks MCP, the open standard agents use to reach tools. One line of setup, and your agent has all of it.

Setup guides
  • Claude Code Verified
  • Codex MCP setup
  • Claude Desktop MCP setup
  • Cursor MCP setup
  • Gemini CLI MCP setup
  • Other MCP clients MCP setup

Security & privacy

Your files. Your Mac. Your control.

You decide what an agent may touch, and you can take it back with one click. What TokenKit does and does not control.

Local processing

PDF, OCR, image, video and audio work is done on your Mac with Apple's own frameworks. TokenKit uploads nothing and has no server.

Folders you authorise

An agent reaches only the folders you add in Permissions. Paths are resolved to their real location first, so a link cannot lead outside.

Credential files stay closed

Names such as .ssh, .aws, .env and Keychains are never read, searched or packed, even inside an authorised folder.

App Sandbox

The Mac App Store version runs in Apple's App Sandbox. The helper an agent starts cannot read your files; it passes requests to the app, which works only in the folders you chose.

Research

We tested it 153 times, and published the losses too.

Final round: 45 real agent sessions, the same five tasks under three conditions, three runs each. Medians shown as turns · seconds · total tokens.

TaskConventional toolsTokenKitOutcome
Long PDF3 turns · 21.2 s · 86,5852 turns · 8.8 s · 61,125ahead
Scanned PDF2 turns · 7.2 s · 62,4573 turns · 8.0 s · 82,869behind
Image batch3 turns · 33.3 s · 90,0393 turns · 32.7 s · 94,565level
Video3 turns · 24.6 s · 86,3773 turns · 18.9 s · 61,543level
Build log3 turns · 15.0 s · 88,1494 turns · 11.2 s · 93,471no gain

“Conventional tools” means an agent with ffmpeg, poppler, tesseract and Python with Pillow installed. Overall the two were level; a general reduction of token use was not demonstrated.

Read the full method

Pricing

Start free. Pay once, if ever.

The free plan is yours to keep. Pro is a single purchase: no subscription, no account, no renewal to remember.

TokenKit Free

Free

  • Images: convert, resize, compress, inspect
  • PDF: information, text of chosen pages, search
  • Files: inventory, duplicates, hashes, archives, comparison
  • Data: CSV and JSON queries, conversion, validation
  • Context: build errors, logs, project map, outlines
  • Up to 5 files per call
  • Use in the app and with your agent

TokenKit Pro

One-time purchase price to be announced

  • Everything in Free
  • OCR for scanned PDFs and pictures
  • Video and audio: convert, trim, frames, audio, join
  • PDF writing: extract, merge, compress, build from images
  • Search that saves the pages it found
  • Size targets for images
  • Background removal
  • Batches of any size

Purchases will be made through the Mac App Store once TokenKit is available there. Details.

Questions

What people ask before installing.

Does TokenKit send my files anywhere?

No. Every tool runs on your Mac. TokenKit has no server and no account, and makes no network connection of its own.

Then what does my AI agent see?

The short answers TokenKit returns to the calls the agent makes, for files inside folders you allowed. The agent is a separate product: its provider may receive what the agent reads, under that provider's terms.

Does it reduce token use?

On some work, yes, in our tests: 29% fewer tokens than our previous version on the same tasks, and 29% fewer on long PDFs than an agent with conventional tools. Across all tasks against a well-equipped agent the difference was about 10%, which is inside the variation between identical runs, so we make no blanket promise. The method is on the Benchmarks page.

Which agents work with it?

TokenKit connects through MCP, the open standard supported by Claude Code, Codex, Claude Desktop, Cursor and Gemini CLI. Setup takes one line, and there are step-by-step guides for Claude Code and Codex. Our own test sessions run on Claude Code.

Do I need an AI agent to use it?

No. Every tool is also in the app: choose a tool, pick files, press Run. A built-in sample shows it working on first launch.

Can an agent change or delete my files?

Results are always new files; originals are not replaced. Agents cannot run commands through TokenKit, and renaming existing files is off unless you switch it on. TokenKit does not control what an agent does with its own tools.

How do I stop an agent from using it?

Remove the TokenKit entry from the agent, or remove the folder in Permissions: the next call is refused.

Is there a subscription?

No. TokenKit Pro is planned as a one-time purchase through the Mac App Store.

Which Macs?

macOS 14 or later, Apple silicon and Intel.

Stop babysitting scripts. Start shipping.

Give your AI the tools it needs, and get your afternoons back. Less scripting. More building.

Free to start · No account · TokenKit uploads nothing · Your originals are never changed