claudekit
Everything the Anthropic SDK is missing — in one coherent Python framework.
Track costs. Enforce policies. Build agents. Ship faster.
Installation · Quick Start · What's Inside · Platforms · Documentation
Installation
pip install claudekit
pip install claudekit[agent] # Agent SDK support
pip install claudekit[mcp] # MCP server builder
pip install claudekit[otel] # OpenTelemetry tracing
pip install claudekit[all] # Everything
Quick Start
from claudekit import TrackedClient
client = TrackedClient()
response = client.messages.create(
model="claude-haiku-4-5",
max_tokens=256,
messages=[{"role": "user", "content": "Hello"}],
)
print(client.usage.summary())
# tokens_in=10 tokens_out=24 cost=$0.000042 calls=1
What's Inside
| Module | What it does |
|---|---|
claudekit.client |
Tracked sync/async clients for Anthropic, Bedrock, Vertex, Foundry |
claudekit.security |
Typed policy pipeline — injection, jailbreak, PII, rate limits, budget caps |
claudekit.memory |
Persistent memory store with SQLite + FTS5, injected into context automatically |
claudekit.sessions |
Named sessions with config, lifecycle hooks, and aggregated usage |
claudekit.agents |
Declarative agents with budget guards and full message trace inspection |
claudekit.orchestration |
Multi-agent routing — rule-based, LLM-based, or manual |
claudekit.tools |
@tool decorator, tool registry, MCP server builder |
claudekit.skills |
Portable skill bundles — summarizer, classifier, extractor, reviewer, researcher |
claudekit.batches |
Fluent batch API with polling, cancellation, and cost stats |
claudekit.prompts |
Versioned prompt storage with A/B comparison |
claudekit.testing |
MockClient, MockAgentRunner, expect.* assertions, record/replay |
claudekit.plugins |
Lifecycle hooks — logging, cost alerts, OpenTelemetry |
claudekit.thinking |
Extended thinking helpers and token budget guidance |
claudekit.precheck |
Pre-flight token counting with cost estimates |
Platforms
claudekit works the same across every Anthropic-supported platform:
from claudekit import create_client # auto-detects from env vars
# or explicitly:
from claudekit import TrackedBedrockClient, TrackedVertexClient, TrackedFoundryClient
Documentation
License
Metadata
Release files for claudekit 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claudekit-0.1.1.tar.gz | 450.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claudekit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 662.6 kB
Release files / claudekit-0.1.1.tar.gz
| Download URL | claudekit-0.1.1.tar.gz |
|---|---|
| Size | 450.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9747a240f85c047fcda4205d9b45db4b0b121bab427ff3ec150c807b0cb6c482
|
|
BLAKE2b-256 checksum How to use checksums |
fd3b66f4e8f977e555ab5e567e8e38fac921108293bc925434bbc8d6c5653d7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / claudekit-0.1.1-py3-none-any.whl
| Download URL | claudekit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 212.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d9d760fda53f4bd1c15f6561c72f8a684e0f7d548ee9f127ba1ecac5b6a3878
|
|
BLAKE2b-256 checksum How to use checksums |
96afab5dc3d62df247cab6d21dea3fb424ffc47ac51ce687d169dbde1880492c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|