Repository navigation
Description
Area
Multiple areas
What are you trying to accomplish?
Use an international WorkBuddy AI subscription as an OpenCodex model provider, including its account-specific model catalog, streaming/tool calls, and remaining credit balance in the provider's Overview and Accounts pages.
What prevents this today?
OpenCodex's CodeBuddy providers use the CodeBuddy CLI with API keys; they do not implement the WorkBuddy AI browser subscription flow. A plain OpenAI-compatible endpoint is insufficient because WorkBuddy requires account/tenant headers and a stream-only chat transport. Its credits also cannot be represented as USD or an account-wide exhaustion window: free models may remain available after paid credits run out. The provider currently falls back to an initial-letter icon without a brand mapping.
What should OpenCodex do?
- Add a
workbuddy-aibrowser login using the existing protected OAuth account store and serialized refresh flow. - Discover the signed-in account's models and preserve its identity across requests, refreshes, and account changes.
- Support streamed and buffered clients, tools, and reasoning metadata through the existing Chat adapter contract.
- Display remaining/used/total credits, base and gift balances, optional expiry, and manual refresh. Distinguish zero from unavailable readings without excluding free models.
- Show the official WorkBuddy AI mark in the provider list and details.
Example usage or interface
ocx login workbuddy-aiComplete browser authorization, select a workbuddy-ai/<model-id> model, then open Providers → WorkBuddy AI → Accounts. An illustrative balance of 350 total credits with 25 used should show 325 remaining, with its base and gift breakdown and a Refresh quotas action.
Alternatives or workarounds
Magpie supports this subscription through its WorkBuddy plugin. Switching the entire local proxy to Magpie is unnecessary for an OpenCodex user. Manually providing an access token is also insufficient for durable refresh and account/tenant isolation. The CodeBuddy API-key CLI provider remains a separate workflow.
Additional context
- Official product: https://www.workbuddy.ai/
- Protocol reference: https://github.com/magpie-community/plugins/tree/e7f65641df820dfd715c0d2241f99f2092e4efb1/packages/workbuddy
- Existing issue [Provider compatibility] OpenCode Go DeepSeek V4.1 Flash returns reasoning_content 400 after WorkBuddy tool calls (2.86.0) #7118 concerns WorkBuddy as a downstream client, rather than WorkBuddy AI as a subscription provider.
- A local implementation has been installed and verified on macOS, including account-scoped billing reads, manual refresh, and the icon in both themes. This remains an unofficial subscription protocol; vendor channel/account restrictions must remain visible, not bypassed.
- Authentication and canonical-provider policy evidence require maintainer review before merge.
Screenshots
The actual WorkBuddy AI quota component and official icon, rendered with synthetic example data. No account identifiers or private usage are included.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.

Activity
Ingwannu commentedon Oct 23, 2026
Tracked in Draft #7604. This is a subscription provider proposal, distinct from the downstream WorkBuddy client work in #7118; neither the older client issue nor a successful local login establishes provider-preset acceptance.
Before merge review, please keep the proposal's evidence gaps explicit and attach primary-source vendor endpoint/model-discovery documentation (or explain the unsupported protocol precisely), terms and operating legal entity, subscription/channel authorization for this use, a named ongoing maintenance owner and a citable verification date. The linked Magpie implementation is useful protocol evidence, but does not itself establish vendor authorization. Do not post access/refresh tokens, tenant/account identifiers or private billing responses. No additional live account/inference experiment is requested.
For #7604 specifically, the current file list crosses OAuth/store/credential destinations, credit/account attribution, the owner-only
src/router.tsboundary and GUI behavior. Those require their separate explicit maintainer/owner reviews; the screenshot and author-reported macOS checks do not waive them. The stated 12-commit base gap also needs a dev update and validation of the resulting union before the readiness checklist can be accepted. Keep credit units distinct from USD and account-wide exhaustion, including zero, unavailable and still-available free models. I have completed intake/policy triage only, not a full 85-file implementation or security review. The Draft remains open for those prerequisites; no Codex Security scan, live login, quota spend or runtime configuration change is authorized or performed by this response.lidge-jun commentedon Oct 23, 2026
Fixed by #7604 (merged to dev).