chainforge

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 1 Imported by: 0

README

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.

Documentation

Overview

ChainForge — Stockyard Phase 3 P3 product.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL