ExamplesFor the most
For the most
common stacks.
Real recipes, each one linking to the full page on how-to
The runnable code lives in the nullrun-examples repo.
- Set a hard cost capPer-workflow budget with Hard enforcement. The gate blocks the next request at the cap and returns a 402. No silent throttling.
- Mark a tool as sensitiveEvery protected call carries a typed tool envelope, so approval rules can match on the tool's parameters or money amount. The grant is bound to a SHA-256 digest of that exact payload.
- Read the HTTP APIEvery user-callable endpoint, with the SDK call site for each one.
- Run multiple agents on one budgetEvery process holding the same API key lands on one workflow record, so one budget pool spans processes and requests.
- Stream responses from your agentToken-by-token streaming that keeps cost attribution. The final usage block is reported to /track. A kill is honoured at the next yield boundary.
- Track cost manually for non-HTTP callsCall runtime.track_llm() / runtime.track_tool() from the runtime object when @protect doesn't fit the call shape.
- Wire CI / CD without leaking keysRun the SDK in pipelines with NULLRUN_API_KEY as a short-lived secret. There is no server to run.
Something missing? Open an issue in nullrun-examples