AbdoKnbGit/claudekit
Python framework for the Anthropic ecosystem — usage tracking, security policies, memory, agents, MCP, and more.
Platform-specific configuration:
{
"mcpServers": {
"claudekit": {
"command": "npx",
"args": [
"-y",
"claudekit"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<div align="center">
Everything the Anthropic SDK is missing — in one coherent Python framework.
*Track costs. Enforce policies. Build agents. Ship faster.*
[](LICENSE) [](pyproject.toml) [](pyproject.toml) [](pyproject.toml) [](claudekit-docs/docs/modules/agents.md) [](claudekit-docs/docs/modules/tools.md)
Installation · Quick Start · What's Inside · Platforms · Documentation
</div>
---
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---
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---
| 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 u
Loading reviews...