Skip to content

Integrations Overview

MeshGuard integrates with popular AI agent frameworks and any HTTP-based system.

Official SDKs

Python SDK

The official Python SDK with native support for LangChain, CrewAI, and AutoGPT.

bash
pip install meshguard
pip install meshguard[langchain]  # With LangChain support

Python SDK Documentation →

Framework Integrations

FrameworkStatusGuide
LangChain✅ SupportedLangChain Guide
CrewAI✅ SupportedCrewAI Guide
AutoGPT✅ SupportedAutoGPT Guide
Claude Code✅ SupportedClaude Code Guide
Amazon Bedrock Agents✅ SupportedBedrock Guide
Google Vertex AI / ADK✅ SupportedVertex AI Guide
OpenAI Agents SDK✅ SupportedOpenAI Agents Guide
Clawdbot✅ SupportedClawdbot Guide
Microsoft Semantic Kernel✅ SupportedSemantic Kernel Guide
Generic HTTP✅ SupportedHTTP Guide

Quick Example

python
from meshguard import MeshGuardClient

client = MeshGuardClient(
    gateway_url="https://dashboard.meshguard.app",
    agent_token="your-token"
)

# Check policy before acting
decision = client.check("read:contacts")
if decision.allowed:
    contacts = fetch_contacts()

Integration Patterns

Wrap your tools with governance:

python
from meshguard.langchain import governed_tool

@governed_tool("read:database")
def query_database(sql: str) -> str:
    return db.execute(sql)

2. Context Manager Pattern

Govern code blocks:

python
with client.govern("write:email"):
    send_email(to="user@example.com", body="Hello!")

3. Explicit Check Pattern

Manual policy checks:

python
if client.check("delete:records").allowed:
    delete_records()
else:
    raise PermissionError("Not allowed")

Environment Variables

All integrations support configuration via environment variables:

bash
export MESHGUARD_GATEWAY_URL="https://dashboard.meshguard.app"
export MESHGUARD_AGENT_TOKEN="your-agent-token"
export MESHGUARD_ADMIN_TOKEN="your-admin-token"

Governance Control Plane for AI Agents