Catalog PyPI
PACKAGE EXPLORERView in registry

agentguard-runtime

PyPI

Runtime security firewall for LangChain agents — intercepts tool calls, enforces YAML policy, logs to SQLite.

agentsfirewalllangchainllmsecurity
Versions collected1
Direct dependencies10From release 0.1.0
Last observed20 Oct, 22:07 UTC

README

Version 0.1.0 documentation

agentguard-runtime

Runtime security firewall for LangChain agents. Intercepts every tool call, checks it against a YAML policy, blocks disallowed calls, and logs everything to SQLite.

Install

pip install agentguard-runtime

Quick start

1. Write a policy file (policy.yml):

agent: pr-summarizer
rules:
  - tool: GitHubTool
    allow: [read]
    block: [admin, write]
  - tool: SlackTool
    allow: [write]
  - tool: "*"
    block: [exec, delete]

2. Add one line to your agent:

from agentguard_runtime import AgentFirewall

agent = initialize_agent(
    tools=[GitHubTool, SlackTool, ShellTool()],
    llm=llm,
    callbacks=[AgentFirewall(policy="policy.yml")]
)

If ShellTool tries to call exec, the agent gets a PolicyViolation and the event is logged.

CLI

# Show last 20 audit events
agentguard-runtime logs

# Start dashboard API on port 7070
agentguard-runtime dashboard

Dashboard endpoints

EndpointDescription
GET /eventsRecent audit events (filterable by ?decision=block&agent=x)
GET /summaryAllowed vs blocked counts per tool today

Policy rules

  • allow list: only these actions are permitted on this tool
  • block list: these actions are always rejected
  • "*" tool: catch-all wildcard for unmatched tools
  • Default: if no rule matches, the call is blocked

Audit log

Events are stored at ~/.agentguard/audit.db (SQLite).

id | timestamp | agent | tool | action | input_preview | decision | reason

Dev setup

git clone <repo>
cd agentguard2
pip install -e ".[dev]"
pytest

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.025 May 202610

Package advisories

0
No matching advisories collected

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

Repository

PENDING
agentguard/agentguard-runtime

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:07 UTC

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

Record identity

package:c6f2836c6f7720aaccb335ba8c71382d348f3be312484fd9ca3d0f0dfd269cb9