Pronounced "rater" — The agent-native workflow automation engine
Beta Software: r8r is under active development. APIs may change between versions. Not recommended for production workloads yet. We welcome feedback and contributions!
r8r is an agent-native workflow automation engine written in Rust. While tools like n8n and Zapier were built for humans clicking through visual editors, r8r was built for the AI age — where agents need to create, execute, and orchestrate workflows programmatically. 15MB binary. 50ms cold start. Cloud to edge to air-gapped.
Don't burn LLM tokens on deterministic steps. Tools that route every step through an LLM spend money on tasks that don't need intelligence — HTTP calls, JSON parsing, conditional routing. r8r uses deterministic nodes for deterministic work and only calls the LLM when you actually need reasoning.
Fully agentic: LLM token on every step → $$$
r8r: LLM only where needed → $
Runs on anything. A single static binary with ~15MB RAM footprint and ~50ms cold start. No JVM, no Node.js runtime, no container orchestrator required. Deploy on a cloud VM, a Raspberry Pi, an NVIDIA Jetson, or an industrial gateway — the same binary works everywhere.
Local AI reasoning. Call OpenAI, Anthropic, Ollama, or any OpenAI-compatible LLM from within your workflows. Run Ollama on the same edge device for fully offline intelligent automation — no cloud round-trips, no token bills.
| Traditional Tools | r8r |
|---|---|
| Visual drag-and-drop | LLM-friendly YAML |
| Heavy (500MB+ RAM) | Lightweight (~15MB RAM) |
| Cloud-only | Cloud to edge |
| Slow startup | ~50ms cold start |
| Locked in database | Git-friendly files |
| Built for humans clicking | Built for AI agents and developers |
# Install (recommended)
curl -sSf https://r8r.sh/install.sh | sh
# Pin a specific release if needed
curl -sSf https://r8r.sh/install.sh | R8R_VERSION=v0.8.4 sh
# Or use Docker (an API key is required when the server is reachable from the network)
docker run -d -p 8080:8080 -v r8r-data:/data \
-e R8R_API_KEY="$(openssl rand -hex 32)" ghcr.io/qhkm/r8r
# Or via Cargo (requires Rust; installs the `r8r` and `r8r-mcp` commands)
cargo install r8r
# Or build from source
git clone https://github.com/qhkm/r8r.git && cd r8r
cargo build --releaseThe install script resolves the latest release automatically and falls back to R8R_VERSION when you want to pin a version.
r8r server listens on 127.0.0.1:8080 by default, so only your machine can reach it and no key is needed. To listen on the network, set an API key first:
export R8R_API_KEY="$(openssl rand -hex 32)"
r8r server --host 0.0.0.0With R8R_API_KEY set, every /api/* call needs Authorization: Bearer <key>, the dashboard asks for the key, and the /api/monitor WebSocket accepts it as ?token=<key>. The server refuses to start on a non-loopback address without a key; --allow-unauthenticated overrides that, for trusted, isolated networks only. Webhook endpoints (/webhooks/*) stay public, because the callers are outside services.
Then create and run a workflow:
# Create a workflow
cat > hello.yaml << 'EOF'
name: hello-world
nodes:
- id: greet
type: transform
config:
expression: '"Hello, " + (input.name ?? "World") + "!"'
EOF
# Start the server
r8r server --workflows . &
# Execute it
curl -X POST localhost:8080/api/workflows/hello-world/execute \
-H "Content-Type: application/json" \
-d '{"input": {"name": "Agent"}}'
# Open the web UI
# Dashboard: http://localhost:8080/
# Guided workflow studio: http://localhost:8080/editorRun r8r server for the full-featured automation server — REST API, web dashboard, MCP server, webhooks, cron triggers, Kafka/SQS/IMAP event sources, and credential management.
r8r server --workflows ./workflowsThis is the primary mode today. Supports SQLite (default) or PostgreSQL (--features storage-postgres) for execution history and state. IMAP mailbox polling triggers are available via --features imap.
WhatsApp Cloud API inbound webhooks are opt-in via --features whatsapp-inbound. Configure Meta to use GET /webhooks/whatsapp for verification and POST /webhooks/whatsapp for delivery. Set WHATSAPP_VERIFY_TOKEN (required) and WHATSAPP_APP_SECRET (optional but strongly recommended for signature verification). Message and delivery updates publish whatsapp.inbound and whatsapp.status events:
{"event":"whatsapp.inbound","data":{"wa_id":"60123456789","message_type":"text","text_body":"Hello"}}If the event backend is unavailable, delivery returns HTTP 500 so Meta can retry instead of silently dropping the event.
r8r-runner — a lightweight daemon designed for edge devices. Pulls workflow definitions from a central server or local directory, executes them offline, and syncs results when connectivity is available.
- Offline-safe: SQLite-backed execution with store-and-forward
- Fleet management: Central dashboard to deploy workflows to hundreds of edge nodes
- Minimal footprint: Same ~15MB binary, same ~15MB RAM
See Runner Plan for the roadmap.
The agent node drops AI reasoning into any workflow — call OpenAI, Anthropic, Ollama, or any OpenAI-compatible endpoint directly. Use AI where you need it, skip it where you don't.
name: order-processor
nodes:
- id: fetch-order
type: http
config:
url: "https://api.store.com/orders/{{ input.order_id }}"
- id: check-fraud
type: agent
config:
provider: openai # or anthropic, ollama, custom
model: gpt-4o
prompt: "Is this order fraudulent? {{ nodes.fetch-order.output }}"
response_format: json
json_schema:
type: object
required: [verdict, confidence]
properties:
verdict: { type: string, enum: [fraud, legit] }
confidence: { type: number }
depends_on: [fetch-order]
retry:
max_attempts: 3
backoff: exponential
# Route on the agent's verdict. In conditions, earlier node outputs are
# variables named after the node id, with `-` replaced by `_`.
- id: flag-order
type: http
depends_on: [check-fraud]
condition: 'check_fraud.verdict == "fraud"'
config:
url: "https://api.store.com/orders/{{ input.order_id }}/flag"
method: POST
- id: process-order
type: http
depends_on: [check-fraud]
condition: 'check_fraud.verdict == "legit"'
config:
url: "https://api.store.com/orders/{{ input.order_id }}/process"
method: POSTThe agent node gets the same durability as every other node — retries, checkpoints, fallback values. If the AI call fails at 3am, r8r retries with backoff, not the entire pipeline.
Supported providers:
| Provider | Config | Credential | Edge-friendly |
|---|---|---|---|
| OpenAI | provider: openai |
credential: openai |
Cloud |
| Anthropic | provider: anthropic |
credential: anthropic |
Cloud |
| Ollama | provider: ollama |
None (local) | Local / Edge |
| Custom | provider: custom + endpoint: ... |
credential: ... |
Any |
For edge deployments, pair r8r with a local Ollama instance for fully offline AI reasoning — no internet connection required.
r8r includes a built-in MCP server (Model Context Protocol) so AI agents can directly create, execute, and manage workflows.
r8r-mcp15 tools available:
| Tool | Description |
|---|---|
r8r_execute |
Execute a workflow, returns execution metadata |
r8r_run_and_wait |
Execute a workflow, returns just the output |
r8r_discover |
Discover workflow parameters, nodes, triggers |
r8r_lint |
Lint workflow YAML with detailed error messages |
r8r_list_workflows |
List all available workflows |
r8r_get_workflow |
Get full workflow definition |
r8r_get_execution |
Get execution status and result |
r8r_get_trace |
Get detailed execution trace |
r8r_list_executions |
List recent executions |
r8r_validate |
Validate workflow YAML |
r8r_create_workflow |
Create or update a workflow |
r8r_test |
Test a workflow with mocks and assertions |
r8r_list_approvals |
List pending approval requests |
r8r_approve |
Approve or reject a pending approval |
r8r_generate |
Generate a workflow from natural language |
| Feature | r8r | n8n | Node-RED | AWS Greengrass |
|---|---|---|---|---|
| Primary user | AI agents & developers | Human operators | IoT developers | AWS ecosystem |
| Language | Rust | TypeScript | Node.js | Java + Python |
| Binary size | ~15 MB | ~200 MB+ | ~100 MB+ | ~200 MB+ |
| Memory (idle) | ~15 MB | ~500 MB+ | ~80 MB+ | ~200 MB+ |
| Startup | ~50ms | Seconds | Seconds | Seconds |
| Interface | CLI, API, MCP, Web UI | Visual editor | Visual editor | AWS Console |
| Workflows as code | YAML (git-friendly) | Database blobs | JSON (git-friendly) | JSON + AWS config |
| AI agent nodes | Multi-provider | None | Community nodes | SageMaker integration |
| MCP support | Built-in (15 tools) | None | None | None |
| Edge deployment | Single binary | Not designed for edge | Yes (lightweight) | Yes (AWS-only) |
| Vendor lock-in | None | None | None | AWS |
| Sandbox execution | Docker, Firecracker | None | None | Lambda-based |
| Node | Purpose |
|---|---|
http |
REST API calls |
document |
Extract digital PDF text or transcribe scans/images with a vision model |
transform |
Data transformation (Rhai expressions) |
agent |
AI reasoning — call OpenAI, Anthropic, Ollama, or any LLM |
sandbox |
Execute Python, Node, or Bash in isolated environments |
subworkflow |
Nested workflow execution |
email |
Send emails via Resend, SendGrid or Mailgun (SMTP not yet supported) |
slack |
Slack messaging |
database |
SQL query execution on SQLite (PostgreSQL and MySQL not yet supported) |
s3 |
Unsigned S3 requests: public buckets and endpoints without auth (request signing not yet supported) |
switch |
Multi-branch conditional routing |
if |
Binary conditional |
filter |
Filter data by conditions |
sort |
Sort data by fields |
split |
Split data into chunks |
aggregate |
Aggregate/reduce data |
merge |
Merge multiple inputs |
dedupe |
Remove duplicates |
set |
Set values |
variables |
Workflow state management |
crypto |
Hash, encrypt, sign |
datetime |
Date/time operations |
wait |
Delay/sleep node |
approval |
Pause execution for human/agent approval |
circuit_breaker |
Fault tolerance |
debug |
Development logging |
See Node Types for full documentation.
Most workflow tools assume a SaaS backend, a Node.js runtime, and an internet connection. r8r assumes none of them, so it fits networks that are deliberately cut off: government and defense, healthcare, finance, industrial control, and on-prem deployments with strict data-residency rules.
- One binary, no runtime: no Node.js, Python, JVM, or package registry to mirror inside the enclave. Copy the binary in and run it.
- No phone-home: the r8r binary makes no outbound connections of its own: no telemetry, license check, or update check. The only network calls are the ones your workflows make. OpenTelemetry export is off unless you set
R8R_OTEL_ENABLED=true, and then it goes to the collector you choose. - Local state: workflows are YAML files and execution history lives in a local SQLite database, so nothing leaves the machine and everything can be reviewed and version-controlled.
- Local models: point the
agentnode at Ollama or any OpenAI-compatible server inside your network for AI reasoning with no cloud round-trips. - Internal services: by default, HTTP nodes refuse private, link-local, and reserved addresses as SSRF protection. Inside a closed network, where the services your workflows call are internal, set
R8R_ALLOW_INTERNAL_URLS=true.
Offline install: on a connected machine, download the release archive for your platform and the checksums file. Verify them, carry them across, and extract:
VERSION=v0.8.4
TARGET=x86_64-unknown-linux-gnu # or aarch64-unknown-linux-gnu, aarch64-apple-darwin, x86_64-apple-darwin
BASE=https://pub-55a6f9724469496aa4f0bd4214b25331.r2.dev/releases/$VERSION
curl -fLO "$BASE/r8r-$VERSION-$TARGET.tar.gz"
curl -fLO "$BASE/r8r-$VERSION-checksums.txt"
shasum -a 256 -c --ignore-missing "r8r-$VERSION-checksums.txt"
# inside the air-gapped network
tar -xzf "r8r-$VERSION-$TARGET.tar.gz" && sudo install r8r r8r-mcp /usr/local/bin/To build from source instead, run cargo vendor on a connected machine and add the config snippet it prints. Then carry the source tree across and run cargo build --release --offline.
r8r's Rust foundation makes it uniquely suited for edge computing:
- Small footprint: ~15MB binary, ~15MB RAM — fits on any device with an ARM or x86 processor
- SQLite-backed: No external database needed, durable execution state on local disk
- Offline-safe: Workflows execute without internet; results sync when connectivity returns
- Fast recovery: ~50ms cold start means near-instant restart after power cycles
Target platforms:
| Platform | Status |
|---|---|
| Raspberry Pi 4/5 | Supported (ARM64) |
| NVIDIA Jetson (Nano, Orin) | Supported (ARM64) |
| Intel NUC / x86 gateways | Supported (x86_64) |
| Industrial ARM gateways | Supported (ARM64) |
Planned edge capabilities:
- MQTT node — subscribe/publish to MQTT brokers (coming soon)
- GPIO support — read sensors and control actuators (planned)
- Fleet management — deploy and monitor workflows across device fleets (planned)
Cloud: Auto-triage GitHub issues with AI
Webhook receives a new issue, the agent node classifies severity and assigns labels, then http node posts a Slack notification. Deterministic routing handles the plumbing; LLM handles the judgment call.
Edge: Smart factory sensor monitoring r8r runs on a gateway device, reads sensor data via HTTP polling, uses a local Ollama model for anomaly detection, and triggers alerts when thresholds are exceeded — all without leaving the factory floor.
Hybrid: Edge collection, cloud aggregation Edge devices run lightweight r8r workflows that pre-process and filter data locally. Results sync to a cloud r8r instance that aggregates across sites and generates reports.
Robotics: Autonomous decision-making r8r on an NVIDIA Jetson runs workflows that combine sensor input with local LLM reasoning for real-time navigation decisions — deterministic control loops with AI judgment where it matters.
# Server
r8r server --workflows ./workflows # Start server
r8r dev workflow.yaml # Hot-reload one workflow
# Interactive REPL
r8r # Open interactive REPL
r8r chat # Same as above
r8r chat --resume <session-id> # Resume previous session
# Workflows
r8r workflows list # List workflows
r8r workflows run <name> # Execute
r8r workflows run <name> -p key=val # Execute with parameters
r8r workflows validate <file> # Lint YAML
r8r workflows history <name> # Version history
r8r workflows rollback <name> <ver> # Rollback
r8r workflows dag <name> # Show dependency graph
# Executions
r8r workflows trace <id> # Execution trace
r8r workflows resume <id> # Resume failed
r8r workflows replay <id> # Replay execution
# Templates
r8r templates list # List available templates
r8r templates show <name> # Show template details
r8r templates use <name> -o out.yaml # Create workflow from template
# Generate from natural language
r8r create <description> # Generate workflow from prompt
r8r refine <name> <description> # Refine existing workflow
# Security
r8r credentials set <name> --allowed-hosts <host> # Store secret, limited to a host
r8r credentials scope <name> --allowed-hosts <host> # Change where it may be sent
r8r credentials list # List (masked)
# Job Queue (distributed workers)
r8r enqueue <workflow> # Push a workflow run onto the queue
r8r enqueue <workflow> -i '{"x":1}' # With input JSON
r8r enqueue <workflow> --version 2 # Pin a specific workflow version
r8r enqueue <workflow> --idempotency-key k # Dedupe-safe key
r8r worker # Start a worker (4 concurrent consumers)
r8r worker --once # Process one job, then exit (cron/systemd)
r8r worker -c 8 --redis-url redis://host:6379 # Redis-backed queueWhile a prompt is running, the REPL TUI shows staged progress: planning, active tool calls, latest completed tool, and reply drafting, alongside elapsed time.
- SSRF Protection — Blocks internal IP requests
- AES-256-GCM — Encrypted credential storage (key from
R8R_ENCRYPTION_KEY, or a generated owner-only key file) - Webhook Signatures — GitHub, Stripe, Slack verification
- Rate Limiting — Per-workflow throttling
- Schema Validation — JSON Schema input validation
- Sandbox Isolation — Docker containers or Firecracker microVMs with memory, network, and filesystem restrictions
See Security Audit for details.
| Doc | Description |
|---|---|
| API Reference | REST endpoints |
| Node Types | Node configuration |
| Environment Variables | Configuration |
| Deployment Guide | Server deployment (API + UI) |
| Edge Deployment | Raspberry Pi, Jetson, and IoT deployment |
| Use Cases | 10 concrete workflows (cloud, edge, hybrid, MCP) |
| Competitive Positioning | r8r vs n8n, Node-RED, Temporal, Greengrass |
| Client Deployment Model | Per-client isolation approach |
| Architecture | System design |
| Sandbox Backends | Docker and Firecracker sandboxing |
| Runner Plan | Edge/fleet runner roadmap |
| Roadmap | Planned features |
We welcome contributions! Please see CONTRIBUTING.md for guidelines and our CLA (required for first PR).
cargo test # Run tests (400+)
cargo clippy # Lint
cargo fmt # FormatSee Roadmap for contribution ideas.
This repository uses multiple licenses:
| Component | License |
|---|---|
Core engine (src/) |
AGPL-3.0 |
| Client libraries | Apache 2.0 |
| Enterprise features | Commercial (requires license key) |
The source code compiled without the enterprise feature flag is open source under AGPLv3. See LICENSE for full terms.
Commercial license available for teams that need to use r8r without AGPL obligations or need enterprise features (RBAC, SSO, fleet management, HA). Contact us.
r8r — Because AI agents deserve better than drag-and-drop. Cloud to edge.