How a runaway AI agent cost me $47 while I slept (and how I fixed it)
Dev.to AI
•
Generative AI
AI Safety
Have you ever woken up to a massive API bill because your AI agent got stuck in a loop? I have. Recently, I spent $47 debugging a LangGraph retry loop. The agent kept failing, LangGraph kept retrying, and OpenAI kept charging me - all while I was fast asleep. I realized we need better guardrails for AI agents. So, I built Shekel so you don't have to learn that expensive lesson yourself. What is Shekel? 🪙 Shekel is a zero-config, open-source Python library for LLM budget enforcement and cost tracking.