everruns-runtime
The agentic runtime — build agents in Rust by embedding the Everruns agentic framework directly in your process. No server, worker, or database required.
everruns-runtime is the agentic runtime at the core of Everruns — the
entrypoint to the Everruns agentic framework. It runs an agent harness entirely
inside your own process — with in-memory stores by default — using the same
input → reason → act loop as worker- and server-backed execution, but without
the durable engine, gRPC worker boundary, or control-plane server. It is the
recommended starting point for building agents, trying Everruns, and writing
tests.
Part of the Everruns ecosystem — the durable agentic
harness engine for building unstoppable agents. The runtime builds on the
contracts in everruns-core and pairs
with provider crates such as
everruns-openai and
everruns-anthropic.
Quick Example
use ;
use TestMathCapability;
use InProcessRuntimeBuilder;
# async
The example above uses the built-in deterministic LLM simulator so it runs with
no API key. Swap in a real provider (for example
everruns-openai) to talk to a
hosted model.
InProcessRuntimeBuilder::new() starts with a runtime-safe built-in capability
registry. If you call .platform_definition(...), that platform becomes
authoritative; start from CapabilityRegistry::runtime_builtins() when you want
the default runtime catalog plus your own additions.
Runnable examples ship with the crate:
cargo run -p everruns-runtime --example in_process_runtime
cargo run -p everruns-runtime --example inspect_context
cargo run -p everruns-runtime --example real_disk_file_system_tools
What It Provides
InProcessRuntimeBuilderfor declaring platforms, harnesses, agents, and sessions in code- In-memory stores for local development and tests, with hooks to plug in custom backends
- Real-disk workspace wiring so file-backed agents can read and write an actual directory
- Turn-context inspection before and after a turn executes
- Host-phase helpers reused by durable and server-backed execution
Documentation
- API reference (docs.rs)
- Runtime — embed Everruns in your process
- Tutorial: build your first agent
- Everruns documentation
License
Licensed under the MIT License.