---
title: "Kernex, a Rust Runtime for AI Agents, Jose Hurtado"
description: "A sandboxed AI agent runtime and a 12-provider CLI, built solo. 10 crates on crates.io with 12,600+ downloads as of October 2026."
canonical: https://jhurtado.com/work/kernex-dev/
updated: 2026-11-27
---

Design and Build · Kernex Dev · AI / Developer Tooling

# Kernex, a Rust Runtime for AI Agents

**Role**: Designer and developer

**Team**: Solo, architecture to production code

**Outcome**: Published from the first commit, solo: the first crates.io release landed the same day as the initial commit in March 2026.

A sandboxed AI agent runtime and a 12-provider CLI, built solo. 10 crates on crates.io with 12,600+ downloads as of October 2026, and a CLI that starts in about 5 ms.

-   AI
-   Developer Tools
-   Rust
-   Full-Stack Development
-   Systems Design
-   Product Design

## Context

Python agent frameworks prototype well and fail security reviews. Teams that need AI agents touching production data cannot answer the basic compliance question: what stops this thing from reading paths it should never see? That gap defined the product.

Kernex is a Rust runtime for AI agents: OS-enforced sandboxing (Seatbelt on macOS, Landlock on Linux), persistent memory, multi-provider AI, and composable pipelines. The program spans three surfaces: the [runtime](https://github.com/kernex-dev/kernex), the [`kx` CLI](https://github.com/kernex-dev/kernex-agent), 10 crates between them on [crates.io](https://crates.io/search?q=kernex), and a bilingual EN/ES developer site at [kernex.dev](https://kernex.dev). Built solo, architecture through production code. The first crates.io release landed the same day as the first commit in March 2026; by October 2026 the crates had 149 published versions, and development continues.

_One runtime, one CLI, one site. Three surfaces, one author._

The problem.

Marketing a developer tool to developers who distrust marketing requires earning it first.

## Key Decisions

### 1. Security claims verified before published

Every framework says “secure by default.” The decision here was that no security claim ships until it is asserted against a real system. CI proves three things on macOS and Linux: a sandboxed process cannot read `~/.ssh`, provider keys never reach subprocesses, and an undeclared command is structurally blocked. Sandboxing is fail-closed: a host that cannot enforce isolation refuses to run tools rather than running them unprotected. A dedicated hardening release (0.9.0) extended the posture with subprocess environment isolation and network egress denied by default. `kx` releases ship with SHA-256 checksums and Sigstore build-provenance attestations.

The trade-off is velocity. Verification gates slow every release. The alternative, claims that a security team can falsify in an afternoon, costs the only currency a developer tool has.

### 2. Provider-agnostic by architecture, not by adapter sprawl

Betting the runtime on one AI provider was the fast path, and a dependency risk the whole category keeps re-learning. Kernex treats providers as a trait: 12 of them ship behind one interface, from Anthropic and OpenAI to local Ollama, with Amazon Bedrock behind an optional feature.

The cost discipline came from a hard budget: optional adapters sit behind Cargo feature flags so the default binary stays under 15 MiB. Breadth without bloat. The measured result: the `kx` CLI ships as a 12 MB release binary on Apple Silicon that starts in about 5 milliseconds. That is the difference between a tool developers script with and a tool they wait on.

### 3. Marketing to developers who distrust marketing

Developers read documentation before homepages and benchmark before they believe. The site leads with evidence surfaces: performance data with a published methodology, a three-layer security model explained honestly, and copy stripped of superlatives. Three developer profiles (infrastructure engineers, security-conscious platform teams, solo Rust builders) get explicit paths instead of one funnel.

Spanish ships as a first-class language across the site’s core pages, not a translation pass. The LATAM developer market is underserved by English-only tooling, and copy quality in Spanish is readable as a signal that the product was designed for that audience.

kx CLI

 [![The kx CLI page on kernex.dev](https://jhurtado.com/_astro/04a.B4ZZO4a9_1RIAAJ.jpg)](https://jhurtado.com/_astro/04a.B4ZZO4a9.jpg)

Docs

 [![The Kernex documentation index](https://jhurtado.com/_astro/04b.BpB40yBa_Z2qj30n.jpg)](https://jhurtado.com/_astro/04b.BpB40yBa.jpg)

_CLI and web: one mental model, two rendering surfaces._

## Outcome

Published from the first commit, solo: the first crates.io release landed the same day as the initial commit in March 2026. By October 2026 the crates had 149 published versions. Measured on a local release build: the `kx` CLI answers `--version` in about 5 milliseconds (median 5.68 ms) from a 12 MB binary.

-   Source: [kernex-dev/kernex](https://github.com/kernex-dev/kernex) (runtime) and [kernex-dev/kernex-agent](https://github.com/kernex-dev/kernex-agent) (`kx`), 10 crates live on [crates.io](https://crates.io/search?q=kernex), sandbox-first, fail-closed
-   Adoption: 12,600+ downloads across the 10 crates on crates.io as of October 2026
-   `kx` CLI: 12 LLM providers behind one interface (plus Amazon Bedrock behind an optional feature), 21 built-in skills, releases with checksums and Sigstore provenance attestations
-   Benchmarks: about 17 ms to construct a runtime ([criterion baseline in the repo](https://github.com/kernex-dev/kernex/blob/main/docs/bench-baseline-2026-05-10-cold-start.txt)). The kernex.dev write-up measures about 2,200 ms for LangChain, and 24 MB resident memory for ten concurrent agents
-   800+ tests in the runtime and 500+ in `kx` as of November 2026, with the sandbox posture asserted in CI against real systems on macOS and Linux
-   Bilingual developer site in English and Spanish, with three reader paths
-   In production use on several of the author’s internal workflows

_10 crates, one CLI, one site, all shipped._

## Reflection

With hindsight, every release gate would have required a real-system assertion from day one, not only from the security hardening onward.

### [UX/UI Principles, 195 Evidence-Based Design Principles](https://jhurtado.com/work/uxuiprinciples.md)

Next → · Full UX Cycle

Contact

## Write about this case.

The email opens in your mail app with this case already named. Nothing is sent or stored by this site.

[Email about this case](mailto:hello@hurtadojose.com?subject=About%20the%20Kernex%20case%20study)

hello@hurtadojose.com
