Skip to main content

git for AI agents — registry, version control, and governance for autonomous agent fleets

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentgrid_sdk-0.1.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentgrid_sdk-0.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file agentgrid_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: agentgrid_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentgrid_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb2351a4c12a265ee201241fefb0707d6380ea0d2c265eac07924ad2e658c877
MD5 1a530e4de3c31fef01f2100ab7330f22
BLAKE2b-256 edb6fb8c86a028e90710a763706207172fce90a24dff6446e17364b4a65f3f7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentgrid_sdk-0.1.0.tar.gz:

Publisher: release.yml on nath-abhishek/agentgrid-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentgrid_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentgrid_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentgrid_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca75d62dc1b2e89ff77877bdf298ee821b7a752569c3205015486902334e3fe
MD5 ca5e186e110c94887f8f96a7267a0880
BLAKE2b-256 51f8b3fab3ed3d49be7767a061b26228da2fe0ff0349f407fbe151d9d35fc58d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentgrid_sdk-0.1.0-py3-none-any.whl:

Publisher: release.yml on nath-abhishek/agentgrid-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page