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
In OpenCode Desktop, select any opencode-go/ model (e.g. opencode-go/deepseek-v4-flash)
Send a message
Receive "Bad Gateway" error
Diagnostic findings:
DNS resolves correctly (Cloudflare IPs)
TLS handshake succeeds
Every API endpoint returns the website's SPA 404 HTML page:
GET https://opencode.ai/api/ → 404 HTML
POST https://opencode.ai/api/chat/completions → 404 HTML
POST https://opencode.ai/v1/chat/completions → 404 HTML
GET https://opencode.ai/health → 404 HTML
OpenRouter and Google providers work fine on the same machine
API key (sk-...) is valid and has credits remaining
Issue is not network-related (Tailscale, proxies, etc.) — confirmed via direct curl requests
Expected behavior: API endpoints should return JSON responses and process model requests.
Actual behavior: All API routes return the OpenCode website HTML (SPA), indicating the Go backend service is not running or the reverse proxy is misconfigured.
Activity
liyang960414 commentedon Jul 3, 2026
DeepSeek service is unavailable, GLM is available.
jabin-hao commentedon Jul 3, 2026
erelst commentedon Jul 3, 2026
same here
hkgodhani commentedon Jul 3, 2026
same here and i try to use another model now i have to told it every think till now old model is doing
hkgodhani commentedon Jul 3, 2026
deepseek service is available in free but in go it is not available
ricolandia commentedon Jul 3, 2026
The same here.
OpenCode Go API returning 502 Bad Gateway — all
opencode-go/models brokenVersion: opencode CLI 1.17.9, Desktop 1.16.2
OS: Debian 13 (Trixie)
Steps to reproduce:
opencode-go/model (e.g.opencode-go/deepseek-v4-flash)Diagnostic findings:
DNS resolves correctly (Cloudflare IPs)
TLS handshake succeeds
Every API endpoint returns the website's SPA 404 HTML page:
GET https://opencode.ai/api/→ 404 HTMLPOST https://opencode.ai/api/chat/completions→ 404 HTMLPOST https://opencode.ai/v1/chat/completions→ 404 HTMLGET https://opencode.ai/health→ 404 HTMLOpenRouter and Google providers work fine on the same machine
API key (
sk-...) is valid and has credits remainingIssue is not network-related (Tailscale, proxies, etc.) — confirmed via direct
curlrequestsExpected behavior: API endpoints should return JSON responses and process model requests.
Actual behavior: All API routes return the OpenCode website HTML (SPA), indicating the Go backend service is not running or the reverse proxy is misconfigured.
liyang960414 commentedon Jul 3, 2026
You can try the official DeepSeek API; the time-based pricing hasn't doubled yet.
victor-ovalle commentedon Jul 3, 2026
Yes, it seems that GLM is working fine
github-actions commentedon Sep 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.