Runs OpenAI's Codex coding agent locally on your computer from the command line.
AI Costguard
salimassili · Agent
AI CostGuard is an in-process guard for Node.js AI agents. You wrap an SDK client or a function, and each guarded call is checked before it runs: its cost is estimated from model pricing, the prompt and reserved output tokens, and the call is blocked if it would exceed the budget, repeat a prompt loop, retry too often or overrun the step limit. Parallel calls in one process reserve budget atomically. It runs locally with no hosted service, guards only the methods you wrap, and rejects streaming calls.
Written by ooruby from the README of @salimassili/ai-costguard 2.3.2.
Not claimed by its maker. Is this yours? Prove it and answer the findings
Why it's useful
Over-budget calls, prompt loops and retry storms are stopped before the provider request executes, not reported afterwards.
What you could do with it
- Wrap your OpenAI client with a budget so a call that would overspend is blocked before it reaches the provider.
- Guard a custom agent method, or wrap a function-style adapter such as a Vercel AI SDK or LangChain wrapper.
- Give each project, user or session its own budget and handle the structured error your app receives when a call is blocked.
Written from its documentation: what it says it can do, not what our checks found.
Maintenance
Not measuredNo release date is on record for this package yet. The nightly publisher check records one as it reaches each npm package, about once every ten nights.
Release activity only: it says nothing about quality or safety, and a finished small package can be fine without releases. How it is measured
- Command execution is bounded
- inventory
- node child_process (examples/integrations/ci-budget-check.mjs:1)
- synchronous shell execution (examples/integrations/ci-budget-check.mjs:9)
- An inventory of where the code starts another program, not a verdict on this row: whether each one runs a fixed program or whatever it is handed takes a reading by hand.
Published because it was found. A finding is information about where the limits are, not a verdict that the software is unsafe.
What this does not cover
- Everything. Treat it as you would software from anywhere else.
Receipt history: every signed receipt for every version of this listing, and what changed between them.
In its maker's words
In-process pre-call spend enforcement and agent execution policy for Node.js AI agents. Blocks over-budget calls, prompt loops, retry storms, and max-step overruns before the provider request executes.
Compare with
Compare all 4How far this has been checked
Static scanned
- What it establishes
- Its published package, or for a hosted server its source repository at a recorded commit, was read file by file, without running it, by every check in our current scan.
- What it does not
- How it behaves when it runs, or anything the scan does not read yet: several rubric checks, the repository's history, and compiled code in folders named dist or build. For a hosted server, that the endpoint runs the code that was read. The ooruby Index sets out exactly what was read.
- Exactly what was read
- Version 2.3.2, the file with digest sha512-Hx2zUDuzzhiRP4n/nhcL+/Bq8iOS6KY0TEAAPk9zz/EZhg/ZJGVEKPEMHcy0Pz/rjEWsQEo9BNj3ivKsko5rxQ==, as the registry publishes it. A published version cannot be replaced, so this names the same bytes for anyone who checks.
- Authentication
- Runs locally. No hosted endpoint is listed for this package. You run it on your own machine, so there is no endpoint of ours to authenticate against.
Adding it
Run it with:
npx -y -p @salimassili/ai-costguard@2.3.2 aifwPinned to 2.3.2, which is the version the findings above were found in. Drop the version to take whatever is newest, and the report on this page stops describing what you installed.
Where this came from
- Registry
- npm
- Package
- @salimassili/ai-costguard
- Version read
- 2.3.2
- Resolved
- 2026-10-10
No build provenance published. The repository above is the one the publisher declared, and nothing links it to the package you would install. That is not a mark against this listing, since most packages are published this way, but it is a check nobody can run.
The badge, if this is your listing
It renders the current rung (static scanned) and links back here, where what that does and does not establish is one click away. It updates itself as the evidence deepens.
[](https://ooruby.com/market/salimassili-ai-costguard)About this listing
- Kind
- Agent
- Category
- Developer tools
- Pricing
- Free
- Sandbox
- No
- Hosted
- No
- Updated
- 2026-10-09
Similar agents
All agentsVerification records what our published tests found on a specific version at a specific date. It is not a warranty, and it does not certify that software is free of defects.