AWS describes an Agent Toolkit skill that assesses, configures, and troubleshoots distributed KV caching for self-hosted LLM inference workloads.
AWS published a technical guide on November 20, 2026, describing a distributed key-value (KV) caching skill in its Agent Toolkit. The skill is designed to help coding agents assess whether a self-hosted large language model workload could benefit from a shared cache, configure one, and troubleshoot common problems.
The approach pairs GPU-local caches with a shared tier using Amazon ElastiCache, allowing inference servers to reuse cached attention states across sessions and routing changes. AWS says distributed KV caching can reduce inference costs by up to 40% and time to first token by up to 80%; those are potential gains, not guaranteed results for every deployment. The benefit depends on factors such as prompt length, repetition, model choice, and routing.
The skill works with Kiro, Claude Code, OpenAI Codex, and other coding agents that support Agent Skills. It can estimate likely savings using the KVTrace tool, which replays cache-event traces from vLLM or SGLang. AWS says those traces contain block hashes and token counts rather than token IDs or prompt text, and recommends anonymizing keys when prompts are sensitive.
AWS’s worked example uses eight p5 instances serving 64,000-token prompts. For that scenario, the agent recommended two cache.i8ge.48xlarge nodes, while also noting that actual savings depend on the workload’s cache hit rate. The guide says freed GPU capacity becomes a direct cost reduction only if an operator runs fewer servers or handles more traffic on the same fleet.
The documented setup requires compatible GPU instances, LMCache 0.5.8rc1 or later, vLLM 0.11.1 or later—or SGLang 0.5.13 or later—and, for the cache configuration shown, ElastiCache for Valkey 9.1 or later. The workflow asks for approval before creating or changing resources, checks that cached runs return consistent outputs, and highlights tenant-isolation risks that operators should account for.

