tranhoangtu-it

Kvguard — Development skill for Claude Code

Development community

Local proxy & TUI that catches 1-token prompt/KV cache prefix misses and auto-heals requests for Anthropic, OpenAI, llama.cpp and Ollama.

How to install Kvguard

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tranhoangtu-it/kvguard and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Kvguard does

Local proxy & TUI that catches 1-token prompt/KV cache prefix misses and auto-heals requests for Anthropic, OpenAI, llama.cpp and Ollama.

Alternatives in Development

  • Llamacoder — Open source Claude Artifacts – built with Llama 3.1 405B 7.1k ★
  • CORS — Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposu 4.5k ★
  • Claude Code Proxy — Run Claude Code on OpenAI models 3.3k ★

README

kvguard

Your prompt cache is silently breaking. kvguard shows you where, why, and what it costs.

[![CI](https://github.com/tranhoangtu-it/kvguard/actions/workflows/ci.yml/badge.svg)](https://github.com/tranhoangtu-it/kvguard/actions/workflows/ci.yml) [![Live Calculator](https://img.shields.io/badge/Live_Demo-Cache_Bust_Visualizer-10B981?style=flat&logo=googlechrome&logoColor=white)](https://tranhoangtu-it.github.io/kvguard/) [![Release](https://img.shields.io/github/v/release/tranhoangtu-it/kvguard?color=f5a623)](https://github.com/tranhoangtu-it/kvguard/releases)

**[Try the Live Prompt/KV Cache Visualizer & Cost Calculator](https://tranhoangtu-it.github.io/kvguard/)** — see how a single changed key in `tools[]`, a timestamp, or a rotating billing header breaks cache reuse. [![npm](https://img.shields.io/npm/v/kvguard?color=cb3837&logo=npm)](https://www.npmjs.com/package/kvguard) [![PyPI](https://img.shields.io/pypi/v/kvguard?color=3775a9&logo=pypi&logoColor=white)](https://pypi.org/project/kvguard/) [![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)](#license)

**Anthropic · OpenAI · Google Gemini · llama.cpp · Ollama · any OpenAI-compatible server**
One ~6 MB binary. No Docker, no database, no account, no telemetry.

npx kvguard -- claude

kvguard quickstart demo


The problem nobody sees

Prompt caches (Anthropic, OpenAI) and local KV caches (llama.cpp, Ollama, vLLM) only reuse work when your new prompt starts with **exactly** the same bytes as the previous one, in order `tools → system → messages`.

Change **one token** near the top and everything after it is billed — or prefilled on your GPU — again:

  • MCP servers finish starting in a different order, so tools[] is serialized differently each session.
  • A Current time: 2026-11-04T19:42:07Z line changes every turn.
  • A compaction step rewrites one old m