Orchard is a Rust library first, and the orch command is a thin layer over it. That makes it easy to run in places besides your terminal.
Build from source
With a Rust toolchain (1.79 or newer), you can build the CLI from the tagged source on any platform Rust supports.
$git clone https://github.com/Artemis-Inc/Orchard.git && cd Orchard && cargo build --release -p orch-cli
The binary lands in target/release/orch. Copy it somewhere on your PATH. You can also install it straight from Cargo.
WebAssembly
Orchard compiles to WebAssembly, so an agent can run entirely in the browser with no server. The core is wrapped with wasm-bindgen and the same program you run locally runs in a page.
$cargo build --release -p orchard-wasm --target wasm32-unknown-unknown
See the embedding guide in the documentation for the full browser setup.
Embed in your own program
One core, four ways to call it:
- Rust: add the
orchardcrate and call the library directly. - C and C++: link the static or dynamic library and include the stable header.
- Python: install the native bindings and import Orchard like any package.
- WebAssembly: load the wasm module in the browser or any wasm host.
Docker
Prefer a container? The Docker page has an image with the CLI ready to run.
