Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentguard-auth

Python SDK for the AgentGuard AI Agent Authorization API

agent-securityai-agentsauthorizationpolicysecurity
Published4 Oct 2026
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.27.0runtime

Distribution files

2 collected
agentguard_auth-0.1.0-py3-none-any.whl

bdist_wheel · 4.36 KB · Python py3

Source file
agentguard_auth-0.1.0.tar.gz

sdist · 4.23 KB · Python source

Source file

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_version:02449b0e4e409ef37f2036e9beb6a540aa6e2c5c50bc4a55bbea59c5f696e071

Other collected versions

View all collected versions →