Skip to content

[Feature]: Interactive model playground and verification workbench in Hub Dashboard #7288

Closed as not planned

Description

@nordz0r

Area

Dashboard

What are you trying to accomplish?

When configuring, updating, or debugging LLM providers, combos, custom endpoints, and upstream accounts in OpenCodex Hub, operators need an immediate way to verify that a model actually functions as expected before exposing it to client tools like Codex CLI, Claude Code, Cursor, or Aider.

Specifically, operators need an in-browser Playground where they can select any routed model or combo, configure inference parameters (including reasoning effort, system instructions, and tool definitions), send test prompts, and observe real-time streaming output, thinking blocks, tool calls, and execution metrics.

What prevents this today?

Currently, OpenCodex Hub provides catalog viewing on the Models page and connectivity checks via ocx provider test (which only tests provider discovery endpoints, not actual chat completion or response generation).

To verify that an upstream model actually works, handles reasoning effort correctly, or properly triggers tool calling, users must:

  1. Manually configure and launch external CLI or IDE clients (Codex CLI, Claude Code, Cursor) and inspect proxy logs.
  2. Manually construct verbose curl requests to /v1/chat/completions or /v1/responses with authentication tokens and manual JSON schemas.
  3. Guess whether unexpected agent failures stem from client-side misconfiguration or upstream adapter/reasoning/tool-call translation incompatibilities.

There is no interactive testbed in the dashboard to test inference or diagnose formatting issues across different providers.

What should OpenCodex do?

OpenCodex Dashboard should provide a dedicated "Playground" (or "Workbench") view, accessible directly from the navigation sidebar and via a "Test model" action on any model card in the Models/Providers views:

  1. Model & Route Selection:

    • Quick picker for all available catalog models, provider-direct routes, aliased models, and combos.
    • Indicator showing active provider route, context window, and supported modalities (text, vision, tools, reasoning).
  2. Inference & Effort Configuration:

    • Reasoning Effort: Dropdown selector (none, low, medium, high, or model default) for thinking/reasoning models (o1/o3, Sonnet/Opus thinking, DeepSeek-R1, Grok).
    • Parameters: Sliders/inputs for temperature, top_p, max_tokens, and custom system/developer prompt.
    • Multimodal (Vision): Ability to attach images (paste or drag-and-drop) to verify vision adapter support.
  3. Tool Calling (Function Calling) Testbed:

    • Built-in sample tools (e.g., get_weather, execute_command, search_files) plus custom JSON schema input.
    • Interactive tool-call rendering: display structured arguments generated by the model.
    • Multi-turn tool response mocking: allow the operator to supply a mock tool result and trigger the model's follow-up turn.
  4. Live Response & Telemetry Inspection:

    • Streaming SSE output with visual distinction between Thinking/Reasoning blocks and final response markdown.
    • Real-time performance chips: TTFT (Time to First Token), decode speed (tokens/sec), total latency, and token breakdown (prompt / completion / reasoning).
    • Raw inspection tabs: "Rendered View", "Raw Request Payload", and "Raw Stream / Response" (including upstream HTTP status and response headers).

Example usage or interface

In the OpenCodex Dashboard:

  1. Operator navigates to the Playground tab (or clicks Test next to anthropic/claude-3-7-sonnet or combo/auto).
  2. Selects Reasoning Effort: high, enables sample tool execute_command(command: string).
  3. Submits prompt: "List all files in the current folder using the execute_command tool".
  4. The dashboard opens an SSE stream to the proxy backend, displaying:
    • Expandable Thinking Block showing live reasoning text.
    • Formatted Tool Call Block: execute_command({ "command": "ls -la" }).
    • Telemetry badge: TTFT: 480ms | 68 tok/s | Tokens: 42 prompt + 128 reasoning + 24 completion.
  5. Under the "Raw Inspector" tab, the exact JSON sent to /v1/chat/completions and the returned SSE frames can be viewed or copied for reproduction scripts.

Alternatives or workarounds

  • Running curl -s http://localhost:10100/v1/chat/completions -H "Authorization: Bearer $KEY" -d '{"model":"...", "messages":[{"role":"user","content":"hi"}]}' in terminal. This is cumbersome for testing streaming, reasoning blocks, and tool definitions.
  • Connecting third-party web UIs (e.g., OpenWebUI, LibreChat, Chatbox) to OpenCodex proxy. This requires additional deployment, authentication setup, and lacks OpenCodex-specific telemetry (routing route trace, provider account pool attribution).

Additional context

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. added
    enhancement
    gui
    streaming
    tools
    on Oct 17, 2026
  2. Ingwannu commented on Oct 18, 2026

    @Ingwannu
    Owner

    Please start with a bounded design/RFC, keeping this separate from the existing passive compatibility evidence and the explicit single-completion diagnostic delivered under #2834. A playground must make each real request's destination/model, estimated cost/limits and user consent concrete before dispatch; model discovery or opening the page must not issue paid probes. Tool fixtures should stay inert unless execution has its own explicit design, and raw-wire inspection/export needs redaction and bounded retention. A first proposal should choose one request/response path and define cancellation, partial streams, local refusal, upstream errors and result provenance. Batch capability verification, scoring and history can be later slices. Owner UI/design acceptance is still needed.

  3. added
    needs-design
    on Oct 18, 2026
  4. lidge-jun commented on Oct 22, 2026

    @lidge-jun
    Owner

    Thank you for the detailed proposal. We're closing this as not planned: it is outside the current priorities, and keeping it open would suggest work that isn't scheduled. The discussion stays here for reference. If you'd like to pursue it, please reopen this or open a new issue with a narrow, opt-in first slice.

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

    enhancementguineeds-designstreamingtools

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions