pylva-sdk and imports as pylva.
Initialize
endpoint for self-hosted deployments. Omit it for Pylva Cloud.
Auto-instrumentation
Importingpylva patches supported provider clients in the host process. Current coverage:
- OpenAI.
- Anthropic.
customer_id, and step_name when a tracking context is active.
Tracking context
track_context uses Python context variables so metadata follows async work without manual argument threading.
LangGraph callback
langgraph_node as the default Pylva step. See
LangGraph Cost Tracking.
Non-LLM usage
Budget hard stops
Webhook verification
sha256= prefixed signatures.