Skip to main content

Privacy-first LLM and infrastructure cost tracking SDK.

Project description

CostPilot Python SDK

The SDK instruments LLM provider clients, writes sanitized cost records to local SQLite, and optionally syncs those sanitized records to CostPilot cloud when a cloud API key is configured.

from costpilot import CostPilotClient
import anthropic

cp = CostPilotClient(project="blueprint-ai", user_id="user_123")
client = cp.wrap(anthropic.Anthropic())
response = client.messages.create(model="claude-haiku-4-5", messages=[])

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

costpilot-0.1.0.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

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

costpilot-0.1.0-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file costpilot-0.1.0.tar.gz.

File metadata

  • Download URL: costpilot-0.1.0.tar.gz
  • Upload date:
  • Size: 41.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for costpilot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e4501eb8cb5edd0dbf28ff1153933bcf5844ec5f00b3da86ea0e5aa74454303
MD5 0e393e48cd5fcdfe659420929bf2e780
BLAKE2b-256 155d635a98fbaef76fd4963ddb284b6b8fabac7db692a3d3ff463b1a00fe8351

See more details on using hashes here.

File details

Details for the file costpilot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: costpilot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for costpilot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d8e645a113f7ff2c1798eb8fdd94d19d8aa746513e6b8d464480df01cb519b2
MD5 00caab52e14687b227d4b2dbd71961f9
BLAKE2b-256 eae8c5dbe89c709394ec54c3ed3db0f4945cab096c658f4d4f0d35dba87ec4d3

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