Skip to main content

AgentGrid — git for AI agents

Registry, version control, and observability for autonomous agent fleets.

pip install agentgrid

Quickstart

from agentgrid import AgentGrid

ag = AgentGrid(api_key="ag_sk_...")  # or set AGENTGRID_API_KEY

ag.register(
    name="email-triage-agent",
    framework="crewai",
    model="claude-haiku-4-5-20251001",
)

That's it. Your agent is in the registry with a version, a diff history, and an audit trail.


CLI

# Register or update an agent
agentgrid register \
  --name email-triage-agent \
  --framework crewai \
  --model claude-haiku-4-5-20251001 \
  --version-tag v1.1 \
  --message "Tightened prompt — reduce hallucination rate"

# View version history
agentgrid versions --agent email-triage-agent

# Diff two versions
agentgrid diff --agent email-triage-agent --from v1.0 --to v1.1

# Rollback
agentgrid rollback --agent email-triage-agent --to v1.0 --reason "regression in v1.1"

# Deploy to staging
agentgrid deploy --agent email-triage-agent --env staging

# Latency + cost metrics
agentgrid metrics --agent email-triage-agent --last 24h

# Auth
agentgrid login
agentgrid whoami

Python SDK

from agentgrid import AgentGrid

ag = AgentGrid(api_key="ag_sk_...")

# Register
agent = ag.register(
    name="email-triage-agent",
    framework="crewai",
    model="claude-haiku-4-5-20251001",
    version_tag="v1.1",
    deploy_message="Tightened prompt",
    environment="production",
)

# Fetch
agent = ag.get_agent("email-triage-agent")

# Version history
versions = ag.get_versions("email-triage-agent")

# Diff
diff = ag.get_diff("email-triage-agent", from_tag="v1.0", to_tag="v1.1")

# Rollback
ag.rollback("email-triage-agent", to_version="v1.0", reason="regression in v1.1")

GitHub Action

# .github/workflows/deploy.yml
- uses: nath-abhishek/agentgrid-sdk/.github/actions/agentgrid@main
  with:
    api-key: ${{ secrets.AGENTGRID_API_KEY }}
    agents-dir: ./agents
    environment: production
    deploy-message: ${{ github.event.head_commit.message }}

Each subdirectory of agents-dir that contains an agentgrid.yaml file will be registered on every push.


What This SDK Does NOT Do

The SDK has zero business logic. It is a thin HTTP client and CLI that calls the AgentGrid cloud API.

  • No policy evaluation — all governance runs server-side in agentgrid-cloud
  • No audit storage — events are emitted async to the cloud; no local DB
  • No agent runtime — the SDK never invokes your agent code
  • No framework lock-in — works with any Python agent (CrewAI, LangGraph, AutoGen, custom)
  • No cloud lock-in — self-host the API and point AGENTGRID_API_URL at it

If you're looking for something that runs inside your agent process and makes decisions, that's not this SDK.


Framework-agnostic

# CrewAI
ag.register(name="my-crew", framework="crewai", model="claude-sonnet-4-6")

# LangGraph
ag.register(name="my-graph", framework="langgraph", model="gpt-4o")

# Custom
ag.register(name="my-agent", framework="custom", model="llama-3.3")

Environment variables

Variable Description
AGENTGRID_API_KEY API key (overrides agentgrid login credentials)
AGENTGRID_API_URL Override API base URL (default: https://api.agentgrid.dev/v1)

Links

Release files for agentgrid-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentgrid-sdk 0.1.0
File Size Uploaded
agentgrid_sdk-0.1.0.tar.gz 29.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentgrid-sdk 0.1.0
File Interpreter ABI Platform
agentgrid_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 kB

Release files / agentgrid_sdk-0.1.0.tar.gz

Download URL agentgrid_sdk-0.1.0.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eb2351a4c12a265ee201241fefb0707d6380ea0d2c265eac07924ad2e658c877
BLAKE2b-256 checksum
How to use checksums
edb6fb8c86a028e90710a763706207172fce90a24dff6446e17364b4a65f3f7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 3, 2026.

Transparency log

Release files / agentgrid_sdk-0.1.0-py3-none-any.whl

Download URL agentgrid_sdk-0.1.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca75d62dc1b2e89ff77877bdf298ee821b7a752569c3205015486902334e3fe
BLAKE2b-256 checksum
How to use checksums
51f8b3fab3ed3d49be7767a061b26228da2fe0ff0349f407fbe151d9d35fc58d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page