Skip to main content

Environment variables

VariableRequired byDescription
LORACLE_API_KEYCLI, MCPYour 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
{
  "model": "anthropic/claude-sonnet-4-6"
}
See the OpenCode documentation for all available options.

.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
{
  "provider": "anthropic",
  "model": "claude-sonnet-4-6"
}
FieldDescription
providerAI provider. anthropic or openai.
modelModel 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
# Component guidelines

- Import components from `@acme/ui`
- Use the `variant` prop for visual styles
- All stories must include a default export with `title` and `component`
Changes to this file take effect on the next prompt — no restart required.