Catalog PyPI
PACKAGE EXPLORERView in registry

agentsec

PyPI

Security infrastructure for autonomous AI agents

agentsaipolicysecuritytelemetry
Versions collected1
Direct dependencies11From release 0.3.0
Last observed20 Oct, 23:18 UTC

README

Version 0.3.0 documentation

AgentSec Python SDK

Security infrastructure for autonomous AI agents.

Installation

pip install agentsec

Quick Start

from agentsec import AgentSecClient, policy

# Initialize client
client = AgentSecClient(agent_id="my-agent")

# Capture events manually
client.capture_prompt("What files are in /etc?")
client.capture_response("I'll list the files in /etc for you.")
client.capture_tool_call("list_directory", {"path": "/etc"})

# Or use the guard decorator for automatic capture + policy enforcement
@policy.guard
def execute_command(cmd: str) -> str:
    # Your implementation
    pass

Policy Enforcement

from agentsec import policy

# Load policies
policy.load("policies/")

# Policies are automatically enforced on guarded functions
@policy.guard
def read_file(path: str) -> str:
    with open(path) as f:
        return f.read()

# This will raise PermissionError if policy denies
read_file("/etc/passwd")

Event Storage

Events are stored locally by default in .agentsec/events/. Each run creates a JSONL file.

# View events
cat .agentsec/events/*.jsonl | jq .

Documentation

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.3.012 Mar 202611

Package advisories

0
No matching advisories collected

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

Repository

PENDING
jtaylortech/ai-cybersecurity

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:18 UTC

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

Record identity

package:ee0835368d7fb7eb153790c805e7b33ebeb66a99090c0674e14a337712e2f780