Repository navigation
Labels
opencodeOpenCode providerprovider-acpBuilt-in plugin: provider-acpprovidersCross-provider bridges, models, login
Description
Problem
Users cannot tell how BB maps OpenCode models and agents into its execution controls.
BB already discovers ACP session models and applies a selected model with session/set_model. OpenCode custom models should therefore appear under acp-opencode when OpenCode advertises them.
However, several gaps make this flow unclear or incomplete:
- The BB guide does not explain how to select an OpenCode custom model.
- The guide does not explain the difference between an OpenCode model and an OpenCode agent.
- BB parses ACP config options, but it only uses
modelandthought_level. - BB ignores the ACP
modeoption, which can represent OpenCode agents. - The
customModelsfallback only accepts static provider IDs. - That fallback rejects
acp-opencodeand other dynamic ACP provider IDs.
A user with a custom primary agent, such as an orchestrator, can mistake it for a model. BB gives no useful path for that case.
Current code
packages/agent-runtime/src/acp/bridge/model-catalog.tsmaps ACP model options.packages/agent-runtime/src/acp/bridge/bridge.tsapplies ACP model changes.packages/config/src/bb-app-managed-config.tslimitscustomModels.providerIdto the static provider enum.packages/templates/src/templates/bb-guide-providers.mddocuments ACP providers, but not this selection flow.
Proposed result
BB should give users one clear OpenCode selection flow.
- Show all custom models that OpenCode advertises.
- Let users select a custom OpenCode primary agent when ACP exposes it as a mode.
- Explain that models and agents are different selections.
- Add a supported fallback for a custom model that an ACP agent does not advertise.
- Make the CLI guide show the exact discovery commands.
Example:
bb provider models acp-opencode --environment "$BB_ENVIRONMENT_ID"
bb thread spawn --provider acp-opencode --model <provider/model>Acceptance criteria
- A custom OpenCode model appears in the BB model picker.
- The same model appears in
bb provider models acp-opencode. - A selected model reaches OpenCode before the first prompt.
- A custom OpenCode primary agent can be selected when ACP advertises it.
- The guide explains models, agents, discovery, and fallback behavior.
- Tests cover custom models, ACP mode selection, and dynamic ACP provider IDs.
Related issues
Issue #365 covers model-list failure recovery. This issue covers discovery and selection.
Issue #1086 covers Pi extension models. This issue covers OpenCode and generic ACP controls.
Metadata
Metadata
Assignees
Labels
opencodeOpenCode providerprovider-acpBuilt-in plugin: provider-acpprovidersCross-provider bridges, models, login
Activity
iamhenry commentedon Aug 9, 2026
any insight on what the priority for this feature is?
SawyerHood commentedon Aug 9, 2026
it is medium priority right now!
next week i'm going to round up all of the ACP / Pi / Opencode bugs and try to tackle them
iamhenry commentedon Aug 9, 2026
Great thx looking forward to it! I'm hoping that ACP stuff also include the session context window usage. 🙏🏽
Accept dynamic ACP provider ids in customModels and document the flow
Accept dynamic ACP provider ids in customModels and document the sele…
Accept dynamic ACP provider ids in customModels and document the sele…
iamhenry commentedon Aug 21, 2026
any update on this? would love to have custom agent support for opencode
iamhenry commentedon Sep 23, 2026
Gentle bump @SawyerHood
Add an opt-in rebuilt ACP adapter, agent options in the model picker,…