AgentGate integrates in a few lines into all major agent frameworks. Whatever your stack — if your agent can make an HTTP call, it can use AgentGate.
Plug AgentGate as a tool in your OpenAI agent. The agent submits payment intents via the `pay_with_agentgate` function — every transaction goes through your rules before being executed.
from agents import Agent, tool
import httpx
@tool
def pay_with_agentgate(amount: float, beneficiary: str, iban: str, reason: str) -> str:
res = httpx.post(
"https://agentgate.eu/api/v1/payment-intents",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"amount": int(amount*100), "currency": "EUR",
"beneficiary": {"name": beneficiary, "account_identifier": iban},
"category": "payment", "memo": reason}
)
return res.json().get("status")AgentGate exposes an MCP server. Claude and any MCP-compatible agent can submit payments natively — no custom integration required.
{
"mcpServers": {
"agentgate": {
"command": "npx",
"args": ["-y", "@agentgate/mcp-server"],
"env": { "AGENTGATE_API_KEY": "your_key" }
}
}
}Create a LangChain tool that wraps the AgentGate API. Compatible with LangGraph, LCEL, and all LangChain agents.
from langchain.tools import tool
import httpx
@tool
def agentgate_pay(amount_eur: float, beneficiary: str, memo: str) -> dict:
"""Submits a payment to AgentGate for validation."""
return httpx.post(
"https://agentgate.eu/api/v1/payment-intents",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"amount": int(amount_eur * 100), "currency": "EUR",
"beneficiary": {"name": beneficiary}, "memo": memo}
).json()Use the HTTP Request node in n8n to call the AgentGate API from your automation workflows. Perfect for n8n agents managing recurring payments.
POST https://agentgate.eu/api/v1/payment-intents
Authorization: Bearer {{ $env.AGENTGATE_API_KEY }}
Content-Type: application/json
{
"amount": {{ $json.amount }},
"currency": "EUR",
"beneficiary": { "name": "{{ $json.vendor }}" },
"memo": "{{ $json.description }}"
}Integrate AgentGate into any language or framework via our standard REST API. Python, Node.js, Go, Ruby — anything that can make an HTTP call works.
curl -X POST https://agentgate.eu/api/v1/payment-intents \
-H "Authorization: Bearer $AGENTGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 15000,
"currency": "EUR",
"beneficiary": { "name": "Supplier Ltd", "account_identifier": "GB29..." },
"category": "supplies",
"memo": "Monthly order"
}'