USER GUIDE
RuneHub Documentation
Everything you need to install, run, build, and optimize AI pipelines with RuneHub.
TABLE OF CONTENTS
01
Overview
RuneHub is a composable AI workflow platform. It solves three persistent problems with LLM-based automation:
The same Rune produces the same behavior every time. The workflow graph is locked — the LLM fills in content, not structure.
Skip planning tokens, isolate context per step, cache repeated inputs, route to cheapest capable model. ~70% reduction per run.
Every skill declares its permission scope upfront. Every run produces an immutable step-by-step audit log.
The core primitive is the Rune — a directed graph of Skills (packaged service capabilities) that runs deterministically, reports token usage, and carries a Trust Score.
02
Installation
Prerequisites
- Node.js ≥ 18 (
node --version) - npm ≥ 9 or pnpm ≥ 8
- API keys for the services your Rune uses (added via
rune auth add)
Install the CLI
Authenticate
~/.runehub/secrets/ and encrypted at rest. They are injected at runtime — never sent to RuneHub servers or included in LLM prompts.03
Core Concepts
3.1 Skills
A Skill is a packaged service capability — one atomic action for one service. Skills are categorized as:
Skills are versioned, scoped, and independently auditable. The full registry contains 200+ skills across 40+ services — browse at runehub.ai/skills.
3.2 Runes
A Rune is a directed acyclic graph (DAG) of Skills — a full workflow definition. The graph specifies execution order, parallelism, and data flow between steps.
3.3 Trust Score
Every Rune carries a Trust Score (0–100) computed from its permission surface, data sensitivity, and service reputation. The score is deterministic and reproducible.
04
Running Your First Rune
The following walkthrough installs and runs the Morning Brief Rune — a good representative of a full input → LLM → output pipeline.
Step 1 — Browse and inspect
Before installing, inspect what the Rune will access:
Step 2 — Install
Step 3 — Run
Step 4 — Review logs
--dry-run to simulate execution without making any real API calls. Useful for testing pipelines before going live.05
The Rune Registry
The registry hosts all verified Runes. Each Rune is reviewed for scope accuracy, dependency correctness, and Trust Score validity before publishing.
Filtering and searching
Common Runes by use case
06
Building Custom Runes
6.1 Visual Builder (UI)
Open the Rune Builder and:
- Start from a Quick Start template (Smart Alerts, Research Bot, Daily Brief) or a blank canvas.
- Drag skills from the left panel onto the canvas. Skills are categorized by type.
- Connect nodes by dragging from the right handle of one node to the left handle of another.
- Click ✨ Auto-Fill Gaps — the engine detects missing LLM or output nodes, adds them, and wires all connections.
- Review the Trust Score in the top bar. Export as JSON when satisfied.
6.2 CLI authoring
Write Rune definitions directly in JSON or YAML and register them locally:
6.3 Publishing to the registry
07
Token Optimization
A naive 8-skill LLM pipeline costs ~12,000 tokens per run. RuneHub reduces this to ~3,600 through four compounding techniques — all applied automatically.
Zero-token planning
Traditional agents burn 1,500–2,500 tokens per run just deciding what tools to call and in what order. In RuneHub, the Rune graph *is* the plan — there is no planning phase. Zero tokens spent on orchestration.
Context isolation
Each skill receives only its declared inputs — not the entire session history. A summarization step that takes one email as input does not receive the previous 5,000 tokens of context.
Semantic caching
Inputs are embedded and compared to a local vector cache. If a semantically equivalent input was processed within the TTL window, the cached output is returned and the LLM is never called.
Smart model routing
Each step is routed to the cheapest model capable of handling it. Classification and extraction → Groq (Llama/Mixtral, ~10× cheaper than GPT-4). Triage and scoring → Claude Haiku. Complex synthesis → Claude Sonnet. Opus is never used by default.
08
Security & Scopes
Least-privilege by default
Every skill declares exactly the OAuth scope or API permission it requires. RuneHub never requests broader access than declared. For example:
Secrets never reach the LLM
API keys and OAuth tokens are stored in ~/.runehub/secrets/ (AES-256 encrypted). At runtime, each skill receives its credentials via environment injection — the LLM prompt context never contains a secret, even accidentally.
Audit logs
Every execution writes an immutable log entry:
09
CLI Reference
10
FAQ
$ rune install morning-brief --run