Skip to content

[Provider] Add Modelsell as a built-in OpenAI-compatible provider #561

Closed as not planned

Description

@modelsell

Area

Provider adapters, dashboard, CLI, and documentation.

What are you trying to accomplish?

Make Modelsell available as a built-in provider so OpenCodex users can select it from ocx init or the dashboard, paste a Modelsell API key, discover the models available to that key, and route Codex or Claude Code requests through modelsell/<model-id>.

Modelsell is a unified AI API gateway for OpenAI, Anthropic, Gemini, DeepSeek, Kimi, GLM, MiniMax, Grok, and other model families.

What prevents this today?

Modelsell is not in the canonical provider registry. Users must choose the custom-provider flow and manually enter the adapter and endpoint, so the dashboard cannot link directly to the Modelsell token console or identify the provider as a known preset.

I searched the existing provider and compatibility issues and found no Modelsell request.

What should OpenCodex do?

Expose a modelsell API-key preset with:

  • Adapter: openai-chat
  • Base URL: https://modelsell.com/v1
  • API key page: https://modelsell.com/console/token
  • Live model discovery through GET /v1/models
  • OpenAI-compatible chat, streaming, multimodal input, and tool-call translation through the existing adapter

The provider should be derived from the canonical registry so it appears consistently in ocx init, the dashboard catalog, key validation, and routing.

Example usage or interface

ocx provider add modelsell --api-key '${MODELSELL_API_KEY}' --set-default --sync
codex -m 'modelsell/gpt-5.4-mini' 'Review this change'

Equivalent config:

{
  "defaultProvider": "modelsell",
  "providers": {
    "modelsell": {
      "adapter": "openai-chat",
      "baseUrl": "https://modelsell.com/v1",
      "authMode": "key",
      "apiKey": "${MODELSELL_API_KEY}",
      "liveModels": true
    }
  }
}

Alternatives or workarounds

Use a custom OpenAI-compatible provider with the same base URL. This works as a protocol-level workaround but omits the built-in provider identity and direct token-console link.

Additional context

  • Product: https://modelsell.com
  • API reference: https://modelsell.com/docs/api-reference
  • API key management: https://modelsell.com/console/token
  • Public unauthenticated requests to GET /v1/models and POST /v1/chat/completions currently reach the API and return the expected structured 401 Invalid token response, confirming the routes and authentication boundary without exposing credentials.
  • A focused implementation and regression test are being prepared against the required dev branch.

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. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: unknown.

  2. Ingwannu commented on Jul 28, 2026

    @Ingwannu
    Owner

    Thanks — I confirmed that modelsell is not present in the current canonical registry and that the custom OpenAI-compatible provider flow is the existing workaround. This is therefore a provider-preset enhancement rather than a protocol bug.

    PR #562 is the correct implementation thread and already targets dev, but it is still a draft; this comment is not approval to merge the provider yet. Before marking it ready, please make the review surface explicit and fixture-backed: registry/CLI/dashboard parity, API-key validation and model discovery behavior, bounded/filtered model-list handling, provider-id migration safety, representative streaming/tool-call/error propagation coverage, and documentation that does not claim capabilities beyond the upstream contract.

    Please also keep live network probes out of CI and document who will maintain the preset if the endpoint or catalog contract changes. I am assigning the issue to you and will keep the implementation review on #562 once it is ready.

  3. linked a pull request that will close this issue[codex] Add Modelsell provider preset #562on Jul 28, 2026
  4. lidge-jun commented on Jul 29, 2026

    @lidge-jun
    Owner

    Keeping this open — the request itself is reasonable and Modelsell is a real, active service.

    PR #562 is closed as not-ready, not rejected. The blocking gap is evidence for a credential destination rather than code quality: a documented OpenAI-compatible GET /v1/models page, terms of service and operating legal entity, routing/resale authorization for the third-party models in the catalog, a named maintenance owner (already requested above), and a citable verification date. Details are in the closing comment on #562.

    The evidence bar is now written down in CONTRIBUTING and MAINTAINERS.md so it applies to every provider PR uniformly. If the items above are hard to produce right now, an inert free-directory.ts reference row is a reasonable interim home.

  5. added
    toolstool_calls, MCP, web-search / sidecar tools
    providerProvider adapters, OpenAI-compat presets, upstream API quirks
    on Aug 1, 2026
  6. lidge-jun commented on Aug 2, 2026

    @lidge-jun
    Owner

    Triage status: we can consider Modelsell as a built-in preset once the canonical-preset evidence bar is met (see the contributing guide). Please provide: (1) API documentation URL for the OpenAI-compatible endpoints, (2) the operating legal entity and your resale/routing authorization, (3) a verification date, and (4) a named maintenance owner for the preset. Without those we would add, at most, an inert free-directory reference row.

  7. added
    needs-infoWaiting on reporter for a concrete spec or reproduction
    on Aug 3, 2026
  8. added
    staleNo activity on a needs-info issue; will close soon unless updated
    on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds-infoWaiting on reporter for a concrete spec or reproductionproviderProvider adapters, OpenAI-compat presets, upstream API quirksstaleNo activity on a needs-info issue; will close soon unless updatedtoolstool_calls, MCP, web-search / sidecar tools

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions