Learn Stockyard

Step-by-step tutorials from zero to production.

1

Install & First Boot

Download the binary, set OPENAI_API_KEY, run ./stockyard. Open the console at localhost:4200.

2

Your First Trace

Send a request via curl -X POST localhost:4200/v1/chat/completions. See it appear in Observe.

3

Set Cost Caps

Enable the costcap module. Set daily and monthly limits. Get alerted before overspending.

4

Team Setup

Invite team members with roles (admin, developer, viewer, auditor). Track per-member spend.

5

Billing Engine

Create billing customers, assign plans, track usage per customer. Generate invoices.

6

Smart Routing

Create routing rules to send short prompts to cheaper models. Calculate savings.

7

Prompt Firewall

Enable the firewall module. 500+ attack patterns block injection and jailbreak attempts.

8

CLI Tool

Install sy. Run sy status, sy traces --follow, sy modules list.

9

Terraform Provider

Manage modules, providers, and alerts as code with the Stockyard Terraform provider.

10

Agent Runtime

Build multi-step LLM workflows in Forge with cost budgets, checkpoints, and kill switches.

Integration Recipes

See the Cookbook for recipes covering LangChain, CrewAI, AutoGen, Vercel AI SDK, and Mastra.