Skip to content
Docs
GitHub

SDKs

Official client libraries for Rust, Python, and TypeScript — typed clients, async APIs, SSE streaming with automatic reconnection.

4 min readEdit on GitHub

Applies toFramework (not available)Self-hostedEverruns Demo

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.

To call one agent from an application without a personal access token, use the SDKs’ AgentClient with an agent key instead of the management client. See Agent API.

Install

Requires Rust 1.70+

Terminal window
cargo add everruns-sdk

Authenticate

All SDKs read EVERRUNS_API_KEY (a personal access token, evr_pat_...) and EVERRUNS_API_URL from the environment. Always set the URL: use https://app.everruns.com/api for the Everruns demo instance, or http://<your-host>/api for a self-hosted Platform. Create the token under Settings > Personal Access Tokens.

use everruns_sdk::Everruns;
let client = Everruns::from_env()?; // EVERRUNS_API_KEY + EVERRUNS_API_URL
let client = Everruns::with_base_url("evr_pat_...", "https://app.everruns.com/api")?;

API coverage

ResourceOperations
AgentsCreate, list, get, apply, copy, delete, import, export, stats, versions, health checks
SessionsCreate, list, get, delete, cancel, resume, pin, export, set secrets, budgets
MessagesCreate, list, submit client-side tool results
EventsList, stream (SSE)
CapabilitiesList, get, guardrail dry runs
HarnessesCreate, list, search, get, update, delete
ModelsList, get
WorkspacesCreate, list, get, update, delete
Workspace filesList, read, create, update, delete, move, copy, grep, stat
MemoriesCreate, list, get, update, delete, sync, file operations
BudgetsCreate, list, get, update, delete, top up, ledger, check
ConnectionsSet, list, remove

Everything else (providers, MCP servers, organizations, schedules) is available through the REST API.

Error handling

Error typeDescription
AuthenticationErrorInvalid or missing API key (Python, TypeScript)
NotFoundErrorResource not found (Python, TypeScript)
RateLimitErrorRate limit exceeded (Python, TypeScript)
ApiErrorGeneral API error; Rust uses Error::Api { status, .. } for all HTTP errors and Error::Auth for credential problems
use everruns_sdk::Error;
match client.agents().get("invalid-id").await {
Ok(agent) => println!("Found: {}", agent.name),
Err(Error::Api { status: 404, message, .. }) => println!("Not found: {}", message),
Err(Error::Auth(msg)) => println!("Auth error: {}", msg),
Err(e) => println!("Other error: {}", e),
}

Do something

See also

Overview video