Choose the SDK when you own the host
orca-harness-sdk is the high-level Rust facade for embedding Orca Harness in your own process. It composes models, workspace tools, sessions, memory, skills, MCP, subagents, workflows, events, retries, truncation, and cancellation without importing the orcacode terminal UI or its configuration layer.
Host responsibility: The SDK executes with the permissions of your process. Your application owns credential loading, approvals, configuration, process isolation, shutdown, and the set of exposed tools. A
ToolPolicy authorizes registered calls; it is not an operating-system sandbox.Follow a focused guide
The SDK documentation is split by the host behavior you are building. Start with the first-agent guide, then add only the lifecycle components your application needs.Supported model adapters
Harness::agent accepts any implementation of the re-exported Model trait. Credentials are host inputs: the SDK does not read Orcacode’s saved configuration or launch an interactive login flow.
Run the checked-in examples
The repository examples are executable documentation. Most use scripted models and temporary workspaces;live_host_assembly intentionally makes real provider calls.
crates/sdk/examples/agent_tour.rs for a broad single-file tour and crates/sdk/examples/live_host_assembly.rs for a fully composed live host. Validate SDK targets with cargo test -p orca-harness-sdk and cargo clippy -p orca-harness-sdk --all-targets -- -D warnings.