Catalog PyPI
PACKAGE EXPLORERView in registry

agentguard-auth

PyPI

Python SDK for the AgentGuard AI Agent Authorization API

agent-securityai-agentsauthorizationpolicysecurity
Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 22:05 UTC

README

Version 0.1.0 documentation

AgentGuard Python SDK

Python SDK for the AgentGuard AI Agent Authorization API.

AgentGuard provides an authorization and policy layer between AI agents and the tools or resources they interact with. It evaluates requested actions and returns one of three decisions:

  • ALLOW
  • BLOCK
  • REQUIRE_APPROVAL

Installation

pip install agentguard

Quick Start

from agentguard import AgentGuard

client = AgentGuard(api_key="ag_live_your_api_key")

result = client.authorize(
    agent_id="sales-agent",
    action="send_email",
    resource="customer_123",
    parameters={
        "recipient": "customer@example.com"
    }
)

print(result.decision)
print(result.risk_score)
print(result.reason)

Decision Helpers

The returned EvaluationResult provides convenient properties:

if result.allowed:
    print("Action is allowed")

if result.blocked:
    print("Action is blocked")

if result.requires_approval:
    print("Human approval is required")

Approval Status

For actions requiring approval:

if result.requires_approval:
    approval = client.get_approval_status(result.approval_id)
    print(approval)

Custom API URL

The SDK defaults to the hosted AgentGuard API, but a custom API URL can be supplied:

client = AgentGuard(
    api_key="ag_live_your_api_key",
    base_url="https://your-agentguard-instance.example.com"
)

Security

Keep your AgentGuard API key secret. Do not commit API keys to source control or expose them in client-side applications.

Use environment variables or a secret manager in production.

License

AgentGuard is licensed under the MIT License. See the LICENSE file for details.

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.04 Oct 20261

Package advisories

0
No matching advisories collected

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

Repository

PENDING
sktvdy/agentguard

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:05 UTC

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

Record identity

package:0f058b2a8e8b4ff20501d10a51ae3d217d3ce2c135a25bf2aae4a8aa0779ae32