# AgentKit CLI

> Standalone CLI and JavaScript SDK to build, evaluate, secure and manage AI applications from the terminal.

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.

## 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

## Integrations
OpenAI-compatible chat endpoints, MCP servers, OpenAPI, PostgreSQL, OpenTelemetry, OSV, llama.cpp, GitHub Actions

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, DEVELOPER_SDK, CLI

## Pricing
Open Source

## Version
1.0.0

## Links
- Website: https://www.npmjs.com/package/zivora-agentkit
- Documentation: https://github.com/Zivora-Logic-Ventures/agentkit-cli/tree/main/docs
- Repository: https://github.com/Zivora-Logic-Ventures/agentkit-cli
- EveryDev.ai: https://www.everydev.ai/tools/agentkit-cli
