You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add OpenAI Responses API support #804
Thank you for providing an OpenAI-compatible Provider API. The current API documentation lists support for:
/v1/chat/completions
/v1/messages
Could you consider adding support for the OpenAI Responses API, for example:
POST https://api.commandcode.ai/provider/v1/responses
Responses API support would allow Command Code models to work with current OpenAI SDK clients and agent frameworks that use client.responses.create(), rather than the older Chat Completions interface.
Ideally, the endpoint could support the standard Responses API fields and behavior, including:
input
instructions
tools
stream
previous_response_id
structured response output
The existing Chat Completions endpoint could remain available for backward compatibility.
This would make the Provider API compatible with a broader range of current OpenAI SDKs and agent tools. Thank you for considering it.
Responses API support would let Command Code drop straight into OpenAI SDK / Codex-style clients using client.responses.create() — including previous_response_id, structured output, and streamed tool calls. Related issues #738 (reasoning_summary_part) and #745 (Codex tool_search) show this wire format already trips things up for BYOK providers; fixing /provider/v1/responses properly would likely clear a cluster of them at once.
If a preview/beta endpoint is available, I'm happy to dogfood it and report back with detailed stream traces. Could you add a milestone or share a rough ETA so we can plan around it? Thanks!
Filed the same request through the official feature-request template per Discord guidance: #832. Linking the two so they can be tracked (or merged) together — happy to close either as duplicate if that's cleaner.
+1, with hard evidence that this is now the only path to Codex support — not a convenience.
Codex has removed the Chat Completions wire protocol outright. On codex-cli 0.154.0-alpha.6.2, setting a provider to the Chat wire API fails at config load:
Error loading config.toml: `wire_api = "chat"` is no longer supported.
How to fix: set `wire_api = "responses"` in your provider config.
More info: https://github.com/openai/codex/discussions/7782
So current Codex can only speak Responses (openai/codex#31083 is an open request to re-add Chat support).
Since POST /provider/v1/responses returns 404 ("... is not a registered API route"), every Codex + Command Code setup today requires a local Responses→Chat translation proxy.
That translation layer is where the interop bugs concentrate. #795 (messages.N.content on image-bearing tool outputs) and #745 (tool_search invocations) are both Responses-vs-Chat wire-format gaps that a native implementation would have to handle directly, instead of every client shim reimplementing them by hand.
A native /provider/v1/responses would let Codex point straight at https://api.commandcode.ai/provider/v1 with zero translation and remove that whole class of bugs at once.
Happy to dogfood a preview endpoint and send detailed stream traces.
Follow-up now that Responses is live: /v1/responses rejects any non-function entry in tools and returns 400 before the model runs, so Codex (which always sends a mixed tool array) still can't use the endpoint. Filed as #885 with the exact error body and param: tools.8.type.
Repro summary: point any client at https://api.commandcode.ai/provider/v1 with wire_api = "responses" and send a request whose tools array contains anything other than type: "function". Expected behavior is to accept the declaration and skip executing the unsupported built-in tool, not to fail the whole request.
Activity
EvenZ2001 commentedon Sep 6, 2026
nobody reply?
ahmadbilaldev commentedon Sep 7, 2026
@EvenZ2001 It has only been two days since you posted, none of which are weekdays. Some patience here will be appreciated.
Responses API support is in our roadmap, I'll update when it is shipped. Thanks for the feature req.
Liang-Psych commentedon Sep 10, 2026
Hi team — another +1 for this.
Responses API support would let Command Code drop straight into OpenAI SDK / Codex-style clients using
client.responses.create()— includingprevious_response_id, structured output, and streamed tool calls. Related issues #738 (reasoning_summary_part) and #745 (Codex tool_search) show this wire format already trips things up for BYOK providers; fixing/provider/v1/responsesproperly would likely clear a cluster of them at once.If a preview/beta endpoint is available, I'm happy to dogfood it and report back with detailed stream traces. Could you add a milestone or share a rough ETA so we can plan around it? Thanks!
Liang-Psych commentedon Sep 10, 2026
Filed the same request through the official feature-request template per Discord guidance: #832. Linking the two so they can be tracked (or merged) together — happy to close either as duplicate if that's cleaner.
Jovan1666 commentedon Sep 13, 2026
+1, with hard evidence that this is now the only path to Codex support — not a convenience.
Codex has removed the Chat Completions wire protocol outright. On
codex-cli 0.154.0-alpha.6.2, setting a provider to the Chat wire API fails at config load:So current Codex can only speak Responses (openai/codex#31083 is an open request to re-add Chat support).
Since
POST /provider/v1/responsesreturns 404 ("... is not a registered API route"), every Codex + Command Code setup today requires a local Responses→Chat translation proxy.That translation layer is where the interop bugs concentrate. #795 (
messages.N.contenton image-bearing tool outputs) and #745 (tool_searchinvocations) are both Responses-vs-Chat wire-format gaps that a native implementation would have to handle directly, instead of every client shim reimplementing them by hand.A native
/provider/v1/responseswould let Codex point straight athttps://api.commandcode.ai/provider/v1with zero translation and remove that whole class of bugs at once.Happy to dogfood a preview endpoint and send detailed stream traces.
ahmadbilaldev commentedon Sep 17, 2026
Responses support is live. Most open models and openai models are now available on the responses endpoint. More info in docs.
EvenZ2001 commentedon Sep 18, 2026
Follow-up now that Responses is live:
/v1/responsesrejects any non-functionentry intoolsand returns 400 before the model runs, so Codex (which always sends a mixed tool array) still can't use the endpoint. Filed as #885 with the exact error body andparam: tools.8.type.Repro summary: point any client at
https://api.commandcode.ai/provider/v1withwire_api = "responses"and send a request whosetoolsarray contains anything other thantype: "function". Expected behavior is to accept the declaration and skip executing the unsupported built-in tool, not to fail the whole request.