The Operating System for Autonomous AI Agents
AI agents are everywhere in 2025. They browse the web, write code, make purchases, and interact with each other. But here's what nobody is talking about:
There's no infrastructure for agent accountability, safety, memory, or coordination.
When your agent makes a $50,000 purchase by mistake, who's liable? When two agents try to modify the same database record, who wins? When your agent drifts from its original goal, how do you detect it? When agents need to pay each other for services, how do they transact?
These are infrastructure problems. And they're unsolved.
AgentKern is the missing kernel.
Just as Unix solved common problems for programs (memory, files, processes), AgentKern solves common problems for AI agents:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AgentKern β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ βββββββββ β
β β Identity β β Gate β β Synapse β β Arbiter β β Treasury β β Nexus β β
β β πͺͺ β β π‘οΈ β β π§ β β βοΈ β β π° β β π β β
β β Passport β β Security β β Memory β β Traffic β β Bank β βNetworkβ β
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ βββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Pillar | Role | What It Solves |
|---|---|---|
| πͺͺ Identity | Authentication & Trust | "Which agent did this? Can I trust them?" |
| π‘οΈ Gate | Policy & Safety | "Is this action allowed? Is it safe?" |
| π§ Synapse | Memory & State | "What was the original goal? Has the agent drifted?" |
| βοΈ Arbiter | Coordination & Control | "Two agents want the same resourceβwho wins?" |
| π° Treasury | Payments & Budgets | "How do agents pay each other? What's the spending limit?" |
| π Nexus | Protocols & Routing | "How do agents from different vendors talk?" |
| Problem | Solution |
|---|---|
| Agent identity trapped in one cloud | Memory Passport β portable agent state |
| No accountability for agent actions | Identity + Trust Scoring β verifiable reputation |
| 73% of LLM apps are vulnerable | Prompt Guard β multi-layer injection defense |
| Agents can't pay each other | Treasury β 2-phase commit atomic transfers |
| No human oversight for risky actions | Escalation System β trust thresholds + approvals |
| Different agent frameworks can't talk | Nexus β A2A, MCP, ANP, NLIP, AITP protocols |
| EU AI Act compliance (Aug 2025) | Compliance Export β Article 9-15 documentation |
| Runaway agent costs | Carbon Tracking + Budgets β ESG-compliant limits |
| Package | Language | Description | Tests |
|---|---|---|---|
| gate | Rust | Policy enforcement, prompt guard, verification, compliance | 127 |
| synapse | Rust | Memory state, CRDTs, embeddings, passport, drift detection | 67 |
| arbiter | Rust | Coordination, kill switch, escalation, EU AI Act, chaos testing | 86 |
| treasury | Rust | Agent payments, 2PC transfers, carbon tracking, budgets | β |
| nexus | Rust | Protocol gateway (A2A, MCP, ANP), routing, marketplace | 54 |
| App | Language | Description |
|---|---|---|
| agentkern-server | Rust | Unified OS Gateway (Identity, Gate, API) |
| dashboard | React | Live Operations Center (Real-time Monitoring) |
| gate-cli | Rust | Standalone Policy Management Tool |
| playground | TypeScript | Interactive development environment |
# Clone repository
git clone https://github.com/AgentKern/agentkern.git
cd agentkern
# Core System (Rust)
cargo test --workspace
# Node.js SDK
pnpm install
pnpm build
cd sdks/node && pnpm testMonitor your agent fleet in real-time.
cd apps/dashboard
npm install && npm run devManage security policies without starting the full server.
cargo run -p agentkern-gate --bin gate-cli -- init my-policyEvery agent action is cryptographically signed. Agents have verifiable reputations built on their transaction history.
import { TrustService } from '@agentkern/sdk';
const trust = new TrustService();
const score = await trust.getTrustScore('agent-123');
if (score.level === 'verified') {
// Agent has proven track record
}Multi-layer defense: policy checks in <1ms, semantic malice detection in <20ms.
use agentkern_gate::prompt_guard::PromptGuard;
let guard = PromptGuard::new();
let analysis = guard.analyze("Ignore previous instructions and...");
if analysis.action == PromptAction::Block {
return Err("Prompt injection detected");
}Track intent paths and detect when agents drift from their goals.
use agentkern_synapse::{MemoryPassport, PassportExporter};
let passport = MemoryPassport::new(agent_identity, "US");
let exporter = PassportExporter::new();
let data = exporter.export(&passport, &options)?; // GDPR Article 20 compliantAtomic business locks with priority-based scheduling. No race conditions.
use agentkern_arbiter::escalation::{EscalationTrigger, ApprovalWorkflow};
let trigger = EscalationTrigger::new(config);
if trigger.evaluate(trust_score)?.should_escalate() {
workflow.request_approval(request)?; // Human-in-the-loop
}Agents can pay each other with 2-phase commit safety.
use agentkern_treasury::{TransferEngine, TransferRequest};
let request = TransferRequest::new("agent-a", "agent-b", amount)
.with_reference("api-call-12345")
.with_idempotency_key("unique-key");
let result = engine.transfer(request).await?; // Atomic, safeUniversal protocol gateway supporting all major agent standards.
use agentkern_nexus::{Nexus, Protocol};
let nexus = Nexus::new();
nexus.register_adapter(A2AAdapter::new()).await; // Google A2A
nexus.register_adapter(MCPAdapter::new()).await; // Anthropic MCP
// Auto-detect and translate incoming messages
let msg = nexus.receive(incoming_bytes).await?;AgentKern Nexus supports all major agent communication standards:
| Protocol | Provider | Status | Description |
|---|---|---|---|
| A2A | β Stable | Agent-to-Agent collaboration | |
| MCP | Anthropic | β Stable | Model Context Protocol |
| NLIP | ECMA | β Stable | Natural Language Interface Protocol (ECMA-430, Dec 2025) |
| ANP | W3C | π‘ Beta | Agent Negotiation Protocol |
| AITP | NEAR | π‘ Beta | AI Transaction Protocol |
Enterprise modules are maintained in a separate private repository and overlaid locally into ee/.
Commercial features for production deployments include:
| Feature | Description |
|---|---|
| SAP Connector | RFC, BAPI, OData, Event Mesh |
| SWIFT Connector | ISO 20022, GPI, Sanctions screening |
| Mainframe Connector | CICS, IMS, IBM MQ |
| Cross-Cloud Migration | AWS, GCP, Azure adapters |
| Memory Encryption | KMS integration, envelope encryption |
| Slack/Teams/PagerDuty | Native escalation integrations |
| Carbon Grid API | Real-time intensity + offsets |
Overlay workflow:
./scripts/pull-ee.sh
./ee/scripts/init-workspace.sh
cargo build --workspaceSee docs/ENTERPRISE_SETUP.md for full setup details.
AgentKern is built for regulated industries:
- β EU AI Act β Article 9-15 technical documentation export
- β ISO 42001 β AI Management System audit ledger
- β GDPR β Article 20 data portability via Memory Passport
- β HIPAA β Healthcare data sovereignty controls
- β PCI-DSS β Payment card tokenization
- β Shariah β Islamic finance compliance (Takaful, Murabaha, Musharakah, Ijara)
# Run all tests (450+ total)
cargo test --workspace
# Test specific pillar
cargo test -p agentkern-gate
cargo test -p agentkern-nexus| Layer | Technology | Why |
|---|---|---|
| SDK | TypeScript | Developer experience, ecosystem fit |
| Core | Rust | Performance, memory safety, zero GC |
| State | CRDTs | Eventual consistency without coordination |
| Consensus | Raft | Strong consistency when needed |
| Neural | ONNX | Fast ML inference (<20ms) |
| Sandbox | WASM | Nano-isolation for untrusted code |
- packages/ β Apache 2.0 (Free, Open Source)
- apps/ β Apache 2.0
- Enterprise Features β Commercial License (See docs/ENTERPRISE_SETUP.md)
We welcome contributions! See CONTRIBUTING.md for:
- Code standards and guidelines
- Development setup
- Testing requirements
- Pull request process
License: All contributions to this repository are welcome under Apache 2.0. Enterprise features are maintained in a separate repository. See docs/ENTERPRISE_SETUP.md.
Built for the Agentic Economy. π€
AgentKern β The Operating System for Autonomous AI Agents