Environment variables
| Variable | Required by | Description |
|---|---|---|
LORACLE_API_KEY | CLI, MCP | Your Loracle API key. Must start with sk_live_. Get it from Project Settings > API Keys in the dashboard. |
Configuration files
opencode.json
Location: project root Standard OpenCode configuration file. The Storybook addon reads this for model and provider settings.opencode.json
.storybook/opencode.json
Location:.storybook/
Addon-specific override for provider and model. Takes precedence over the root opencode.json for the Storybook addon.
.storybook/opencode.json
| Field | Description |
|---|---|
provider | AI provider. anthropic or openai. |
model | Model identifier (e.g. claude-sonnet-4-6, gpt-4o). |
.storybook/AGENTS.md
Location:.storybook/
Markdown file injected as system instructions into every AI prompt sent by the addon. Use it to define component guidelines, import patterns, and coding conventions.
.storybook/AGENTS.md