Skip to main content

Production-grade Python developer toolkit wrapping the entire Anthropic ecosystem

Project description

claudekit logo

claudekit

Everything the Anthropic SDK is missing — in one coherent Python framework.

Track costs. Enforce policies. Build agents. Ship faster.

License MIT Version Python ≥3.10 Anthropic SDK Agent SDK MCP

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

Full Documentation →


License

MIT

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

claudekit-0.1.1.tar.gz (450.4 kB view details)

Uploaded Source

Built Distribution

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

claudekit-0.1.1-py3-none-any.whl (212.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claudekit-0.1.1.tar.gz
  • Upload date:
  • Size: 450.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for claudekit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9747a240f85c047fcda4205d9b45db4b0b121bab427ff3ec150c807b0cb6c482
MD5 47476d6188fe95d3ad815ac6049b9d7c
BLAKE2b-256 fd3b66f4e8f977e555ab5e567e8e38fac921108293bc925434bbc8d6c5653d7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: claudekit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 212.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for claudekit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d9d760fda53f4bd1c15f6561c72f8a684e0f7d548ee9f127ba1ecac5b6a3878
MD5 dbf6d7ef98c4fd788ee0cd4b15206d13
BLAKE2b-256 96afab5dc3d62df247cab6d21dea3fb424ffc47ac51ce687d169dbde1880492c

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