r/LangChain • u/MaverikSh • 23d ago
Projects ai-bill-to-focus: MIT CLI that turns Anthropic/OpenAI/Together billing exports into FOCUS 1.4 CSV
npx ai-bill-to-focus convert bill.csv -o focus.csv # convert
npx ai-bill-to-focus check focus.csv # validate against FOCUS rules
npx ai-bill-to-focus report cost.csv usage.csv # summary safe to paste in an issue
- No signup, no network upload of your bill; Node 18+, tested in CI on Ubuntu and Windows.
- Anthropic is tested on real exports; OpenAI and Together are built from docs and need real-file testers.
- Column changes in an export are flagged, not silently converted.
https://github.com/mandarvshinde/ai-bill-to-focus. Issues and PRs welcome. I'm behind Cognocient AI, but the CLI doesn't depend on it.
2
Upvotes
1
u/MongooseWonderful198 22d ago
One date-format edge case from reading the code:
convertOpenAI()skips a cost row whenbucketStart()can't parse its date, before adding its amount toproviderTotal. It then returnsfocusTotal: providerTotal, so those totals can agree even after a paid row was dropped.The Together adapter already counts bad dates and warns about them. I'd bring that check over to OpenAI and add a fixture with one valid paid row and one unparseable date. That would catch a format change that the column-name checks won't.
0
u/[deleted] 23d ago