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
Cloudflare Workers AI models not appearing in interactive interface #2223
Title: Cloudflare Workers AI models not appearing in interactive interface
Description:
When configuring Cloudflare Workers AI models in opencode.json, they appear when running 'opencode models' but don't show up as selectable options in the interactive interface.
Steps to reproduce:
Configure Cloudflare Workers AI in opencode.json with custom provider name
Run 'opencode models' - models appear in list
Run 'opencode' - models don't appear in interactive interface
Try using models via command line - works fine
Try selecting in interface - models not available
Expected behavior:
Cloudflare Workers AI models should be selectable in the interactive interface.
Actual behavior:
Models only work via command line, not visible in interface.
Environment:
opencode version: 0.5.15
OS: Linux
Provider: Cloudflare Workers AI
Workaround:
Use 'openai' provider instead of custom provider name:
Impact:
This affects user experience by making Cloudflare Workers AI models only accessible via command line, not through the interactive interface that most users prefer.
The model on Workers AI
We’re landing these new models with a few tweaks: supporting the new Responses API format as well as the historical Chat Completions API format (coming soon). The Responses API format is recommended by OpenAI to interact with their models, and we’re excited to support that on Workers AI.
If you call the model through:
Workers Binding, it will accept/return Responses API – env.AI.run(“@cf/openai/gpt-oss-120b”)
Activity
security-labz-admin commentedon Aug 24, 2025
For reference:
https://developers.cloudflare.com/workers-ai/
https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/
https://developers.cloudflare.com/workers-ai/models/
https://developers.cloudflare.com/workers-ai/models/gpt-oss-120b/
https://blog.cloudflare.com/openai-gpt-oss-on-workers-ai/
https://openai.com/index/gpt-oss-model-card/
The model on Workers AI
We’re landing these new models with a few tweaks: supporting the new Responses API format as well as the historical Chat Completions API format (coming soon). The Responses API format is recommended by OpenAI to interact with their models, and we’re excited to support that on Workers AI.
If you call the model through:
Workers Binding, it will accept/return Responses API – env.AI.run(“@cf/openai/gpt-oss-120b”)
REST API on /run endpoint, it will accept/return Responses API – https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/run/@cf/openai/gpt-oss-120b
REST API on new /responses endpoint, it will accept/return Responses API – https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/responses
REST API for OpenAI Compatible endpoint, it will return Chat Completions (coming soon)– https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/chat/completions
curl https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/responses
-H "Content-Type: application/json"
-H "Authorization: Bearer $CLOUDFLARE_API_KEY"
-d '{
"model": "@cf/openai/gpt-oss-120b",
"reasoning": {"effort": "medium"},
"input": [
{
"role": "user",
"content": "What are the benefits of open-source models?"
}
]
}'
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!