#6161st of 74 in Gateways and observability
paritok-4b-v1
Compression proxy that shrinks coding-agent prompts before they reach the LLM API
- Stars
- 1.4k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Language
- Python
0 on 12 Jul 20261,440 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Paritok is a proxy between a coding agent (Claude Code, Cursor, Codex, OpenHands) and the Anthropic or OpenAI-compatible API. It filters tool schemas with a local embedding model, compresses tool results and file reads with a fine-tuned Qwen3-4B model, and summarizes old history. Compressed segments are tagged [REF:id] and the agent can fetch the originals with read_original. Savings figures come from the project's own tests.
Who it is for: Teams running coding agents who want lower input-token bills
Strengths
- Works by setting ANTHROPIC_BASE_URL or OPENAI_BASE_URL; no agent code changes
- Compressed content stays recoverable through read_original, so nothing is permanently dropped
- Tool-schema filter runs locally on CPU with bge-small (~130MB); README reports ~29K to ~8K tokens
- Self-hosted via Ollama (~2.5GB q4) or vLLM LoRA serving; hosted GPU option exists
Weaknesses
- Savings figures come from the authors' own tests, with long-session numbers partly projected
- Content compression gives only a few percent on a single turn
- Needs Ollama or a vLLM server (24GB GPU) running alongside the proxy
- First request waits ~10-15s while the embedding model downloads
What it needs
- GPU optional
- Needs Ollama, vLLM (alternative), sentence-transformers (toolselect extra), Anthropic or OpenAI-compatible upstream API
- Models: Anthropic API, OpenAI-compatible APIs (Groq, OpenRouter), Qwen3-4B LoRA (paritok-4b-v1)
- port 8080
Also in Gateways and observability
See all 74| Rank | Project | Score |
|---|---|---|
| #59 | orcareplayRecord coding-agent runs and replay or fork them offline onto other models | 51 out of 100 |
| #60 | gptcachePython semantic cache for LLM responses using embeddings and vector search | 50 out of 100 |
| #62 | Portkey GatewayNode.js LLM gateway with fallbacks, load balancing and guardrails | 48 out of 100 |
| #63 | evalsPython framework and registry for evaluating LLMs and LLM-based systems | 42 out of 100 |
| #64 | openclaw-bot-reviewWeb dashboard for monitoring OpenClaw agents, models, sessions and token usage | 41 out of 100 |