#6161st of 74 in Gateways and observability

paritok-4b-v1

Compression proxy that shrinks coding-agent prompts before they reach the LLM API

Releases and problems feed (RSS)

Stars
1.4k
License
Apache-2.0
Last commit
Nov 2026
Language
Python
Stars, last 19 weeks+1,440
12 Jul 2026: 0 stars19 Jul 2026: 0 stars26 Jul 2026: 2 stars2 Aug 2026: 294 stars9 Aug 2026: 874 stars16 Aug 2026: 1,350 stars23 Aug 2026: 1,386 stars30 Aug 2026: 1,393 stars6 Sept 2026: 1,400 stars13 Sept 2026: 1,407 stars20 Sept 2026: 1,410 stars27 Sept 2026: 1,416 stars4 Oct 2026: 1,418 stars11 Oct 2026: 1,422 stars18 Oct 2026: 1,428 stars25 Oct 2026: 1,431 stars1 Nov 2026: 1,432 stars8 Nov 2026: 1,437 stars15 Nov 2026: 1,439 stars22 Nov 2026: 1,440 stars

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
Also in Gateways and observability
RankProjectScore
#59orcareplayRecord coding-agent runs and replay or fork them offline onto other models1.2k stars+881 (+268%) in 30 daysApache-2.051 out of 100
#60gptcachePython semantic cache for LLM responses using embeddings and vector search8.2k starsMIT50 out of 100
#62Portkey GatewayNode.js LLM gateway with fallbacks, load balancing and guardrails13.4k starsMIT48 out of 100
#63evalsPython framework and registry for evaluating LLMs and LLM-based systems19.8k starscustom license42 out of 100
#64openclaw-bot-reviewWeb dashboard for monitoring OpenClaw agents, models, sessions and token usage2k starsMIT41 out of 100