Read-only mirror of github.com/ondeinference/ed.
Mirrored from https://github.com/ondeinference/ed.git
Synced Nov 23, 01:00 UTC
| 1 | <p align="center"> |
| 2 | <img src="./assets/app-icon.jpg" alt="Ed Agent SDK" width="96"> |
| 3 | </p> |
| 4 | |
| 5 | <h1 align="center">Ed</h1> |
| 6 | |
| 7 | <p align="center"> |
| 8 | Embed Ed. Your app gets a brain. Your users keep their data. |
| 9 | </p> |
| 10 | |
| 11 | <p align="center"> |
| 12 | <a href="https://crates.io/crates/ed-agent"><img src="https://img.shields.io/crates/v/ed-agent?style=flat-square&labelColor=17211D&color=235843&label=ed-agent" alt="ed-agent on crates.io"></a> |
| 13 | <a href="https://crates.io/crates/ed-acp"><img src="https://img.shields.io/crates/v/ed-acp?style=flat-square&labelColor=17211D&color=235843&label=ed-acp" alt="ed-acp on crates.io"></a> |
| 14 | <a href="https://github.com/ondeinference/ed-swift"><img src="https://img.shields.io/github/v/release/ondeinference/ed-swift?style=flat-square&labelColor=17211D&color=235843&label=Swift" alt="Swift"></a> |
| 15 | <a href="https://github.com/ondeinference/ed/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/ondeinference/ed/ci.yml?style=flat-square&labelColor=17211D&color=235843&label=CI" alt="CI"></a> |
| 16 | <a href="#license"><img src="https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-235843?style=flat-square&labelColor=17211D" alt="License"></a> |
| 17 | </p> |
| 18 | |
| 19 | Ed is the agent layer above [Onde](https://ondeinference.com). It loads an |
| 20 | open-weights model, keeps the conversation, calls only the host tools you |
| 21 | register and hands back replies. The model runs on the user's device, so there |
| 22 | is no metered inference API and private context stays put. The `ed-acp` crates |
| 23 | build ACP agents (Onde Code, SplitFire Agent, siGit) on the same base. |
| 24 | |
| 25 | Ed doesn't own sessions, persistence, model catalogues or downloads. Those |
| 26 | differ per application and stay yours. |
| 27 | |
| 28 | ## Install |
| 29 | |
| 30 | ```sh |
| 31 | cargo add ed-agent # embedded chat |
| 32 | cargo add ed-acp # ACP agent |
| 33 | ``` |
| 34 | |
| 35 | For Swift, add the package from [`ondeinference/ed-swift`](https://github.com/ondeinference/ed-swift). |
| 36 | |
| 37 | ## Quick start |
| 38 | |
| 39 | ```rust |
| 40 | use ed_agent::{Ed, GgufModelConfig}; |
| 41 | |
| 42 | let ed = Ed::new(); |
| 43 | ed.load(GgufModelConfig::qwen25_1_5b(), None, None).await?; |
| 44 | |
| 45 | let reply = ed.send("Summarise this thread.").await; |
| 46 | println!("{}", reply.reply.unwrap_or_default()); |
| 47 | ``` |
| 48 | |
| 49 | Streaming, history, tools and approvals are covered in [`crates/ed-agent`](crates/ed-agent). |
| 50 | |
| 51 | ## Use it your way |
| 52 | |
| 53 | - **In your app:** [`ed-agent`](crates/ed-agent), plus [`ed-agent-tauri`](crates/ed-agent-tauri) for Tauri and [`ed-agent-ffi`](crates/ed-agent-ffi) for Swift. |
| 54 | - **As an ACP agent:** [`ed-acp`](crates/ed-acp) with a `Profile`, and [`ed-acp-tui`](crates/ed-acp-tui) for a terminal UI. |
| 55 | - **Inside a Tauri app:** [`ed-acp-tauri`](crates/ed-acp-tauri) runs an ACP agent in process or an external stdio agent. |
| 56 | - **With Claude:** [`ed-claude`](crates/ed-claude/README.md), a profile on the Anthropic API with the user's key. |
| 57 | - **With MCP servers:** [`ed-mcp`](crates/ed-mcp). Onde accounts: [`ed-onde-account`](crates/ed-onde-account). Tests: [`ed-acp-testkit`](crates/ed-acp-testkit). |
| 58 | |
| 59 | ## In production |
| 60 | |
| 61 | Ed ships in apps by Seto Elkahfi, distributed by Splitfire AB. |
| 62 | |
| 63 | <p align="center"> |
| 64 | <a href="https://apps.apple.com/se/developer/splitfire-ab/id1831430993"><img src="./assets/badges/app-store.svg" alt="Download on the App Store" height="40"></a> |
| 65 | <a href="https://play.google.com/store/apps/dev?id=9116586035310009096"><img src="./assets/badges/google-play.png" alt="Get it on Google Play" height="40"></a> |
| 66 | <a href="https://apps.microsoft.com/search/publisher?name=Splitfire%20AB%20Developer&hl=en-US&gl=SE"><img src="./assets/badges/microsoft-store.svg" alt="Get it from Microsoft" height="40"></a> |
| 67 | <a href="https://snapcraft.io/publisher/setoelkahfi"><img src="./assets/badges/snap-store.svg" alt="Get it from the Snap Store" height="40"></a> |
| 68 | <a href="https://appgallery.huawei.com/app/C119541969"><img src="./assets/badges/appgallery.svg" alt="Explore it on AppGallery" height="40"></a> |
| 69 | <a href="https://www.amazon.com/gp/search?index=mobile-apps&field-brandtextbin=Seto+Elkahfi&search-type=ss"><img src="./assets/badges/amazon-appstore.png" alt="Available at Amazon Appstore" height="40"></a> |
| 70 | </p> |
| 71 | |
| 72 | ## Docs |
| 73 | |
| 74 | Each crate has its own README: |
| 75 | [`ed-agent`](crates/ed-agent/README.md), |
| 76 | [`ed-agent-tauri`](crates/ed-agent-tauri/README.md), |
| 77 | [`ed-agent-ffi`](crates/ed-agent-ffi), |
| 78 | [`ed-acp`](crates/ed-acp/README.md), |
| 79 | [`ed-acp-tui`](crates/ed-acp-tui/README.md), |
| 80 | [`ed-acp-tauri`](crates/ed-acp-tauri), |
| 81 | [`ed-claude`](crates/ed-claude/README.md), |
| 82 | [`ed-mcp`](crates/ed-mcp/README.md), |
| 83 | [`ed-onde-account`](crates/ed-onde-account/README.md), |
| 84 | [`ed-acp-testkit`](crates/ed-acp-testkit/README.md), |
| 85 | [`examples/web-chat`](examples/web-chat/README.md) (Ed in the browser). |
| 86 | |
| 87 | ## Contributing |
| 88 | |
| 89 | Open pull requests against `development`. Before you push: |
| 90 | |
| 91 | ```sh |
| 92 | cargo fmt --all -- --check && cargo clippy --locked --workspace --all-targets -- -D warnings && cargo test --locked --workspace |
| 93 | ``` |
| 94 | |
| 95 | ## License |
| 96 | |
| 97 | MIT or Apache-2.0, at your option. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE). |
| 98 | |
| 99 | ## Copyright |
| 100 | |
| 101 | Free the intelligence. |
| 102 | |
| 103 | © 2026 Seto Elkahfi ([Onde Inference](https://ondeinference.com)). |