{"slug": "i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline", "title": "I built a signed handoff layer for AI agents (and you can verify it offline)", "summary": "A developer built AgentGrid, an open-source service that provides signed agent identity, scoped handoffs, and immutable receipts for AI agents, designed to sit underneath frameworks like LangGraph, CrewAI, and the OpenAI Agents SDK via an HTTP API. Private keys stay on the agent's machine, child handoffs can only narrow inherited permissions, and receipts can be verified offline. A Python SDK (theoc-agentgrid-protocol) and CLI let developers register, verify by email code, and run a signed handoff demo without an API key.", "body_md": "When one AI agent delegates work to another, three questions show up fast:\n\nWhich agent is this, really?\n\nWhat was it allowed to do?\n\nWhere is the receipt after the handoff?\n\nMost multi-agent examples I saw answered those questions with a dictionary and a log line. That is fine for a notebook, but it gets brittle when agents cross process boundaries, runs resume days later, or someone outside your system needs to verify what happened.\n\nSo I built AgentGrid: a small, standalone service for signed agent identity, scoped handoffs, and immutable receipts. It is not a chatbot and not a framework. It sits underneath LangGraph, CrewAI, the OpenAI Agents SDK, or plain Python — anything that can make an HTTP request.\n\nThis post is a technical walkthrough of the design and the shortest runnable demo. I am not claiming adoption numbers; this is an open-source experiment with a public API.\n\nThe three pieces\n\nPrivate keys never leave the agent's machine.\n\nScope is checked too. A child handoff can only narrow what it inherited: its allowed list must be a subset, and max_actions cannot increase.\n\nTry the demo without writing code\n\nOpen [https://agentgrid-pied.vercel.app/quickstart](https://agentgrid-pied.vercel.app/quickstart), enter a real email address, and confirm the 6-digit code from your inbox. The page creates two demo agents, signs a scoped handoff, and shows you the immutable receipt. No install, CLI, API key, wallet, or card is needed.\n\nThose demo keys are generated on the server and discarded immediately. For real deployments, use the CLI or SDK so private keys never leave your machine.\n\nPrefer the command line? Two commands\n\nThe Python SDK is theoc-agentgrid-protocol; import it as agentgrid_protocol.\n\npip install theoc-agentgrid-protocol\n\nagrid register --email [you@example.com](mailto:you@example.com)\n\nagrid verify 123456\n\nagrid register creates an unverified client and sends a 6-digit code to your inbox. No API key exists yet. agrid verify confirms the code, stores the key locally under ~/.agentgrid/credentials.json, and immediately runs a real signed handoff. You get a receipt without a fourth command.\n\nExpected output looks like this:\n\nAgentGrid quickstart -> [https://agentgrid-pied.vercel.app](https://agentgrid-pied.vercel.app)\n\nDone. Open the card at [https://agentgrid-pied.vercel.app/a/ag_](https://agentgrid-pied.vercel.app/a/ag_)...\n\nIf you want to skip the auto-demo, use agrid verify  `--no-quickstart, then run agrid quickstart later.`\n\n```\nworker = ag.create_agent(\"Worker\", capabilities=[\"read\"])\n    worker,\n    task=\"summarize the quarterly report\",\n    scope={\"allowed\": [\"read\"], \"max_actions\": 2},\n)\nprint(len(worker.receipts()))\n    sub,\n    task=\"fetch one page\",\n    scope={\"allowed\": [\"read\"], \"max_actions\": 1},\n    parent_handoff_id=receipt[\"handoff_id\"],\n)\nThe CLI does this for you:\nNot a wallet, escrow, or in-app checkout. Payments, where used, happen outside AgentGrid.\nNot an agent runtime. It does not plan, reason, or execute your tasks.\nNot a secret store. Do not put raw task text, credentials, or personal data in a handoff; only a task hash is stored.\nNot an adoption story. I built it, deployed it, and exercised the full loop. That is what I can honestly show today.\nWhy I built it this way\nI wanted the smallest verifiable unit of delegation: a signed identity, a scoped permission boundary, and a receipt anyone can inspect later. The HTTP API is the contract; the Python SDK is just a convenience. That makes the design usable from any language, while the SDK keeps the common Python path short.\nLive service: \nGuide: \nAPI reference: \nOpenAPI: \nGitHub: \nSDK: \n```\nfrom agentgrid_protocol import AgentGrid\n\nag = AgentGrid()  # reads AGENTGRID_API_KEY or ~/.agentgrid/credentials.json\n\nplanner = ag.create_agent(\"Planner\", capabilities=[\"plan\"])\n\nprint(ag.verify_card(planner.agent_id))\n\n# \n  \n  \n  {'agent_id': 'ag_...', 'online': True, 'status': 'ACTIVE', 'offline': True}\n\nreceipt = planner.handoff_to(\n\nprint(receipt[\"handoff_id\"])\n\nA nested handoff can only narrow the parent scope:\n\nsub = ag.create_agent(\"Sub-worker\", capabilities=[\"read\"])\n\nchild = worker.handoff_to(\n\nprint(child[\"handoff_id\"])\n\nIf worker.handoff_to(...) attempts to widen max_actions or add a capability that is not in the parent scope, the service rejects it. That is the invariant I wanted: delegation should lose permissions, never gain them.\n\nVerifying a card offline\n\nagrid card ag_...\n\nUnder the hood it fetches the public card, fetches the platform keys, canonicalizes the unsigned fields, and checks the Ed25519 signature locally. During key rotation the previous public key stays published, so older cards remain verifiable.\n\nWhat this is not\n\nThe free tier needs no payment method. The docs and API reference are public, and the repo includes a LangGraph-style handoff_node with notes for CrewAI and OpenAI Agents SDK equivalents.\n\nLinks[https://agentgrid-pied.vercel.app](https://agentgrid-pied.vercel.app)[https://agentgrid-pied.vercel.app/guide](https://agentgrid-pied.vercel.app/guide)[https://agentgrid-pied.vercel.app/docs](https://agentgrid-pied.vercel.app/docs)[https://agentgrid-pied.vercel.app/openapi.json](https://agentgrid-pied.vercel.app/openapi.json)[https://github.com/TheoCComputationsmain/Agentgrid](https://github.com/TheoCComputationsmain/Agentgrid)[https://pypi.org/project/theoc-agentgrid-protocol/](https://pypi.org/project/theoc-agentgrid-protocol/)\n\nIf you try the two-command demo, tell me which step felt confusing. Concrete onboarding friction is more useful to me than applause.\n\n— TheoC Computations, AgentGrid", "url": "https://wpnews.pro/news/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline", "canonical_source": "https://dev.to/theoc_computations_21b3c7/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline-5alh", "published_at": "2026-11-24 06:08:52+00:00", "updated_at": "2026-11-24 06:12:35.211703+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "ai-safety"], "entities": ["AgentGrid", "LangGraph", "CrewAI", "OpenAI Agents SDK", "theoc-agentgrid-protocol"], "also_reported_by": [], "takeaway": "AgentGrid enforces that a child handoff's allowed capabilities must be a subset of its parent's and max_actions cannot increase, so delegation can only narrow permissions, with each handoff producing an immutable receipt verifiable offline.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline", "markdown": "https://wpnews.pro/news/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline.md", "text": "https://wpnews.pro/news/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline.txt", "jsonld": "https://wpnews.pro/news/i-built-a-signed-handoff-layer-for-ai-agents-and-you-can-verify-it-offline.jsonld"}}