--- id: paid-python version: "1.11.0" license: unclear license_treatment: unclear maintenance: active --- # paid-python License: unclear · Maintenance: active · Downloads: 80.6K/mo ## What it is and what it does Paid is a Python client library for the Paid API, designed to handle billing, subscriptions, pricing, and cost tracking for AI agent applications. It provides a straightforward REST client interface for managing customers and subscriptions, plus an optional OpenTelemetry tracing layer that automatically instruments calls to major AI providers (OpenAI, Anthropic, Bedrock, Cohere, Google GenAI, and others) to capture and report usage costs. The package is built around two main workflows: direct API calls for customer and subscription management, and decorator-based or context-manager-based cost tracking that wraps your agent logic. It pulls in a large set of instrumentation libraries as dependencies—one for each supported AI provider—which means you get automatic tracing integration without writing wrapper code. Configuration is handled via environment variables or constructor parameters, and the library gracefully falls back to normal execution if tracing fails. Use it for: - Track AI API costs in real time for multi-tenant SaaS applications serving AI agents, attributing usage to specific customers. - Implement usage-based billing for agent workflows by wrapping agent functions with @paid_tracing and querying traces by customer metadata. - Monitor and cap spending on AI provider calls (OpenAI, Anthropic, etc.) by collecting cost telemetry through OpenTelemetry without modifying provider SDK calls. - Build a customer management and subscription renewal system for AI agent products using the Paid API client. - Route cost traces to a custom OpenTelemetry collector endpoint for integration with existing observability infrastructure. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Paid is a Python SDK for integrating billing, subscriptions, and cost tracking into AI agent applications via the Paid API, with built-in OpenTelemetry instrumentation for tracking AI provider costs. Yes, if you are building a monetized or multi-tenant AI agent platform and need integrated billing and cost tracking. The low install friction, active maintenance, and automatic instrumentation of major AI providers make it a practical choice. However, verify the license terms before committing to production use, and confirm that the 18 runtime dependencies align with your environment's constraints and update cadence. ## Install pip install paid-python uv add paid-python poetry add paid-python ## Installing paid-python Before you install: Low install friction with a pure-Python wheel. Active maintenance with a recent release (38 days ago). Depends on 18 runtime packages including OpenTelemetry, Pydantic, and instrumentation libraries for multiple AI providers—a substantial but standard dependency tree for an integration SDK. License in practice: License status is unclear; neither SPDX nor raw license metadata is available. Verify the actual license terms in the repository before adopting this package in a commercial or restricted-license project. Quickstart: pip install paid-python from paid import Paid from paid.tracing import initialize_tracing, paid_autoinstrument, paid_tracing initialize_tracing() paid_autoinstrument() client = Paid(token="API_KEY") @paid_tracing("customer_id") def my_agent(): response = client.customers.create_customer(name="John Doe") return response Requires Python 3.10 or later (up to 3.13). API key from Paid dashboard must be set via token parameter or PAID_API_KEY environment variable. Verify before relying: - Whether the package's 18 runtime dependencies (particularly the openinference and opentelemetry instrumentation libraries) are all actively maintained and compatible with current AI provider SDK versions. - Actual license terms and any commercial usage restrictions not declared in package metadata. - Whether the default OpenTelemetry collector endpoint (collector.agentpaid.io) requires additional configuration or authentication in production environments. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 80.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags AI agent billing SDK, subscription management for AI apps, cost tracking OpenTelemetry, AI pricing and renewals, agent monetization library, ai-agent-billing, opentelemetry-instrumentation, cost-tracking [View on SkillFed](https://skillfed.io/packages/paid-python) · [View on PyPI](https://pypi.org/project/paid-python/)