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.4.tar.gz (78.7 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.4-py3-none-any.whl (76.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caprock-0.1.4.tar.gz
  • Upload date:
  • Size: 78.7 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.4.tar.gz
Algorithm Hash digest
SHA256 20563d9e139b372b3b32641e6b992257e9fec05df8490fa6878c3dabe1086d39
MD5 2db309a6005adeda74765a31f168db41
BLAKE2b-256 8ccd897d90718fd3e2486cfd58196032b6f91090a7669193518cff51c8806b4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caprock-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 76.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea998b0da677d599dde6d884c1de2d79ebfcdc338e879af60babdfbad107ec9e
MD5 857f7752000ec466e4fb4ca4a3c83d60
BLAKE2b-256 de255ac8fc0b23288e4b026ad7987ca212ae46e5cfc17d1dddbcd49c26406e46

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