The console delegates every wish to one agent (--shape-agent TOOL:MODEL). With none set, wishes are refused (“no shaping agent is configured on this console”). The route is the user’s choice — their key, their subscription, or a local model — for their own cost, privacy and governance reasons.
- Pick a route the user owns. Any OpenAI-compatible endpoint that supports tool calls works with bashy’s built-in agent (genie). Check it once with a tiny tool-call request before wiring it in. Free tiers may rate-limit or hang under an agent’s load; prefer the user’s own paid key or subscription for real use.
- Register the model and binding (names are the user’s):
bashy model add MY-MODEL --provider openai-compat --kind api --base-url https://ENDPOINT/v1 --api-key-ref VAULT_KEY --upstream PROVIDER_MODEL_IDbashy agent add genie-MY-MODEL --tool genie --model MY-MODEL --permission auto - Bind the credential by reference (never the value): add
VAULT_KEY_API_KEY=@VAULT_KEYto~/.config/bashy/secrets.map. Smoke it:bashy delegate --agent genie:MY-MODEL "Reply with exactly: SMOKE-OK". - Start the console with it.
bashy service show appsprints the console’s argv;bashy service set apps --exec …repeats every element and appends--shape-agent=genie:MY-MODEL; thenbashy service restart apps. Confirm the running console’s command line carries the flag. - The CLI does not use the console’s flag:
bashy shape wish APP "…" --user PRINCIPAL --agent genie:MY-MODEL.
A subscription CLI (claude, codex, opencode, …) is the same step 4 with --shape-agent=TOOL:MODEL once that CLI is installed and signed in on the host. A local model behind bashy llm is an OpenAI-compatible route like any other.