Skip to content

Everruns SDKs for Rust, Python, TypeScript

The Everruns SDKs are official client libraries for building agent applications. Rust, Python, and TypeScript with a consistent API across all three.

What the SDKs handle for you:

  • Consistent API across languages
  • Async/await patterns throughout
  • SSE streaming with automatic reconnection, heartbeat-based stale detection, and since_id resumption
  • Typed models generated from the OpenAPI spec
  • Sub-client organization (agents, sessions, messages, events, filesystem, …)

For a hands-on lesson, see Build your first agent or the minimal Run an Agent notebook.

Install

Requires Rust 1.70+

Terminal window
cargo add everruns-sdk

Authenticate

All SDKs read EVERRUNS_API_KEY from the environment by default. You can also pass it explicitly.

use everruns_sdk::Client;
let client = Client::from_env()?; // from env
let client = Client::new("your-api-key"); // explicit

API coverage

ResourceOperations
AgentsCreate, list, get, update, upsert, archive, import, export, preview
SessionsCreate, list, get, update, delete, cancel
MessagesCreate, list
EventsPoll, stream (SSE)
CapabilitiesList, get
LLM ProvidersCreate, list, get, update, delete, sync models
LLM ModelsCreate, list, get, update, delete
MCP ServersCreate, list, get, update, delete
FilesystemList, read, create, update, delete, move, copy, grep, stat
Session DatabasesCreate, list, get, delete, schema
ImagesUpload, list, get, thumbnail, delete
OrganizationsCreate, list, get, update
Scheduled TasksCreate, list, get, update, delete, pause, resume, trigger

Error handling

Error typeDescription
AuthenticationErrorInvalid or missing API key
NotFoundErrorResource not found
RateLimitErrorRate limit exceeded
ApiErrorGeneral API error
use everruns_sdk::Error;
match client.agents().get("invalid-id").await {
Ok(agent) => println!("Found: {}", agent.name),
Err(Error::NotFound(msg)) => println!("Not found: {}", msg),
Err(Error::Authentication(msg)) => println!("Auth error: {}", msg),
Err(e) => println!("Other error: {}", e),
}

Do something

See also

Overview video