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.1.tar.gz (72.6 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.1-py3-none-any.whl (73.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caprock-0.1.1.tar.gz
  • Upload date:
  • Size: 72.6 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.1.tar.gz
Algorithm Hash digest
SHA256 717f7c2cc93ed9bcf4da4ae2ae63d53efc1107946757893e09041e4dea4179da
MD5 69ec634d14896aa85c14e9414c21f464
BLAKE2b-256 0b18cbc3ee521d591650f374ea484970d37f09056a38bc0b32d0f37b6ceb5c35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caprock-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 73.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf4d71d9531051dfb4ee88e52ab9e1886c4552d13d7c50aae4bc3a9aba7976e
MD5 81aa515be5c5af220cb75e0763682bc4
BLAKE2b-256 6ad44c270955560d2b172079e2bca8be06111a9f58e58a22105b45243067c169

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