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.3.tar.gz (77.4 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.3-py3-none-any.whl (75.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caprock-0.1.3.tar.gz
  • Upload date:
  • Size: 77.4 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.3.tar.gz
Algorithm Hash digest
SHA256 84980b3ea3c4a001c29525118db1e0f4cb42c06c0100585cfe7ffc209b36e269
MD5 32a71e42608d5ecfc678b24a75cadbdb
BLAKE2b-256 e7efb7e351f20f4042ce401710e060c148f1998453d945903ca60d4065d9aa3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caprock-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 75.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f4c80879b621cf0afc88a46ef00b00fe52f65cb20d910d04ff659b520e48f3c
MD5 48f926f741e515fdea40b23fc8bc72f5
BLAKE2b-256 4474e03c8f5b1d141803af2e06c353523184d8b64c9c4a2487048b84d65586ac

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