Prerequisites
Make sure the following are in place before building.-
Rust toolchain (stable) — Install via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. Hiroshi requires the stable channel and the 2024 edition, which is included in Rust 1.85 and later. -
Ollama — Download and install from ollama.ai, then start the server with
ollama serve. -
A compatible model — Pull at least one model before launching Hiroshi. The default recommended model is:
You can also use larger models such as
qwen2.5-coder:7borllama3. The onboarding wizard scans for locally available models and lets you choose. -
Embedding model — Hiroshi uses
nomic-embed-textfor memory embeddings by default. Pull it with:
Build from source
1
Clone the repository
Clone the Hiroshi repository and change into the project directory.
2
Build in release mode
Compile a fully optimised binary. The release profile enables LTO, sets The binary is written to
opt-level = 3, strips debug symbols, and uses a single codegen unit — the resulting binary is compact and fast.target/release/Hiroshi (or target/release/Hiroshi.exe on Windows).3
Install to PATH (optional)
Install the binary into your Cargo bin directory (
~/.cargo/bin) so you can run hiroshi from anywhere.4
Verify the installation
Confirm the binary is accessible and print the built-in help text.You should see output listing the available subcommands:
agent, daemon, service, doctor, and migrate.Feature flags
Hiroshi uses Cargo feature flags to control which optional components are compiled in. This lets you produce a smaller, faster binary if you don’t need chat gateways or the web dashboard.
The default feature set includes all four:
gateway-ui, channel-telegram, channel-discord, and channel-slack.
To build a minimal kernel-only binary without any gateways or dashboard:
First-time setup
When you run any Hiroshi command for the first time, Hiroshi detects that~/.hiroshi/config.toml does not exist and automatically launches the interactive onboarding wizard. The wizard creates the full ~/.hiroshi/ directory structure — including the SQLite database, the skills/ directory pre-populated with bundled skills, and the default AGENTS.md — and writes your choices to config.toml.
You do not need to create any configuration files manually. Simply run hiroshi agent and follow the prompts.