Repository navigation
Description
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:
- Manually configure and launch external CLI or IDE clients (Codex CLI, Claude Code, Cursor) and inspect proxy logs.
- Manually construct verbose
curlrequests to/v1/chat/completionsor/v1/responseswith authentication tokens and manual JSON schemas. - 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:
-
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).
-
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.
- Reasoning Effort: Dropdown selector (
-
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.
- Built-in sample tools (e.g.,
-
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:
- Operator navigates to the Playground tab (or clicks Test next to
anthropic/claude-3-7-sonnetorcombo/auto). - Selects Reasoning Effort:
high, enables sample toolexecute_command(command: string). - Submits prompt:
"List all files in the current folder using the execute_command tool". - 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.
- Under the "Raw Inspector" tab, the exact JSON sent to
/v1/chat/completionsand 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
- Related to existing model connectivity diagnostics ([Feature] Add relay model diagnostics for connectivity, latency, and identity consistency #2834: "Add relay model diagnostics for connectivity, latency, and identity consistency") and decision probes (
POST /api/combos/decision-test). - Fits naturally into the current React + Vite dashboard architecture (
gui/src/pages/) using the existing authenticated management/proxy session.
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 18, 2026
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.
lidge-jun commentedon Oct 22, 2026
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.