Use the Bread SDK for programmatic control over the baking process. Available in Python and TypeScript. Perfect for automation, integration, and advanced use cases.Documentation Index
Fetch the complete documentation index at: https://docs.bread.com.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prefer a git-based workflow? Check out bgit Quickstart for a git-native interface.
Installation
Authentication
Set your API key as an environment variable:.env file (see Authentication for details).
Your First Bake
Method Signatures: In Python,
repo_name must be passed as a keyword argument (e.g., repo_name="my_repo"). In TypeScript, it goes in the options object. This ensures API clarity and consistency across all run() methods (stim.run(), rollout.run(), bakes.run()).Automatic Polling: By default, run() methods automatically poll for completion (poll=True). Manual polling loops are no longer needed unless you explicitly set poll=False.Next Steps
Understanding Baking
Learn how prompt baking works
Single Prompt Bake
Step-by-step guide
Configuration
Configure generators, targets, and bakes
API Reference
Complete API documentation