Skip to main content

Cut AWS Bedrock LLM spend from Claude Code — compression + prompt caching, on your machine.

Project description

caprock

Cut your AWS Bedrock LLM spend from Claude Code — context compression + prompt caching that actually work on Bedrock, on your machine, with your own credentials. Nothing leaves your machine.

pip install caprock          # or: uvx caprock
caprock wrap claude          # your Claude Code now runs through it
caprock stats                # see what you saved

Measured live against real Bedrock: ~48% fewer billed input token-equivalents on a tool-heavy Claude Code workload (your number will vary — run caprock measure to see yours).

What it does

  • Compression — shrinks tool outputs / logs / JSON before they reach the model.
  • Prompt caching — makes Bedrock's prompt cache actually engage (stock Headroom's markers die in conversion → 0% on Bedrock; caprock fixes that).
  • Runs on localhost, signs with your Bedrock credentials. No caprock service in the request path.

Team?

A shared in-VPC gateway with per-user / per-role cost attribution, a team dashboard, and support is the managed tier → https://caprock.dev

Built on Headroom

caprock builds on the open-source Headroom project (Apache 2.0). It applies the general-purpose fixes that make caching and compression work on AWS Bedrock (contributed back upstream) over the stock headroom-ai package. Licensed Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caprock-0.1.0.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caprock-0.1.0-py3-none-any.whl (73.3 kB view details)

Uploaded Python 3

File details

Details for the file caprock-0.1.0.tar.gz.

File metadata

  • Download URL: caprock-0.1.0.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for caprock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 182db443ae423497d40483d3b235a303bc00825ccfdfc7daa2d44d04708d554d
MD5 4aa334cb010c3a190d0a00f3c4aaf91f
BLAKE2b-256 28a1b50e9e877c8cab145ed1adae4d921e22830e93bb16c4d747fa584f02381c

See more details on using hashes here.

File details

Details for the file caprock-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: caprock-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 73.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for caprock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca10c920d4696dfd914f8b4de5b623d4d57899789ba542576ed1dc8726dc9348
MD5 3a8cf8576df1c322690212ef6ba1e293
BLAKE2b-256 c30931dec73d26e1de20af70285fe6eeb14bad2478ff2d20755301eaf74d97de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page