Skip to content
everrunsPublic

About

Open source Rust framework and durable runtime for AI agents. MIT

Topics

Resources

Contributing

Security policy

Stars

72 stars

Watchers

0 watching

Forks

Latest commit

 

History

5,511 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Everruns

Website Docs Crates.io CI Repo: Agent Friendly

Build capable AI agents in Rust. Run them on your own machines.

Everruns is an open-source framework and durable runtime for AI agents in Rust. Define agents, attach models and typed tools, run multi-turn sessions, and observe execution through one application-facing API.

It is a free, non-commercial project by Mykhailo Chalyi and contributors, pre-1.0, and part of the Everruns community ecosystem of open-source AI projects. There is no company behind it and no paid edition. Talk to us on Discord.

Use the framework in your application. When you need a shared runtime, run the Everruns platform yourself on your machine, a server or Kubernetes.

Build with the framework · Run it yourself · Read the docs

Everruns

Build an agent

Add the application-facing crate:

cargo add everruns --features openai
cargo add tokio --features macros,rt-multi-thread
export OPENAI_API_KEY=sk-...

Then define a typed tool, give it to an agent, and run a turn:

use std::time::{SystemTime, UNIX_EPOCH};

use everruns::{Agent, Engine, OpenAI};

#[everruns::tool]
async fn current_time() -> Result<String, String> {
    let seconds = SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .map_err(|error| error.to_string())?
        .as_secs();
    Ok(format!("{seconds} seconds since the Unix epoch"))
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let agent = Agent::builder()
        .name("assistant")
        .instructions("Use current_time when asked about time. Be concise.")
        .provider(OpenAI::from_env()?)
        .model("gpt-6.2-sol")
        .tool(current_time())
        .build()?;

    let session = Engine::new().create(agent);
    let turn = session.send_and_wait("What time is it?").await?;
    println!("{}", turn.response);
    Ok(())
}

Everruns derives the tool schema from the Rust function, lets the model call it during the turn, and returns the result before producing the final response. Continue the framework quickstart.

Note: Everruns is under active development. Expect rapid changes and experimental features.

The agent framework

The everruns crate keeps the application-facing agent loop explicit and embeddable:

  • Agents and sessions — describe an agent once, then create independent, multi-turn conversations through an Engine.
  • Models and providers — start offline, use OpenAI, or attach a custom provider without coupling application code to a closed provider enum.
  • Typed tools and capabilities — give agents function tools and opt into filesystem, shell, web, Lua, and MCP boundaries deliberately.
  • Events, cancellation, and lifecycle hooks — observe a live turn, add application behavior at execution boundaries, and stop work cooperatively.
  • Persistence and execution choices — begin with engine-lifetime memory, add local crash-durable state, or cross deliberately into a distributed host.

Framework overview

Choose how you run Everruns

Framework Self-hosted platform
Start here. Embed Everruns in the Rust application you are building; you own the process, deployment, integrations, and data path.

Framework quickstart →
Run the shared runtime in infrastructure you manage when you need a control plane, server, workers, UI, remote API, and durable execution.

On your machine → · Docker Compose → · Kubernetes → · Architecture →

Set it up with your agent

Give your coding agent the Everruns skill. It covers the Framework, installing and running your own Everruns, and building, running, debugging and shipping agents on it:

npx skills add everruns/everruns

Then ask for what you want, for example:

Install Everruns on this machine with Docker and sign me in.
Add an Everruns agent with a typed tool to this Rust project and run it once.

The same skill comes with the Everruns plugin for Claude Code, Codex, Cursor and Gemini CLI, and with the CLI (everruns agent-skill install). Without installing anything, add Instructions: https://everruns.com/.well-known/agent-skills/everruns/SKILL.md to the prompt.

No server to spare? Look around the demo instance (quickstart). It runs the same open-source code and is a demo, not a hosted service.

Platform capabilities

The Platform, self-hosted or on the demo instance, adds durable execution, a stateless worker pool, a web UI, and a remote API. It also publishes agents to Slack, web chat, A2A, webhooks, schedules, voice, HTTP, and MCP; manages organizations and permissions; and supports observation, budgeting, and evaluation.

Platform capabilities · Channels · Durable execution · Observability

How can I support this project?

Everruns is a free, non-commercial community project. There are many ways to help:

  • Use Everruns and tell us how it went on Discord or by email ([email protected])
  • Take one of the open research questions and share what you measured
  • Report bugs and rough edges in GitHub Issues
  • Star the repository, it helps other people find it
  • Write a blog post or share the agent you built
  • Help with the documentation by asking questions or sending PRs
  • Contribute code (see below, and say hi on Discord)
  • Talk about Everruns around you

Documentation

Full documentation lives at everruns.com/docs.

Security

Everruns runs untrusted agent and tool code for multiple tenants, so security is a core design goal. Threats are tracked with stable IDs across authentication, tenant isolation, permissions, tool execution, LLM integration, sandboxes, durable execution, and channel integrations, each with a documented mitigation and, where feasible, test coverage.

  • Threat model — full analysis, mitigation status, and accepted risks
  • Security testing — threat-model tests, failure injection, DeepSec scanning, and supply-chain checks
  • Security policy — report a vulnerability

Contributing

See CONTRIBUTING.md for local development setup and AGENTS.md for the conventions used by both human and AI contributors.

License

MIT

About

Open source Rust framework and durable runtime for AI agents. MIT

Topics

Resources

Contributing

Security policy

Stars

72 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages