Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The cost predictability problem is real and it comes from a single mechanical fact: you cannot know what an LLM call costs before you make it, because the token count only comes back with the response. Vendor dashboards, per-key limits, and budget alerts all arrive after the money is spent. A proxy in front of your agents sees the same response you do, so it cannot refuse a call based on predicted cost either.

The only place that can enforce a ceiling before the next call goes out is inside the agent process itself, where you already know what the last call cost and can accumulate a running total. That is what focxle does. It wraps the SDKs you already use, attributes spend to named agents across every vendor, prints a console report that shows the projected monthly at the current run rate, and enforces per-call and daily caps in enforce mode. Free observe mode never blocks anything and needs no account.

```python pip install focxle

import focxle focxle.init() ```

I work on focxle, so weigh that as you like.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: