ChainForge
Multi-step LLM workflows as YAML.
ChainForge defines multi-step LLM pipelines in YAML. Chain extract, analyze, summarize, and format steps with conditional branching.
Quickstart
export OPENAI_API_KEY=sk-...
npx @stockyard/chainforge
# Your app: http://localhost:5930/v1/chat/completions
# Dashboard: http://localhost:5930/ui
What You Get
- YAML pipeline definitions
- Data passing between steps
- Conditional branching
- Parallel execution
- Per-pipeline cost tracking
- Dashboard with pipeline monitor
Config
# chainforge.yaml
port: 5930
providers:
openai:
api_key: ${OPENAI_API_KEY}
pipelines:
summarize_and_translate:
steps:
- name: summarize
model: gpt-4o
prompt: "Summarize: {{input}}"
- name: translate
model: gpt-4o-mini
prompt: "Translate to Spanish: {{summarize.output}}"
Docker
docker run -p 5930:5930 -e OPENAI_API_KEY=sk-... stockyard/chainforge
Part of Stockyard
ChainForge is part of Stockyard — an open-source LLM proxy and control plane. MIT licensed.