agentz

module
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0

README

AgentZ

Zero Trust Agentic AI Platform

Build, run, and govern AI agents. Secure by design.

Every agent runs inside a default-deny sandbox and never receives a credential.
Every agent action is traceable.



AgentZ is a multi-tenant platform for running AI agents. It provides strong isolation guarantees, zero credential exposure to agents, default-deny network posture and control over the software packages your agents have access to.

Website: the AgentZ landing page. DeepWiki: chat with the repo and contribute fast.

Building Blocks

  1. Inference Providers: We support a range of providers (derived from OpenCode), including Amazon Bedrock, GCP Vertex, Azure AI Foundry, OpenAI Codex subscription. We also support configuring custom OpenAI/Anthropic endpoints.

  2. Skills: There are two kinds of skills - mutable and immutable. Mutable skills are those that can be modified by the agents, and in fact, are often produced by the agents themselves. Immutable skills are user uploaded and supporting versioning and rollbacks.

  3. MCP tools: Similar to inference providers, we also provide a catalog for MCP servers. If there's a provider we do not support, you can add a custom server.

  4. Sandbox: A set of reusable configuration (models, skills, mcp tools, software packages and allowed hosts). Agents inherit all the properties of their sandbox. An agent's sandbox can be swapped / re-configured anytime, resulting in its properties to also change.

  5. Agents: An agent is a Kubernetes Pod that runs an OpenCode server with custom plugins and tools under the hood. AgentZ uses Cilium network policies to implement a default-deny posture. An agent pod cannot send traffic to any destination unless an explicit rule permits it.

    Agents are stateful, and must be treated as such. Their home directory is backed by a Kubernetes PVC i.e. it persists across restarts.

  6. Secrets: MCP is not without its problems. Often, using a CLI tool is simpler and more effective. CLI tools that connect to external services, such as Gmail and Google Calendar, require authentication tokens or API keys. This is where the secret injection proxy comes into play.

    When you create a secret in AgentZ, instead of injecting the actual credential, we inject a placeholder, such as agentz:resolve:env:API_KEY. When your agents call Gmail APIs, the injection proxy replaces the placeholder with the actual credential. Your agents never get direct access to the credential.

    Furthermore, when creating a secret, you must explicitly provide a set of hosts for which the secret is valid. This helps prevent secret exfiltration.

Workflows

  • You can ask your agents to develop workflows for repeated tasks
  • Workflows can run on a schedule or can be invoked through a webhook. Check #40.
  • Workflow supports typed fields and arbitrary JSON (check #48) as inputs.

OpenCode Interoperability

There are dozens of AI agents out there. We did not want to reinvent our own. We believe meta-harness is the right way to go.

The Gateway's OpenCode API is interoperable with the OpenCode TUI client. You can connect to the agent using:

opencode attach https://agentzharness.ai/api/opencode/{AGENT_NAME}/

Open-Source Projects

This project wouldn't have been possible without the many excellent open-source libraries and projects it builds on.

Directories

Path Synopsis
cmd
agentz command
agentz-client command
hack
inference command
openapi command
internal
agentquota
Package agentquota defines Organisation-wide Agent quota accounting.
Package agentquota defines Organisation-wide Agent quota accounting.
authorization
Package authorization resolves product permissions from stable Role identities.
Package authorization resolves product permissions from stable Role identities.
controller/gatewayrbac
Package gatewayrbac grants the gateway access inside one managed namespace.
Package gatewayrbac grants the gateway access inside one managed namespace.
controller/guardrail
Package guardrail reconciles reusable detector connections and policy validation status.
Package guardrail reconciles reusable detector connections and policy validation status.
controller/inferencepool
Package inferencepool reconciles Pool backends and derived status.
Package inferencepool reconciles Pool backends and derived status.
controller/inferenceprovider
Package inferenceprovider reconciles provider credentials and AgentGateway runtime resources.
Package inferenceprovider reconciles provider credentials and AgentGateway runtime resources.
controller/sinjectorca
Package sinjectorca reconciles the namespace-local sinjector certificate.
Package sinjectorca reconciles the namespace-local sinjector certificate.
controller/workspace
Package workspace provisions the Kubernetes namespace owned by a Workspace.
Package workspace provisions the Kubernetes namespace owned by a Workspace.
gateway/filesystem
Package filesystem serves confined access to an agent workspace.
Package filesystem serves confined access to an agent workspace.
gateway/openapi
Package gatewayapi provides primitives to interact with the openapi HTTP API.
Package gatewayapi provides primitives to interact with the openapi HTTP API.
guardrails
Package guardrails resolves and compiles the complete policy for an authenticated inference context.
Package guardrails resolves and compiles the complete policy for an authenticated inference context.
inference
Package inference owns provider validation, credential shapes, and runtime rendering for the tenant inference plane.
Package inference owns provider validation, credential shapes, and runtime rendering for the tenant inference plane.
launcher
Package launcher connects coding agents to AgentZ through a local relay.
Package launcher connects coding agents to AgentZ through a local relay.
mcp
networkpolicy
Package networkpolicy builds Cilium isolation and controlled egress policies.
Package networkpolicy builds Cilium isolation and controlled egress policies.
scope
Package scope maps explicit resource scope to stable namespaces.
Package scope maps explicit resource scope to stable namespaces.
tool
Package tool validates uploaded tool definitions at API and admission boundaries.
Package tool validates uploaded tool definitions at API and admission boundaries.
webhook/v1alpha1/inferencepool
Package inferencepool validates tenant inference Pool resources.
Package inferencepool validates tenant inference Pool resources.
webhook/v1alpha1/inferenceprovider
Package inferenceprovider validates tenant inference provider resources.
Package inferenceprovider validates tenant inference provider resources.
pkg
apis/agentz/v1alpha1
Package v1alpha1 contains API Schema definitions for the agentz v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the agentz v1alpha1 API group.
controller/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
controller/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
controller/clientset/versioned/typed/agentz/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
controller/clientset/versioned/typed/agentz/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL