Paritok compresses tool schemas, files and history between AI coding agents and the LLM. Free to self-host, or $0.30 per 1M file tokens hosted. Features inside.
Researched and fact-checked by Bartu Cavusoglu · Updated November 29, 2026
What Paritok is
Paritok is a compression gateway for AI coding agents. It sits between a coding agent and the large language model API it calls, and compresses the context that agents send on every request: tool schemas, file contents and conversation history. The goal is longer coding sessions before the context window fills up, and smaller token bills. Paritok is powered by its own code-focused 4B-parameter compression model, and both the gateway and the model weights are released under the Apache-2.0 license.
Who it is for
Paritok is aimed at developers and engineering teams who use agentic coding tools heavily and feel the cost or context limits of long sessions. The site names Claude Code, Cursor, Codex and OpenHands as supported agents. It suits individual developers who want to self-host for free, as well as teams who would rather pay per use for a hosted GPU instance than run the model themselves.
How it works
Setup is a single environment variable: you point ANTHROPIC_BASE_URL at the Paritok gateway, and your agent keeps working as before. The gateway filters tool schemas so that the model only receives what is relevant, and it compresses file reads and earlier conversation turns using the 4B model. Paritok describes the compression as non-destructive. Nothing is thrown away, and if the agent needs the full text again it can fetch it with a read_original call. Upstream, Paritok works with any OpenAI-compatible provider, and its integration diagram also shows Anthropic as an upstream.
Key capabilities
The core features are tool-schema filtering, file-read compression and history compression, all applied on the fly as requests pass through the gateway. The code-native compression model runs in about 2.5 GB of memory at Q4 quantisation, and the tool filter runs on a CPU, so self-hosting is feasible on modest hardware. Token counts use the open o200k_base tokenizer, which makes billing measurable. The site lists version 1.3.0 as current and offers community channels on GitHub, Discord, Hugging Face, Ollama, PyPI and X.
Pricing
Paritok has two options. Self-hosting is free under Apache-2.0 and includes both the gateway and the 4B model. The hosted GPU tier is usage-based at $0.30 per one million billable file tokens, paid from prepaid credit with top-ups starting at $5. New accounts get $5 of free credit with no card required. Only file content that actually gets compressed is billed, and tool-schema filtering is free. The site's savings calculator mentions subscription plans but does not list subscription prices, so the usage-based hosted tier is the only published paid option.
Limitations
Paritok is a young product and the website shares little about the team or company behind it. The documented setup centres on the ANTHROPIC_BASE_URL variable, so agents that cannot change their API base URL may not be able to use it. Compression adds an extra hop and a model in the request path, which teams should evaluate for latency and output quality in their own workflows. Savings estimates on the site are calculator projections rather than guaranteed results, and the effect will vary with how much file content each session sends.