How We Made Coding Agent Spend Predictable
Blog post from LangChain
LangChain faced challenges in managing AI usage costs as AI became more integral across the company, with expensive models and coding agents increasing usage unpredictably. To address this, LangChain developed the LangSmith LLM Gateway, a cost-tracking tool integrated into their existing systems, allowing leadership to monitor and control AI spend in real-time. The Gateway enables setting budget limits for organizations, workspaces, users, and API keys, offering flexibility for projects requiring higher usage. Through central implementation and integration with LangSmith's management systems, the Gateway provides visibility into spending, preventing unexpected bills and allowing for traceability and analysis of AI application costs. Lessons from the internal rollout highlighted the need for dynamic model pricing, support for diverse client routes, and workflows around spending limits, leading to improvements in price accuracy and alert systems. Since implementing the Gateway, LangChain has maintained its LLM costs within budget, providing engineering leaders with the tools to manage usage effectively.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 8 | 6,292 | 1,205 | 252 | -36% |
| Harness engineering | 1 | 254 | 141 | 71 | +28% |
| Observability | 1 | 4,261 | 791 | 201 | +16% |
| Real-time | 1 | 6,055 | 1,444 | 270 | -11% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.