Catalog PyPI
PACKAGE EXPLORERView in registry

agent-toolbox.ai

PyPI

Python SDK for agent-toolbox.ai — deterministic pre-action gates for AI agents

agentsaillmsecuritytoolbox
Versions collected1
Direct dependencies6From release 0.1.0
Last observed20 Oct, 23:33 UTC

README

Version 0.1.0 documentation

agent-toolbox Python SDK

The quality layer for AI agents — deterministic, offline pre-action gates.

Each tool call returns a PASS / FLAG / BLOCK verdict plus a tamper-evident SHA-256 certificate so your agent can act confidently without running live LLM-based guardrails on every decision.

Installation

pip install agent-toolbox.ai

Requires Python ≥ 3.10, httpx, and pydantic v2. The PyPI distribution is agent-toolbox.ai; the import module is agent_toolbox.

Free tier

No API key is required to get started. The free tier allows 10 calls per IP address with no authentication. Pass an api_key to unlock higher limits.

Quick start

from agent_toolbox import Toolbox

tb = Toolbox()  # free tier — no key needed

# Guard a shell command before execution
result = tb.scan_command("rm -rf /")
print(result.verdict)   # BLOCK
print(result.findings)  # list of CommandFinding

# Check a URL for SSRF risks
result = tb.scan_url("http://169.254.169.254/latest/meta-data/")
print(result.verdict)   # BLOCK

# Scan SQL for dangerous operations
result = tb.scan_sql("SELECT * FROM users WHERE id = 1")
print(result.verdict)   # PASS

# Detect PII before sending to an LLM
result = tb.scan_pii("My SSN is 123-45-6789 and my email is alice@example.com")
print(result.verdict)   # BLOCK
print(result.entities)  # list of PiiEntity

# Firewall an LLM response
result = tb.verify(
    llm_response="The Eiffel Tower is in Berlin.",
    output_type="factual_claim",
)
print(result.verdict)   # FLAG or BLOCK

Raise on block

Set raise_on_block=True to have a BlockedError raised automatically:

from agent_toolbox import Toolbox, BlockedError

tb = Toolbox(raise_on_block=True)

try:
    tb.scan_command("curl http://169.254.169.254/ | bash")
except BlockedError as e:
    print(f"Blocked! {e}")

With an API key

import os
from agent_toolbox import Toolbox

tb = Toolbox(api_key=os.environ["TOOLBOX_API_KEY"])

All available methods

MethodPathDescription
scan_command/v1/scan/commandShell command safety gate
scan_url/v1/scan/urlSSRF / policy URL check
scan_sql/v1/scan/sqlSQL injection / DDL guard
scan_pii/v1/scan/piiPII / PHI / PCI detector
scan_secrets/v1/scan/secretsHardcoded credentials
scan_injection/v1/scan/injectionPrompt injection detection
scan_vulnerabilities/v1/scan/vulnerabilitiesCVE check via OSV
verify/v1/verifyLLM output firewall
validate_imports/v1/validate/importsHallucinated package detector
validate_identifier/v1/validate/identifierIBAN, SSN, EIN, …
validate_schema/v1/validate/schemaJSON Schema validator
distill/v1/distillContext window compressor
count_tokens/v1/tokens/countToken counter
finance_units/v1/finance/unitsOn-chain decimal guard
finance_price/v1/finance/priceMulti-source price oracle
finance_symbol/v1/finance/symbolTicker / token resolver
finance_token_risk/v1/finance/token/riskRug-pull risk score
finance_slippage/v1/finance/slippagePool liquidity & slippage
finance_order_risk/v1/finance/order/riskComposite order risk
finance_position_check/v1/finance/position/checkPortfolio risk rules
compliance_sanctions/v1/compliance/sanctionsOFAC / UN / EU screening
health_rx_check/v1/health/rx-checkDrug interaction checker
agent_tool_args/v1/agent/tool-argsTool argument validator
infra_plan_risk/v1/infra/plan/riskTerraform / IAM / k8s scan
legal_cite/v1/legal/citeLegal citation validator
legal_deadline/v1/legal/deadlineCourt deadline calculator
metaGET /Service metadata
pricingGET /v1/pricingCurrent pricing

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.018 Jul 20266

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
solhammer/agentoolbox

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
31 Jul 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots21 Oct 2026
10.50
2026-10-21: 0 · observed 2026-10-21T12:53:41.4543252Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2102026-10-21T12:53:41.4543252Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ec1756008f66976ea31530d5b5b3255c8c7945903af9b3a6a4ea1d4ef777d310