
Handles the AI configuration stage of the Butterbase journey by setting up your AI gateway defaults and optional bring-your-own-key setup. It reads your plan from 02-plan.md, delegates the actual work to the ai skill, then smoke-tests the gateway with a quick chat call to make sure everything responds. Gets skipped entirely if your project doesn't use LLMs or embeddings. The flow is pretty rigid,it wants confirmation before proceeding, ticks boxes in state files, and logs to 04-build-log.md,so it's really meant to be called by the journey orchestrator rather than invoked directly. One nice touch: it won't let you pick a model that isn't in the manage_ai list.
$ npx -y skills add butterbase-ai/butterbase-skills --skill journey-ai --agent claude-codeInstalls into .claude/skills of the current project.
Stage 3f of the guided journey. Configure AI gateway defaults (model, BYOK).
journey when current_stage: ai./butterbase-skills:journey-ai.(n/a)) if the plan has no AI section.If docs/butterbase/03-preflight.md is missing, older than 24 hours, or 00-state.md has app_id: null, invoke butterbase-skills:journey-preflight first. Wait for it to return successfully before proceeding.
docs/butterbase/02-plan.md — the AI section.docs/butterbase/00-state.md — for app_id.Refresh docs. Call butterbase_docs with topic: "ai". For BYOK and model lists, also WebFetch https://docs.butterbase.ai/ai. Skip if cache is fresh.
Read the AI section. Print it back: "About to configure AI: default model=<m>, BYOK=<yes/no>. Proceed?". Wait for yes.
Invoke butterbase-skills:ai via the Skill tool with the AI plan and app_id. The wrapped skill calls manage_ai action: update_config (and per-provider key updates if BYOK).
Smoke: call manage_ai action: chat with a tiny prompt ("say ok") to confirm the gateway responds.
Append one line to docs/butterbase/04-build-log.md:
<ISO timestamp> ai manage_ai ok
Tick - [x] ai in 00-state.md, set current_stage: to the next unchecked stage.
Return to journey orchestrator (or ask "Continue to the next stage? (yes/no)").
04-build-log.md.manage_ai action: list_models — list first.Sponsors