LangChain
Meter and attribute a LangChain agent's spend by routing its model calls through the Silvanexum gateway.
LangChain is one of the most common ways to build an agent. Silvanexum captures its spend with zero rewrite: point LangChain's model client at the Silvanexum gateway and every call your chain makes is metered on your own provider key, attributed, and counted toward your budgets.
The gateway is OpenAI-compatible (/gateway/openai/v1), so use
langchain-openai and an OpenAI model, and make sure your org has an OpenAI
provider key saved (Settings → Keys). Native Anthropic traffic isn't
gateway-proxied yet. Your key needs the run scope.
Install
Route the model through the gateway
Every model call the chain makes — including tool-calling turns — now flows through the gateway on your BYO OpenAI key, with no duplicate run.
See the spend
Or open the Spend and Budgets views in the dashboard (or the VS Code
extension) — gateway spend counts toward your org budgets and, with a
block-mode budget, an over-cap call is rejected with 402.