Skip to content
Docs
GitHub

Everruns Framework

Build and run agents inside a Rust application with the application-facing everruns crate.

4 min readEdit on GitHub

The Everruns Framework is the application-facing everruns crate. Use it to describe agents, attach models and tools, run multi-turn sessions, observe events, and embed agent execution directly in a Rust process.

use everruns::{Agent, Engine, OpenAI};
let agent = Agent::builder()
.instructions("Answer in one short sentence.")
.provider(OpenAI::from_env()?)
.model("gpt-6.2-sol")
.build()?;
let engine = Engine::new();
let turn = engine.create(agent).send_and_wait("Say hello.").await?;
println!("{}", turn.response);

No database, server or worker is required: an agent runs inside your process. A model provider is: pick one from Supported providers, or use the test simulator when writing tests.

Surface Use it for
Framework Rust applications that build and run agents in process through everruns
Advanced host crates Low-level execution-host composition through everruns-core (host feature) and focused siblings
SDKs Remote clients that call a running Everruns server
Platform (self-hosted) The control plane, server, workers, UI, and durable deployment you run yourself, for example with Docker Compose
Everruns Demo The Platform operated for you at app.everruns.com, with a built-in model provider and a starter credit; bring-your-own keys are optional. See the Everruns demo quickstart

Normal library users should start with the Framework. Hosts that must replace storage or orchestration cross into custom backends.

  • Quickstart, install the crate and run one turn against a live model provider.
  • Architecture, understand Agent, Engine, Session, and the shared immediate/durable execution kernel.
  • Upgrade notes, the code changes each breaking release needs.
  • Agents and tools, instructions, files, workspaces, MCP, plugins, context inspection, and typed function tools through everruns::tool.
  • Models and providers, the model/provider split, every driver that ships today, each driver’s environment variables, provider model catalogs, and custom providers.
  • Direct calls and decisions, one prompt and one answer without an agent, or a calibrated number rather than prose.
  • Sessions, independent multi-turn conversations, bounded history, typed resume, and engine-lifetime or crash-durable persistence.
  • Events and cancellation, observe a live turn, stop work cooperatively, and record bounded canonical event envelopes.
  • Observability, export every session to OpenTelemetry or Braintrust, or register your own event listeners.
  • Workspaces and environments, bind sessions to isolated or shared heads and configure read and write scopes with secure defaults.
  • Lifecycle hooks, run awaited application behavior at execution boundaries.
  • Answer agent questions, implement AskUser so your application answers the agent’s structured questions.
  • Session work and wakes, immediate and scheduled work with explicit delivery and restart semantics.
  • Agents that start agents, one-off spawn_agent calls with SpawnAgents, or followed work in threads with Threads and Coordinator.
  • Capabilities, configure the optional standard policy bundle and open references, or package typed tools with stable metadata and lifecycle context.
  • GitHub tools, read PRs, explore repositories, and explicitly enable writes with application-owned credentials.
  • Capability integrations, opt into filesystem, shell, web, Lua, and MCP implementation boundaries.
  • Portable and hosted capabilities, understand the Framework/Platform implementation boundary.
  • Agent blueprints, contribute a code-defined specialist agent from a capability.
  • Host services, compose a host’s own capabilities, provider resolution, retry budgets, MCP credentials and observers into Engine sessions.
  • Session controls, run slash commands, hot-install capabilities, switch model, effort and MCP servers, and query context on a live session.
  • Attach to a running session, let a second local process list, watch, drive and cancel a host’s sessions.
  • Custom backends, cross into low-level host composition deliberately.
  • Testing and simulation, deterministic tests without credentials.
  • Runnable examples, complete programs maintained with the crate.
  • Deploy a Framework app, ship the binary or a container with a persistent data directory and environment-provided keys.
  • Move to Platform or Cloud, what carries over to a hosted agent and what has to be rebuilt.
  • Serve (experimental), attribute macros, file-layout discovery and a manifest, served over the Everruns server /v1 API.
  • Tutorial: Serve an Agent and Call It from Code (experimental), build a serve app, protect it with an API key, and call it with the SDK’s AgentClient.
  • Serve AG-UI, stream a session to CopilotKit or any AG-UI 1.0 client from your own HTTP server.
  • A2A, serve Framework agents to other agents over A2A 1.0, and delegate work to remote A2A agents.
  • Serve on AgentCore (experimental), deploy a serve app to Amazon Bedrock AgentCore Runtime.
  • Serve on celld (experimental), run a serve app durably on celld, self-hosted Durable Objects.

Application services covers authenticated integrations, data services, durable event triggers, and portable evaluation/trace APIs.