Launched an AI cost visibility tool on PH today — built it after nearly getting blindsided by our own OpenAI bill

Launched an AI cost visibility tool on PH today — built it after nearly getting blindsided by our own OpenAI bill

Hey folks 👋

Just launched Cognocient on Product Hunt today —

https://www.producthunt.com/products/cognocient?utm_source=other&utm_medium=social

Short version of why I built it: if you're running AI features in production, you're probably getting one lump number on your OpenAI/Anthropic/Gemini invoice and no idea which feature, team, or user is actually driving it. I've seen (and hit) situations where a leftover eval script quietly burns thousands of dollars for weeks before anyone notices.

Cognocient sits as a lightweight proxy in front of your AI API calls and gives you:

  • Real-time cost attribution by feature/team/session (not just one bill total)
  • Anomaly alerts when something spikes, with a root-cause guess
  • Budget enforcement so a runaway agent hits a wall instead of your invoice
  • Board-ready spend reports for the finance side

It's a 10-day free trial, no credit card required, and setup basically involves pointing your API calls at one URL.

I'm a first-time founder doing this solo, so I'd genuinely love feedback — especially from anyone who's felt the "why did our AI bill double" panic firsthand. Happy to answer any questions about the build, pricing, or what didn't work in the PH launch itself.

https://www.producthunt.com/products/cognocient?utm_source=other&utm_medium=social

u/MaverikSh — 4 days ago
▲ 1 r/FinOps

How is your org breaking down AI/LLM spend for finance reporting?

Curious how other FinOps folks are handling AI cost reporting right now. Traditional cloud cost allocation (tagging, showback, chargeback) is well-established, but LLM API spend seems to break a lot of the usual patterns:

  • Costs are per-call rather than per-resource, so traditional tagging strategies don't map cleanly
  • A single feature can have wildly variable cost depending on prompt length, retries, or agentic loops — same feature, same day, could cost 10x depending on usage patterns
  • Finance wants "cost per outcome" or "cost per customer," but the raw data is token counts and API logs, which isn't something you can hand to a CFO as-is
  • FOCUS (FinOps Open Cost and Usage Spec) has been extending to cover AI/ML costs anyone actually using FOCUS 1.1 for this yet, or still building custom internal reporting?

How is your team handling this: internal tooling, spreadsheets, one of the newer AI-specific cost platforms? And separately: is anyone actually attributing AI costs by feature/team/department in a way finance trusts, or is it still mostly "here's the total bill, we think"?

reddit.com
u/MaverikSh — 5 days ago

How are teams detecting which features have high context tax — where the system prompt dominates input tokens?

Working on something and want to understand how others approach this.

The pattern: a feature has high input token counts but low variance across calls. Coefficient of variation < 0.15 suggests most of the input is the same static system prompt on every call — the "context tax."

ProjectDiscovery published a case study in which moving dynamic working memory out of the system prompt raised their cache hit rate from 7% to 84% and cut LLM costs by 59%.

The detection part seems straightforward at the proxy layer: look at the stddev/mean of input tokens per feature over a rolling window. But I am running into two edge cases:

  1. Multi-turn conversations: the input grows with each turn, so variance looks high even when the system prompt is large and static. Do you strip the conversation history before calculating variance, or handle this differently?

  2. Tool-use calls: tool schemas get appended to the system prompt and are technically static, but they vary slightly as the tool list changes. This creates false low-variance signals that are not, in fact, cache opportunities.

How are you handling these? Or are you just using heuristics (e.g., flag any feature where min_input_tokens > 500) rather than trying to be precise?

reddit.com
u/MaverikSh — 12 days ago
▲ 3 r/FinOps+5 crossposts

For those at FinOps X — what was the most surprising thing about the AI cost sessions?

Vendor disclosure: I built Cognocient (cognocient.com) — posting because I am genuinely trying to understand what practitioners are actually experiencing, not to pitch.

A few data points I keep hearing about FinOps X that I want to pressure-test against people who were there:

  1. 32% of sessions were about governance and adoption, the highest category. More than the cost of AI itself. Does that match what you experienced? My read is that the tooling problem is largely solved; the blocker is getting organizations to actually change how they work.

  2. The "windshield vs rearview mirror" framing came up repeatedly. FinOps built for historical billing data does not work when a misconfigured agent can generate a six-figure bill in hours. Are practitioners actually shifting to pre-spend enforcement, or is it still mostly post-hoc reporting in practice?

  3. Tokenomics was announced as a new discipline at the conference. Is this a real category, or is it just FinOps for AI with a new name?

For those who were not there, the same questions apply to your day-to-day. Where is your org actually stuck?

u/MaverikSh — 6 days ago
▲ 0 r/FinOps

The CFO asked for an AI spend breakdown by department. We could not answer. So we built Cognocient.

Vendor disclosure: I built Cognocient (cognocient.com). Sharing what I learned building this happy to be challenged on any of it.

I spent four months trying to answer one question: why did our AI bill double?

We had Datadog. We had OpenAI's usage dashboard. We had a spreadsheet someone built six months ago that nobody trusted anymore.

None of them could tell us which product feature drove the spike. Which team. Which model. Which week did it start?

What we had was one number: $47,200. And a CFO asking for a breakdown by next Tuesday.

The problem nobody talks about

Most FinOps tooling is built for cloud infrastructure. AWS, GCP, Azure — tagged resources, cost allocation keys, well-understood billing models.

LLM spends breaks that model completely:

→ One API key for the entire company

→ Calls fire from 12 different features across 4 teams

→ Billing shows model + tokens. Nothing else.

→ Alerts fire after the damage is done

