Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: tokmon – CLI to monitor your program's OpenAI token costs (github.com/yagil)
11 points by ybu on April 18, 2023 | hide | past | favorite | 1 comment



> tokmon uses the mitmproxy library to intercept HTTP requests and responses between your program and the OpenAI API.

somewhat implied given the cli usage, passing your command to it rather than running your command.

is the output provided really worth the mitm? are the inputs so regular that this is strictly a dev tool?

self-mitm is interesting, just not understanding the value of this over implementing some light auditing in a script.

other than not having to do it, but the user of such a tool could just ask chatgpt to convert code from one language to another. or even scan this code and build a library. if not write the script with cost monitoring baked in.

slippery slope being what it is.




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

Search: