Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

One core

A Python agent framework needs a Python runtime wherever the agent runs, and a TypeScript one needs Node or a browser. That is fine on a server and hard on a phone. Troupekit is one Rust library: your agent compiles into your program, and its state lives in memory or in one SQLite file. There is no runtime to ship next to it and no server to deploy.

Where it builds today

CI builds the whole workspace on every pull request for six targets: Linux x86_64 and arm64, macOS, Windows, iOS (aarch64-apple-ios) and Android (aarch64-linux-android), including a build without the TLS stack and a SQLCipher build for both phones. Platform support lists what each target checks. A build without the TLS stack leaves out reqwest, for an app that brings its own HTTP transport.

Bindings, since 0.4

Since 0.4 an app can call troupekit from Swift and Kotlin, and a script from Python. All three bindings sit over one shared layer, so every language sees the same API:

Because there is one core, a fix or a new feature lands once, and the durable runs, spend limits and route policy behave the same from every language. The bindings are built from source; no SPM, Maven or PyPI package is published yet. Build them from the repository with cargo xtask build-xcframework, cargo xtask build-aar and cargo xtask build-wheel.

What it does not do

There is no TypeScript, Flutter or React Native binding, and no browser WASM build that CI holds to; those are planned for 2.0 and 3.0 on the Roadmap.