The "just use billing alerts" answer stops working at around $10K/month when you need to know why, not just how much.

What we built

Cognocient is a proxy layer that sits between your code and your AI provider.

Change one line:

```

# Before

client = OpenAI(api_key="sk-...")

# After

client = OpenAI(

api_key="sk-cog-YOUR-KEY",

base_url="https://api.cognocient.com/v1"

)

```

Every call now carries context via headers:

```

X-Cost-Feature: "ticket-resolver"

X-Cost-Department: "customer-success"

X-Cost-Session: ticket_id

X-Cost-User: customer_id

```

That $47,200 becomes:

ticket-resolver: $18,400

search: $11,200

document-summariser: $9,600

sales-automation: $8,000

Now you can answer the CFO.

The piece that doesn't exist elsewhere

Budget enforcement happens before the call reaches the provider. Not after.

Three modes:

- Block — hard stop, return 429 (for agentic write operations)

- Degrade — auto-switch to cheaper model, call completes (for read ops)

- Alert — allow through, flag it (for monitoring phase)

For agentic loops specifically, where a single user action can trigger 50+ model calls, post hoc alerts are useless. By the time Slack pings you, the loop has already run.

We discussed the race condition in fan-out calls in [this thread last week](https://www.reddit.com/r/FinOps/comments/1u88uew/realtime_cost_enforcement_for_agentic_loops/). The atomic Lua reservation in Redis is what makes concurrent budget checks work correctly.

---

What it produces for the finance layer

  • Per-feature, per-department, per-GL-account breakdowns
  • FOCUS 1.1 export (plugs into NetSuite, QuickBooks, Xero)
  • AI Efficiency Score (0–100 for the board deck)
  • One-click PDF board report with Claude-written narrative
  • Investment vs waste classification (28–40% of spend is typically recoverable)

---

What I am genuinely curious about

Three questions for people who have dealt with this:

  1. Where does LLM cost attribution currently live in your org: engineering, FinOps, or finance? Or is it a gap?
  2. When your CFO asks about AI spend, what do they actually want to know? (I have heard everything from "total cost" to "cost per customer interaction")
  3. For teams using agentic workflows, are you doing any enforcement today, or is it still mostly monitoring?

Not fishing for leads. Actually want to understand if we built the right things.

10-day free trial at cognocient.com if you want to see actual numbers in your own data. No credit card required.

cognocient.com
u/MaverikSh — 14 days ago
▲ 1 r/FinOps

Real-time cost enforcement for agentic loops (Beyond standard alerts)

Platform billing alerts are too slow for fast-spinning agent loops. If you need to enforce a strict maximum spend (e.g., $0.50 per agent execution) and kill the loop instantly if it exceeds it, how are you implementing that?

Interested in hearing if people are leaning towards custom middleware, proxy routing, or something else entirely.

reddit.com
u/MaverikSh — 20 days ago
▲ 2 r/LLM

How are you guys preventing "infinite loop bankruptcy" with your AI agents?

Building out some autonomous agents and standard API billing alerts just aren't cutting it—by the time the alert fires, a rogue loop could have already done some serious damage to the wallet.

What’s the best practice right now for putting a hard, real-time ceiling on cost per run?

Are most people just building custom token-counting wrappers around their LLM calls, or is there an industry-standard way to auto-kill a process the second it hits a specific cent/dollar threshold? Would love to know how you're handling this in your own setups.

reddit.com
u/MaverikSh — 20 days ago
▲ 1 r/LLM

Architecture question: Enforcing real-time, hard cost ceilings on LLM agent loops?

I am exploring different approaches to cost enforcement for multi-step agent loops. We all know standard billing alerts are too delayed to stop an autonomous loop from burning through API credits if it goes rogue.

For those running agents in production, how are you enforcing hard cutoffs in real-time?

  • Are you routing everything through an AI gateway/proxy to count tokens on the fly?
  • Are you injecting custom middleware to track spend per session/run and auto-kill the process?
  • Relying on open-source tools, or did you have to build this logic from scratch?

Curious to hear what the standard stack for this looks like right now.

reddit.com
u/MaverikSh — 20 days ago
▲ 6 r/FinOps

How is everyone handling real-time cost ceilings for LLM/Agent loops? (Beyond just alerts)

Hey everyone,

With more teams deploying autonomous AI agents, the risk of an unmonitored infinite loop racking up massive API bills over a weekend is becoming a very real FinOps challenge.

Traditional cloud cost management tools are great for visibility, but they usually operate on a 24-to-48-hour data lag. If a rogue agent loops thousands of times a minute, an email alert on Monday morning means the damage is already done.

I’m curious how other organizations are tackling hard, real-time boundaries for AI spend:

  • Native Platform Limits: Are you relying strictly on the budget caps built directly into Anthropic Console / OpenAI platform?
  • Proxy/Gateway Architecture: Has anyone implemented a custom LLM proxy (or gateway) layer to actively block API calls the second a team's daily/monthly budget hits 100%?
  • CFO Visibility: How close to "real-time" is your AI spend reporting right now?

Would love to hear what architecture or tools you've found success with for proactive enforcement rather than reactive alerting.

(Full disclosure: I am working on a proxy-based cost control solution, but I’m genuinely trying to understand if engineering teams prefer handling this at the infrastructure layer or the application layer.)

reddit.com
u/MaverikSh — 1 month ago
▲ 4 r/FinOps

Quick question about your AI costs

How is your team currently tracking LLM API spend?

We're cobbling together spreadsheets and the OpenAI

dashboard, but it feels broken. Curious what others do.

reddit.com
u/MaverikSh — 2 months ago