Skip to content

[Feature proposal] WorkBuddy AI subscription and credit balance #7603

Closed

Description

@terrytan95

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-ai browser 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-ai

Complete 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

Screenshots

The actual WorkBuddy AI quota component and official icon, rendered with synthetic example data. No account identifiers or private usage are included.

WorkBuddy AI credit balance and official icon — synthetic example

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

  1. Ingwannu commented on Oct 23, 2026

    @Ingwannu
    Owner

    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.ts boundary 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.

  2. added
    enhancement
    account-pool
    catalog
    provider
    tools
    on Oct 23, 2026
  3. lidge-jun commented on Oct 23, 2026

    @lidge-jun
    Owner

    Fixed by #7604 (merged to dev).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolcatalogenhancementprovidertools

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions