AgentKit CLI
Standalone CLI and JavaScript SDK to build, evaluate, secure and manage AI applications from the terminal.
At a Glance
AgentKit CLI and JavaScript SDK are free to use, modify and distribute under the MIT license, including for commercial applications.
Engagement
Available On
Alternatives
Listed Dec 2026
About AgentKit CLI
AgentKit CLI is an open-source command-line tool and JavaScript SDK from Zivora Labs for building AI agents that connect models to tools under explicit policy. It scaffolds agent projects, evaluates their behaviour, audits dependencies and tracks project changes. Version 1.0.0 is published on npm as zivora-agentkit and installs a zai command.
What It Is
AgentKit is a developer toolkit for AI applications. A developer runs zai new to generate a project containing an agentkit.yaml configuration, an agent.mjs entry point and a record of managed files. A PostgreSQL-backed variant (zai new my-app --app) generates a loopback HTTP API, authenticated job submission, a database-backed queue, a worker, a migration command and a typed client. The SDK exposes functions such as createBroker, createChatProvider and runAgent for embedding agents in application code.
Connecting models and controlling tools
AgentKit works with OpenAI-compatible chat endpoints, including self-hosted inference servers, configured through environment variables for endpoint, model name and API key. Models propose actions, and AgentKit checks them against host policy defined in YAML or JSON, covering permitted tools, environments, tenants and approval requirements. Tools can connect to application code, HTTP services, selected OpenAPI operations or supported MCP servers. The SDK also provides encrypted secret envelopes with key rotation, OIDC ID token exchange for scoped identities and a PostgreSQL-backed single-use approval store.
Evaluation, security and change management
The eval command runs repeated scenarios, versioned datasets and holdout cases, guard checks policy cases and can run controlled adversarial scenarios, and trace inspects saved run metadata. On supported Linux hosts, zai dev --sandbox runs an offline agent in an isolated filesystem and network environment. The audit command reports source findings, license and registry integrity declarations and dependency advisories, with optional online OSV lookups and deep Git history analysis. The sbom command emits CycloneDX 1.6 or SPDX 2.3. Project changes go through plan, diff, apply, fix and rollback, and ship, check and status verify signed release evidence without performing deployment.
Setup path
It requires Node.js 22 or 24 and npm. Live inference needs a compatible model endpoint, while the offline demonstration needs no API key or GPU. Isolated offline execution requires Linux with user namespaces and util-linux. The project publishes benchmark results and states they are not a claim about every model or workload.
Collections
Collections with tools like AgentKit CLI
- Frameworks
Collection by @joemseifi · has Mercury Agent
Add AgentKit CLI to one of your collections.
Community Discussions
Be the first to start a conversation about AgentKit CLI
Share your experience with AgentKit CLI, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
AgentKit CLI and JavaScript SDK are free to use, modify and distribute under the MIT license, including for commercial applications.
- Standalone CLI and JavaScript SDK
- MIT License, copyright 2026 Zivora Labs
- Commercial use permitted while retaining copyright and license notices
- Works with OpenAI-compatible chat endpoints; model endpoint or provider costs are external
- Offline demonstration needs no API key or GPU
Capabilities
Key Features
- Project scaffolding with zai new and managed-file tracking
- Policy-controlled tool broker with tenants, environments and approvals
- Connects to OpenAI-compatible chat endpoints including self-hosted servers
- Tools via application code, HTTP services, OpenAPI operations or MCP servers
- Evaluation with datasets, holdout cases and run tracing
- Guard policy checks and red-team adversarial scenarios
- Sandboxed offline agent execution on supported Linux hosts
- Security audit with OSV online lookups and deep Git history mode
- SBOM generation in CycloneDX 1.6 and SPDX 2.3
- Plan, diff, apply, fix and rollback for project changes
- Signed run evidence and OpenTelemetry log export
- PostgreSQL-backed application template with queue, worker and typed client
- Encrypted secret envelopes and OIDC identity exchange
