Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ai-pr-cost-guard

Latest version: v0.3.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: carl5647747
3 Versions
275 Downloads

Scan summary

ai-pr-cost-guard was last scanned on 29 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 275 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.1 LATEST 29 Nov 2026 No rules fired
0.3.0 21 Nov 2026 No rules fired
0.2.1 21 Nov 2026 No rules fired

No rules fired in 0.3.1

Findings

Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

💸 AI PR Cost & Secret Guard (GitHub Action + CLI)

PyPI MIT License

⭐ Part of the MCP Shieldwall Open-Source AI Security & FinOps Suite — if this tool saves you time or API spend, please star our main repository on GitHub!

Prevent surprise $5,000 LLM API bills and leaked keys before merge.

Try the live interactive demo on Hugging Face Spaces: 👉 https://huggingface.co/spaces/snsnshnwh/ai-pr-cost-guard

Zero-Install Quickstart (uvx)

Run directly against your repo or staged git changes with uvx — no installation required:

# Scan a directory or file
uvx ai-pr-cost-guard ./src

# Scan staged git changes before committing
uvx ai-pr-cost-guard --git-diff --format text

# Emit a Markdown summary report
uvx ai-pr-cost-guard --git-diff --markdown

GitHub Action

Drop this 6-line GitHub Action into any repository using OpenAI, Anthropic, or Gemini SDKs:

name: AI Cost Guard
on: [pull_request]
jobs:
  cost-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: andrejpimenov122-lab444/ai-pr-cost-guard@v1

Pre-commit Hook

Add to .pre-commit-config.yaml to scan staged Python, TypeScript, and JavaScript files:

repos:
  - repo: https://github.com/andrejpimenov122-lab444/ai-pr-cost-guard
    rev: v0.2.1
    hooks:
      - id: ai-pr-cost-guard

What It Catches

  • COST-001 (HIGH): Exposed OpenAI, Anthropic, and Google Gemini API keys (redacted; including .env and .ipynb outputs).
  • COST-002 (HIGH): LLM SDK calls inside unbounded while/for loops or unbounded retry decorators.
  • COST-003 (MEDIUM): Endpoint-aware missing, invalid, or policy-exceeding output token caps (max_tokens / max_output_tokens).
  • COST-004 (LOW): Missing finite timeout on SDK client or per-request calls.

Local CLI Usage

python3 cost_guard.py ./src

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ai-pr-cost-guard

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229