Catalog PyPI
PACKAGE EXPLORERView in registry

agentgate-sdk

PyPI

The security gateway for AI agents — auth, rate limiting, and policy enforcement in one line.

agentsaigatewaylangchainmcpopenaipolicysecurity
Versions collected1
Direct dependencies3From release 0.1.0
Last observed20 Oct, 22:02 UTC

README

Version 0.1.0 documentation

agentgate

The security gateway for AI agents. Enforce authentication, rate limiting, and policy controls between users and AI agents — in one line of code.

Install

pip install agentgate

With LangChain:

pip install "agentgate[langchain]"

With OpenAI Agents SDK:

pip install "agentgate[openai]"

Everything:

pip install "agentgate[all]"

Quickstart

Get your free API key at https://agent-gate-rho.vercel.app/

Any agent (generic)

from agentgate import with_agent_gate, AgentGateOptions

secured = with_agent_gate(my_agent, AgentGateOptions(
    api_key="ag_your_key_here"
))
result = secured.run("delete_file", {"path": "/etc/passwd"})

LangChain

from agentgate import AgentGateLangChainCallback, AgentGateOptions
from langchain.agents import AgentExecutor

callback = AgentGateLangChainCallback(
    AgentGateOptions(api_key="ag_your_key_here")
)
agent_executor = AgentExecutor(
    agent=agent,
    tools=tools,
    callbacks=[callback],
)

OpenAI Agents SDK

from agentgate import wrap_openai_agent, AgentGateOptions
from agents import Agent, Runner

secured = wrap_openai_agent(agent, AgentGateOptions(
    api_key="ag_your_key_here"
))
result = await Runner.run(secured, "Send email to all users")

MCP middleware

from agentgate import AgentGateMiddleware, AgentGateOptions

gate = AgentGateMiddleware(AgentGateOptions(api_key="ag_your_key_here"))

# Inline check
result = gate.check("send_email", args, lambda: send_email(args))

# As a decorator
@gate.guard()
def delete_user(user_id: str):
    ...

Fail-open vs Fail-closed

# Development (default)
AgentGateOptions(api_key="ag_xxx", on_network_error="fail-open")

# Production (recommended)
AgentGateOptions(api_key="ag_xxx", on_network_error="fail-closed")

Policy decisions

DecisionBehaviour
ALLOWTool executes normally
DENYTool blocked, error string returned
REQUIRE_APPROVALTool paused, human approves in dashboard

Dashboard: https://agent-gate-rho.vercel.app/ GitHub: https://github.com/wiserautomation/agentgate Issues: https://github.com/wiserautomation/agentgate/issues

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.024 Feb 20263

Package advisories

0
No matching advisories collected

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

Repository

PENDING
wiserautomation/agentgate

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:02 UTC

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

Record identity

package:da9cf1b496d03561d9e94d63bf29b9c47b72d3c7df25dd9fdc160f8d3800b999