OrgKernel Agent Trust Layer
Enforce cryptographic identity, least-privilege execution, and verifiable audit trails at the agent tool boundary.
- Source repo
- MetapriseAI/OrgKernel
- Stars
- ★ 2.7k
- Last updated
- 4mo ago
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 53/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- A financial, healthcare, insurance, or legal platform team needs replayable, independently verifiable evidence for every agent tool action.
- Not a fit if
- Teams that want drop-in governance without editing every tool call
- Teams that want a hosted service instead of running their own database and Org CA
- Teams that need SSO/SAML or SCIM federation today
- Maintenance
- Commits in the last 6 monthslast commit 2026-07-06
- Source review
- 53/100 · Major gaps
What does this agent do, and when should you use it?
OrgKernel is a self-hosted Apache 2.0 Python trust layer that authenticates agents, constrains their permissions, and records verifiable execution histories. Its three available core modules are AgentIdentity, ExecutionToken, and AuditChain, providing Org CA-signed Ed25519 identities, instance- and mission-scoped execution tokens, and SHA-256 hash-chained audit records. It exposes both asynchronous Python service classes and 27 REST endpoints mountable in FastAPI, with persistence through SQLAlchemy Async to PostgreSQL, MySQL/MariaDB, or SQLite. Its execution model places check_scope() before a tool call and append() after an allowed or blocked attempt, while verify_integrity() detects deleted, altered, or reordered records. OrgKernel does not build or orchestrate agents; it wraps the tool layer of LangGraph, CrewAI, AutoGen, or a custom agent loop. Adopters should distinguish available primitives from roadmap items: mission lifecycle, tool gateway, policy engine, authority graph, data classification, SSO/SAML, and SCIM are not presented as currently available.
A typical flow begins with AgentIdentityService.submit_csr() or issue_from_csr(), using an agent name, organization, requested organizational unit, public key, and purpose. The service issues an Org CA-signed certificate, returns the private key PEM once during issuance, and persists an identity record without the private key. A verifier can call request_challenge() to create a one-time nonce with a five-minute TTL and verify_challenge() to check the Ed25519 response, certificate status, and expiry. ExecutionTokenService.mint() creates an Org CA-signed, time-bounded token for an agent_id and mission_id; the token can carry a tool allowlist, exact-match immutable_params, and numeric bounded_params. ExecutionTokenService.check_scope() evaluates the token, caller identity, requested tool, and parameter constraints and returns an allowed or blocked result. AuditChainService.initialize() creates a chain with a genesis IDENTITY entry, append() records execution or compliance events, close() closes it, and verify_integrity() recomputes hashes while checking sequence and prev_hash continuity. Applications can call these services directly or mount orgkernel.pyapi.router under /orgkernel for the documented identity, token, and audit endpoints.
- A financial, healthcare, insurance, or legal platform team needs replayable, independently verifiable evidence for every agent tool action.
- A platform engineering team already using LangGraph, CrewAI, AutoGen, or a custom loop wants one identity and authorization layer at the tool boundary.
- A security team needs to issue a short-lived token for one mission that permits only named tools and caps numeric parameters such as transaction amounts.
- A compliance investigator needs to retrieve activity by agent or mission and detect deleted, modified, or reordered audit entries.
- An enterprise wants to operate the trust layer on its own infrastructure using PostgreSQL, MySQL/MariaDB, or SQLite without a hosted service key or phone-home dependency.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -e ".[postgres]"
- Runtime
- Python 3.10+
How do you install or deploy this agent?
Python 3.10+, Git, and a selected database driver are required. Run:
git clone https://github.com/MetapriseAI/OrgKernel.git
cd OrgKernel
pip install -e ".[postgres]"Replace postgres with mysql or sqlite as needed. PostgreSQL is described as recommended, while SQLite is intended for local development. The installation requires network access to clone the repository and obtain Python dependencies. Before using the services, assign the appropriate SQLAlchemy async database URL to async_engine.url and run await init_db(). No OrgKernel API key is required because the service runs on your infrastructure.
How do you use this agent?
For direct library use, import AgentIdentityService, ExecutionTokenService, and AuditChainService from orgkernel.services and construct them with an AsyncSession where required. Create an AgentIdentityCSR and call identity_svc.issue_from_csr(csr). Then create an ExecutionTokenCreate with agent_id, mission_id, execution_scope, any parameter constraints, and a future expires_at, and pass it to token_svc.mint(...). Before every tool invocation, call token_svc.check_scope(...) with a ScopeCheckRequest. If the check fails, prevent execution and append an EXECUTION_tool_blocked event; if it passes, execute the tool and append an EXECUTION_tool_call event. Initialize the mission audit chain with audit_svc.initialize(...) and validate it with audit_svc.verify_integrity(...). For HTTP use, create a FastAPI app, configure async_engine.url and init_db() during startup, and call app.include_router(router, prefix="/orgkernel", get_db=get_db) to mount the documented 27 endpoints.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- The DualToken model requires both an organizational identity credential and an instance-scoped execution token, with token.agent_id checked against the caller.
- Execution tokens support tool allowlists, exact immutable parameters, numeric bounds, signatures, and expiration rather than relying on permanent shared API keys.
- Audit entries use content hashes, prev_hash links, and continuous sequence IDs to detect deletion, modification, and reordering through an integrity API.
- The same core is available as asynchronous Python services and 27 FastAPI REST endpoints, with three documented relational database options.
- The tool-boundary pattern is orchestration-framework agnostic and is explicitly described for LangGraph, CrewAI, AutoGen, and custom loops.
- Adopters must modify every relevant tool execution path to perform the pre-call scope check and synchronous audit write; integration is not automatic.
- The issuance example returns an agent private key only once, so operators must design secure key receipt, storage, and lifecycle procedures.
- Production use requires operating the Python service, an Org CA, and a database; no container deployment, hosted offering, or complete production topology is documented.
- Mission lifecycle, tool gateway, policy engine, authority graph, and data classifier remain roadmap capabilities and should not be treated as implemented.
- SSO/SAML 2.0 and SCIM 2.0 are roadmap items. Although the repository description mentions enterprise federation, the README's capability status does not show them as currently available.
How does this agent compare with similar options?
Compared with LangGraph, CrewAI, or AutoGen alone, OrgKernel does not replace orchestration; it adds verifiable identity, scoped authority, and hash-chained auditing to their tool execution paths. Compared with per-agent API keys, ExecutionToken provides mission scope, parameter constraints, a cryptographic signature, and expiration. Compared with ordinary application logging, AuditChain links records with SHA-256 hashes and exposes integrity verification, although the adopter must still route every execution path through the checks and synchronous audit writes.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| OrgKernel Agent Trust Layer This agent | 53 · Major gaps | Library / SDKFree | ★ 2.7k | 4mo ago | Python | — |
| Metorial: Identity & Access Layer for AI Agents | 40 · Major gaps | Library / SDKFreemium | ★ 3.4k | 1d ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
| Microsoft Agent Governance Toolkit | 70 · Some gaps | Library / SDKFree | ★ 6.6k | 2d ago | Python | Claude Code · OpenAI API |
| Tenuo Agent Authorization | 81 · Good | Library / SDKFreemium | ★ 110 | 1d ago | Rust | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The material describes execution tokens limited by tool, parameters, and expiry, with checks before tool calls. That supports least privilege, but implementation is not shown, so the score is reduced. No user confirmation mechanism is described; issuance and revocation are authorization flows rather than user confirmation. The README says private keys are returned once and not persisted in the database, and describes database persistence and audit data, but does not explain private-key transport, audit-data confidentiality, or encryption, so sensitive-data handling is partial. There is no dependency lock, vulnerability scanning, or update policy; dependency security is supported only at a basic level. Tool-call boundaries and the self-hosted, no-phone-home claim help explain external effects. Identity and token revocation are mentioned, but recovery from audit-chain errors or operator mistakes is not. Package metadata names Metaprise as maintainer and provides contact details, but the publisher is unverified, limiting evidence of attribution and update responsibility.
The README describes identity, token, and audit modules and endpoints, but current availability claims conflict with roadmap language: SSO/SCIM are called upcoming earlier, while the security policy lists them as in scope; this weakens self-consistency. pyproject lists core and optional database dependencies, and installation notes identify the corresponding extras, but no lockfile or availability guarantee is shown. Failure behavior is only lightly illustrated by a PermissionError example; error categories and recovery guidance are absent.
The material targets developers and system administrators, names LangGraph, CrewAI, AutoGen, and custom agent loops, and gives library, FastAPI, and REST usage paths. It defines the tool boundary and the responsibilities of identity, tokens, and audit, and specifies Python 3.10+ and database driver options. It supports several frameworks and self-hosted environments, though the scope of enterprise SSO/SCIM remains unclear.
The README has organized sections, tables, installation notes, an API overview, and code examples, with stable names for the core concepts. No FAQ is shown, but the four-question framing and framework comparison address some common questions. Security boundaries and unfinished capabilities are described, though limitations and failure cases are incomplete. The LICENSE file is Apache 2.0 and package metadata agrees, justifying full marks. A 1.0.0 version and changelog link are provided, but the changelog contents are not in the packet, limiting evidence of version history. pyproject names maintainers and an email, and SECURITY.md gives a reporting channel and response timeline, supporting maintenance responsibility; publisher identity remains unverified.
The service-layer, FastAPI, REST, and generic tool-wrapper examples make the output and integration paths reasonably usable. Identity, scoped execution, and hash-chained auditing have a clear potential value for agent governance. Deployment requires a database, key management, and service integration; the material provides no operating-cost, benefit, or performance evidence, so cost-benefit is only partly supported.
The README gives concrete descriptions of capabilities, endpoints, fields, and security mechanisms; pyproject and LICENSE make package version, dependencies, and license partly checkable. However, implementation source and tests are not in the sample, so security claims are mainly README assertions and the security policy does not independently corroborate implementation. The material mixes mechanism descriptions with outcome claims, such as bypass-proof enforcement and compliance-grade evidence, without implementation or validation support in this packet, so fact and inference are not consistently separated.
- This assessment uses only the supplied static sample; implementation source was not reviewed and tests were not run, so cryptographic, security, and audit-integrity claims are not verified here.
- The README describes SSO/SCIM as roadmap capabilities while SECURITY.md includes them in reporting scope; confirm which features and configuration requirements exist in this revision before deployment.
- Returning a private key only once does not establish how it is transported or protected by clients; operators should review key protection, audit-data confidentiality, and database access controls.
FAQ
Does OrgKernel require Metaprise or a hosted API key?
Are denied tool calls audited?
Does the audit chain prove the database was never compromised?
Are enterprise SSO and SCIM available now?
Can it be added to an existing agent framework?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.