Introduction
A lightweight CLI framework for building and running agentic AI workflows using the Open Agent Specification.
Specrun lets you define multi-step agent workflows in YAML or JSON, wire tools in any language, and run everything from a single command.
Why Specrun?
- Declarative — Define workflows as data, not code. Use YAML or JSON following the Open Agent Specification.
- Language agnostic tools — Tools are standalone executables that read JSON from stdin and write JSON to stdout. No SDK required.
- Provider agnostic — Works with OpenAI, vLLM, Ollama, or any OpenAI-compatible endpoint.
- Single command — Compile, validate, and execute your workflow with
specrun run.
Quick Start
Install via npm or Homebrew:
npm install -g @specrun/cli
# or
brew install spichen/tap/specrunScaffold a new project:
specrun init my-agent
cd my-agentRun it:
specrun run flow.json --tools-dir toolsHow It Works
- Define your workflow in YAML/JSON using nodes and edges
- Wire tools as standalone executables in any language
- Run with a single command — Specrun compiles, validates, and executes
YAML/JSON → Parse → Validate → Compile Graph → Execute