Overview
KaozKit is a Swift package that embeds the XS engine (Moddable) to run autonomous LLM agents written in JavaScript inside Swift applications. An agent is a small JS module that exports a run function, which can drive a language model, call tools, and read/write memory. The JS heap can be snapshotted to disk and restored in a fresh process, allowing resident agents to survive app restarts with their full state.
The package is organized into layered products: KaozJSCore, KaozJS, KaozHostC, KaozKit, KaozMLX, and a headless CLI called kaoz. It supports multiple LLM providers, including native Swift providers like Anthropic, Google, Ollama, OpenAI, and on-device Apple Intelligence, as well as JS-defined providers. Tools are registered in a ToolRegistry, with read tools safe by default and actuation tools opt-in and confined. Agents can schedule tasks, spawn sub-agents, and use persistent memory with embedding-based search.
KaozKit is designed for confinement and a small memory footprint, leveraging XS's embedded origins. The host.* surface is the only capability an agent has, and secrets never enter JS. The engine runs on a private thread with a clean C API, and await continuations settle correctly across the JS↔Swift boundary.
Pricing
Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.
Visit WebsitePrices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.
Use Cases
- Teams use KaozKit to run autonomous LLM agents written in JavaScript inside Swift apps.
- Teams use KaozKit to maintain agent state across app restarts via heap snapshots.
- Teams use KaozKit to run on-device LLM agents without API keys using Apple Intelligence.
- Teams use KaozKit to compose multiple LLM providers in a single agent.
- Teams use KaozKit to spawn sub-agents as isolated XS machines.
- Teams use KaozKit to give agents persistent memory with embedding-based search.
Features
Embed JavaScript agents in Swift apps
Run agents on the XS engine
Call tools from agent modules
Read and write agent memory
Snapshot JavaScript heaps to disk
Restore agent state after restarts
Reviews
No reviews yet. Be the first to share your experience!