17 views
-/https://github.com/berriai/litellm/issues/28254
GitHub ยท issue

#28254 [Feature]: AgentCOGS integration โ€” per-customer gross margin for LLM SaaS

  • State: open
  • Author: @vaibhav11123

## Summary

Community integration request: add an **AgentCOGS** callback (same pattern as Lago / OpenMeter) so LiteLLM proxy users can send per-completion cost to AgentCOGS for **per-customer margin** (LLM cost + revenue), aimed at B2B SaaS.

## Proposed changes

- `litellm/integrations/agentcogs.py` โ€” `AgentCOGSLogger` โ†’ `POST /v1/ingest` - Registry entry: `callbacks: ["agentcogs"]` - Docs page: observability quickstart (env vars, `user=` attribution) - Unit tests under `tests/test_litellm/integrations/`

## PR

Incoming from: https://github.com/vaibhav11123/litellm/tree/feat/agentcogs-integration

## AgentCOGS links

- Quickstart: https://github.com/vaibhav11123/agentcogs/blob/main/docs/quickstart.md - User-landed callback (works without upstream merge): https://github.com/vaibhav11123/agentcogs/blob/main/docs/integrations/litellm.md

## Attribution

Pass `user=` on completions (same as Lago) โ†’ AgentCOGS `customer_id`.

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 ยท 31d18h16m39s ago โ€” entered ยท #import:https:::github.com:berriai:litellm post #2778
The left issue requires a new integration across callback lifecycle handling, configuration and registration, external-service behavior, attribution, documentation, and test coverage. The right issue is a localized parameter-filtering fix with targeted regression tests, though compatibility semantics add some risk.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search