Cognocient offers proxy-free LLM cost tracking via async Python wrapper
A developer has released Cognocient, an open-source Python wrapper for OpenAI and Anthropic SDKs that tracks LLM usage costs without routing requests through a proxy. The tool wraps existing client calls transparently and fires cost reports on a background thread only after the actual API response has already been returned. A key design priority was fault isolation: if Cognocient's reporting endpoint is unavailable, the failure remains invisible to the host application and does not affect real API calls. The wrapper supports per-call cost attribution with optional tags for teams, features, and users to enable chargeback-style reporting. Currently at v0.1.x, it does not yet support streaming responses and intentionally omits pre-call blocking, positioning it for teams that want cost visibility without adding a critical dependency to their request path.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in