Metadata-Version: 2.4
Name: claudekit
Version: 0.1.1
Summary: Production-grade Python developer toolkit wrapping the entire Anthropic ecosystem
Project-URL: Homepage, https://github.com/claudekit/claudekit
Project-URL: Documentation, https://github.com/claudekit/claudekit#readme
Author: claudekit contributors
License-Expression: MIT
License-File: LICENSE
Keywords: ai,anthropic,claude,sdk,toolkit
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: anthropic>=0.86.0
Requires-Dist: anyio>=4.0
Requires-Dist: claude-agent-sdk>=0.1.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: opentelemetry-api>=1.0.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pytest>=7.0
Provides-Extra: dev
Requires-Dist: coverage>=7.0; extra == 'dev'
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: python-dotenv>=1.0; extra == 'dev'
Requires-Dist: rich>=13.0; extra == 'dev'
Requires-Dist: ruff>=0.1; extra == 'dev'
Description-Content-Type: text/markdown

<div align="center">

<img src="Logo.png" alt="claudekit logo" width="120" />

# claudekit

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

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

[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Version](https://img.shields.io/badge/version-0.1.1-brightgreen.svg)](pyproject.toml)
[![Python ≥3.10](https://img.shields.io/badge/python-%3E%3D3.10-3776ab.svg)](pyproject.toml)
[![Anthropic SDK](https://img.shields.io/badge/anthropic--sdk-%3E%3D0.86-orange.svg)](pyproject.toml)
[![Agent SDK](https://img.shields.io/badge/agent--sdk-supported-purple.svg)](claudekit-docs/docs/modules/agents.md)
[![MCP](https://img.shields.io/badge/MCP-supported-red.svg)](claudekit-docs/docs/modules/tools.md)

[Installation](#installation) · [Quick Start](#quick-start) · [What's Inside](#whats-inside) · [Platforms](#platforms) · [Documentation](#documentation)

</div>

---

## Installation

```bash
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

```python
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:

```python
from claudekit import create_client  # auto-detects from env vars

# or explicitly:
from claudekit import TrackedBedrockClient, TrackedVertexClient, TrackedFoundryClient
```

---

## Documentation

**[Full Documentation →](claudekit-docs/docs/index.md)**

---

## License

[MIT](LICENSE)
