- Rust 1.70+: Install from rustup.rs
- Git: For cloning the repository
# Clone the repository
git clone https://github.com/Michael-A-Kuykendall/rustchain.git
cd rustchain
# Build with default features
cargo build --release --features "cli,tools,llm"
# The binary will be at target/release/rustchain# Linux/macOS
cp target/release/rustchain ~/.local/bin/
# Windows (PowerShell)
copy target\release\rustchain.exe $env:USERPROFILE\.cargo\bin\rustchain --version
rustchain --helpRustChain uses Cargo feature flags for modular compilation:
| Feature | Description | Default |
|---|---|---|
cli |
Command-line interface | ✅ |
tools |
Built-in tool framework | ✅ |
llm |
LLM provider integrations | ✅ |
transpiler |
Workflow transpilation | ✅ |
agent |
AI agent system | ❌ |
chain |
Chain workflows | ❌ |
rag |
Retrieval-augmented generation | ❌ |
server |
HTTP server (library only) | ❌ |
# Minimal build (CLI only)
cargo build --release --features cli
# Full build with all features
cargo build --release --all-features
# Development build (faster compilation)
cargo build --features "cli,tools,llm"For LLM features, you need either:
# Install Ollama from ollama.ai
ollama serve
# Pull a model
ollama pull llama3.2:1bSet environment variables:
# OpenAI
export OPENAI_API_KEY="your-key"
# Anthropic
export ANTHROPIC_API_KEY="your-key"# Validate a mission
rustchain mission validate examples/hello_world.yaml
# Check build status
rustchain build status# Update Rust
rustup update
# Clean and rebuild
cargo clean
cargo build --release --features "cli,tools,llm"If commands are missing, ensure you built with the right features:
cargo build --release --features "cli,tools,llm,transpiler"