Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentgate-sdk

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

agentsaigatewaylangchainmcpopenaipolicysecurity
Published24 Feb 2026
Direct dependencies3
Transitive dependenciesNot calculated

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.

Declared dependencies 5

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.27.0runtime
langchain-core
Environment
{
  "extras": "",
  "marker": "extra == \"langchain\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
langchain-core>=0.2.0; extra == "langchain"runtime
openai-agents
Environment
{
  "extras": "",
  "marker": "extra == \"openai\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
openai-agents>=0.0.3; extra == "openai"runtime
langchain-core
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
langchain-core>=0.2.0; extra == "all"runtime
openai-agents
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
openai-agents>=0.0.3; extra == "all"runtime

Distribution files

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

bdist_wheel · 7.4 KB · Python py3

Source file
agentgate_sdk-0.1.0.tar.gz

sdist · 6.91 KB · Python source

Source file

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_version:29f86f80f6c07e7519fbbcc689d0c6fed3de65fcee055dd018c99a36c732ebad

Other collected versions

View all collected versions →