The embedded agent SDK
Ed puts a tool-calling AI agent inside your Tauri, Swift or Rust app. The model runs on your user's device and can only call the functions you register.
cargo add ed-agent
use ed_agent::{Ed, GgufModelConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let ed = Ed::new();
// Downloads the weights on first use, then loads them from the local cache.
ed.load(GgufModelConfig::qwen25_1_5b(), None, None).await?;
let reply = ed.send("Summarise this thread.").await;
println!("{}", reply.reply.unwrap_or_default());
Ok(())
}
Start with Tauri, Swift or Rust.
What you get
- Your functions as tools. Describe each one with a JSON Schema and mark it read-only or mutating.
- Approval on every change. Mutating calls wait for your approval handler. A user can allow one for the rest of the session.
- No inference bill. An open-weights model runs on the device, so there is no metered API behind your app.
- Your app stays yours. Ed does not own your sessions, storage or model catalogue.
Building something real with it?
We are looking for design partners.