Home / Developers
Developers
Wire it into your stack
Groundnetic is the trust and control layer for autonomous AI agents. Submit evidence, read beliefs, ask WHY(), gate actions and verify outcomes over REST, gRPC, MCP or A2A, from Python, TypeScript or the command line. Run all of it on your laptop first.
gnctl why
Ask why, get every input
Two trusted sources disagree about checkout's error rate. Groundnetic doesn't pick one: the belief is UNRESOLVED, the leading candidate is reported, and both sides are listed with their weights.
Drop --text for the full JSON: each item's role, weight factors, provenance, signature check, policy versions, thresholds and an input digest.
$ gnctl why "gn://sre/service/checkout/error_rate?env=prod" --text gn://sre/service/checkout/error_rate?env=prod at 2026-10-06T09:20:00Z (knowledge as of now): UNRESOLVED, value none (leading candidate 0.004), confidence 0.09 (support 0.9, opposition 0.9). Supports: ev_5Hn1… (PRIMARY, source src_prometheus) value 0.004, weight 0.9 = A 0.9 x C 1 x F 1 x K 1. Opposes: ev_8Tc4… (PRIMARY, source src_datadog) value 0.031, weight 0.9. Resolved with gn.resolve.v1, policy 4, authority 7; min_confidence 0.6, materiality 0.2; input digest sha256:42ab… This text is derived from the JSON explanation by a fixed template; no language model was used.
The gate call
One call before every important action
The agent says what it wants to do and what it relies on. The gate runs its checks (agent, lease, mandate, budget, human authority, grounding, policy, approvals), records the decision and answers. On ALLOW the response carries a signed permit; here the action is irreversible, so it waits for one person; a critical action would wait for two.
POST /v1/gate/decisions
{
"action": {
"type": "db.drop_table",
"params": {"table": "gn://sre/db/orders/tmp"},
"description": "Drop the temporary orders table"
},
"relies_on": [
{"claim": "gn://sre/db/orders/tmp/in_use?env=prod",
"expect": {"op": "eq", "value": false}}
],
"alternatives": [
{"type": "defer", "reason": "wait for the nightly job"}
]
}
200 OK { "decision_id": "dr_01JA…", "outcome": "ESCALATED", "reasons": ["approval_required"], "consequence": "high", "param_hash": "sha256:7c0e…", "permit": null, "approval": { "needed": {"approvers": 1}, "verdict": "PENDING", "deadline": "2026-10-06T09:52:00Z" }, "review_id": "rv_01JA…", "checks": [ {"n": 1, "name": "agent", "pass": true}, … {"n": 8, "name": "approvals", "pass": false, "reason": "approval_required"} ] }
GET /v1/decisions/{id}?wait=; on approval, the permit appears.Interfaces
Use whatever your agents already speak
MCP for agents
Point any MCP client at /mcp with the agent's own key, or run gnctl mcp as a stdio server (11 tools, Proven in test). Tools include groundnetic_get_belief, groundnetic_why, groundnetic_submit_evidence and groundnetic_create_contract. Evidence text reaches the agent only as untrusted text, and everything an agent writes is recorded as AI-derived.
A2A
JSON-RPC at /v1/a2a with an agent card at /.well-known/agent-card.json. Messages carry structured data, never free text.
REST and gRPC
The REST contract is served at /v1/openapi.yaml. gRPC covers high-volume ingestion and streams.
SDKs
TypeScript, Python, Go, .NET and Java, each typed from the API contract. Retries are safe (only reads and writes with an idempotency key), errors are typed, keys are never logged, and every SDK verifies permits offline in your own tools. See developer packages.
gnctl
Evidence, beliefs, history, WHY, contracts, decisions, agents, mandates, permits, reviews and administration from the terminal, with contexts for each environment.
Real time
Subscriptions, webhooks, server-sent events and streams for belief changes, contract results, anomalies and review items. Each webhook delivery is signed with a Gn-Signature HMAC for your receiver to verify.
Developer packages Coming
Install Groundnetic where your code already lives
Packages for the languages, frameworks and tools your agents run on, licensed for use in your own products. They are built and tested, and published with the general release; until then, workspace administrators download the Python and TypeScript SDKs from the console.
SDKs
npm i @groundnetic/sdk, pip install groundnetic, a Go module, NuGet Groundnetic.Sdk with ASP.NET Core middleware, and Maven com.groundnetic:groundnetic-sdk. Every one passes the same permit test vectors.
Agent frameworks
Guard each tool so it runs only when the gate allows it: LangGraph, OpenAI Agents SDK, CrewAI, AutoGen and Google ADK in Python; Vercel AI SDK, LangChain.js, OpenAI Agents JS and Mastra in TypeScript. If Groundnetic cannot be reached, the tool does not run.
LLM gateway
groundnetic-litellm: a LiteLLM proxy guardrail and SDK callback that sends every tool call a model returns through the gate before your application runs it, whatever the model provider.
gnctl
The command line, including the MCP server, the coding-agent hooks and gnctl scan, for macOS, Linux and Windows through Homebrew, Scoop and signed downloads.
Coding agents
A Claude Code plugin and a Cursor pack that ask Groundnetic before a coding agent pushes, deploys or deletes, and add the MCP server. A command is refused if Groundnetic cannot answer.
CI and deployments
A GitHub Action that checks the permit for exactly this repository, environment and commit, and a GitHub App that holds protected environments until it sees one.
Kubernetes
The enforcer image and a Helm chart for admission control: workloads in guarded namespaces need a permit, and changes are refused if the enforcer cannot decide.
Infrastructure as code
A Terraform provider for agents, mandates, policies, connector mappings and change requests (it never approves them), and Terraform, CloudFormation and Bicep modules to connect AWS, Azure and Google Cloud.
Connector test kit
A container and GitHub Action that run the conformance suite against your connector or driver, for a listing in the registry.
Governance coverage Proven in test
Measure what your agents did without a permit
GET /v1/governance/coverage returns, per agent and for the organization, the share of agents' actions observed in the systems they act on that a permit or brokered credential stood behind, with bypasses, standing credentials, enforced permit uses and brokered credentials. An agent nothing observes is reported as "not observed", never as covered. The same view is under Agent Guard › Coverage in the console.
# audit-webhook.yaml, passed to the API server with
# --audit-webhook-config-file
apiVersion: v1
kind: Config
clusters:
- name: groundnetic
cluster:
server: https://acme.groundnetic.cloud/v1/observed-actions/k8s-audit/prod-eu
users:
- name: groundnetic
user:
token: $GN_AUDIT_TOKEN
contexts:
- name: groundnetic
context: {cluster: groundnetic, user: groundnetic}
current-context: groundnetic
$ curl -H "Authorization: Bearer $GN_KEY" \ https://acme.groundnetic.cloud/v1/governance/coverage # GitHub audit logs, or past CloudTrail events: import them $ gnctl bypass import …
- An identity belongs to one agent, so every observed action is attributed to exactly one.
- Kubernetes is collected continuously, and so is AWS: CloudTrail events are forwarded by EventBridge from a template you run in your account (proven on a real AWS account). Azure Activity Log (through Event Hubs) and Google Cloud audit logs (through Pub/Sub) are supported, with real-account testing in progress. GitHub audit logs are imported with
gnctl bypass import.
Run it locally
The whole stack on a laptop
gnd dev starts PostgreSQL in Docker, runs every Groundnetic role in one process, loads sample SRE data and prints keys and a console URL. Move its clock forward to test a 15-minute contract in seconds.
Replayable scenarios check success, failure, conflict, late evidence, duplicates and AI versus primary telemetry on a controlled clock.
$ bin/gnd dev Admin key gn_local_… (you) Connector gn_local_… (a sample connector) Console http://127.0.0.1:8080/console/ $ gnctl evidence submit --claim "$D" \ --value '{"type":"categorical","value":"1.5.0"}' --wait $ gnctl beliefs get "$D" status SUPPORTED value 1.5.0 confidence 0.95 $ gnctl dev clock --advance 18m $ gnctl contracts status "$ID" --wait VERIFIED grade FULL
Edge runtime Proven in test
Next to the equipment, offline when needed
The same server runs on site with its own small database. Connectors keep collecting, beliefs keep resolving and the gate keeps checking physical actions, including the local stop, when the link is down. Configuration comes down signed by the cell; evidence goes up and is resolved the same way there. If the edge loses its cell beyond a set tolerance, it suspends its agents and signals devices to their safe state; reconnecting does not resume them.
Open specification
Build compatible implementations
A public specification and a conformance test suite define how evidence, beliefs, contracts and permits behave. Run the suite against your own implementation or connector, and list connectors in the registry with a link to a passing run. See connector certification.
Documentation
Quick start, concepts, Agent Guard walkthrough, connectors, the API reference and the specification.