Skip to content

[Bug]: OpenCode Go grok-4.5 returns HTTP 503 while deepseek-v4-flash works #40886

Closed as not planned

Description

@haoming-yang

Description

OpenCode Go consistently returns HTTP 503 when calling grok-4.5 through the officially documented Chat Completions endpoint.

  • Endpoint: https://opencode.ai/zen/go/v1/chat/completions
  • Model: grok-4.5
  • Temperature: 1
  • Top-p: 0.95
  • Streaming: enabled

Actual response:

HTTP 503

{"error":{"type":"server_error","message":"Upstream request failed: Endpoint is unavailable."}}

Response details:

  • Time: August 6, 2026, 15:40 UTC
  • CF-Ray: a26f233459ab3f1e-MIA
  • CF placement: remote-ORD

The issue was reproduced with both Cherry Studio using its OpenAI-compatible client and Claude Code 2.1.223 through CC Switch.

As a control test, deepseek-v4-flash works with the same OpenCode Go subscription, API key, base URL, and Chat Completions format while grok-4.5 continues to return HTTP 503.

This appears to be model-specific rather than a complete OpenCode Go outage. It may be related to #36889 and #37815, but differs because another OpenCode Go model remains available at the same time.

Plugins

None. The OpenCode Go API was tested through external OpenAI-compatible clients.

OpenCode version

N/A — the OpenCode Go API endpoint was tested directly. Secondary reproduction used Claude Code 2.1.223.

Steps to reproduce

  1. Configure an OpenAI-compatible client with an active OpenCode Go API key.
  2. Send a simple message such as Hello to https://opencode.ai/zen/go/v1/chat/completions using model grok-4.5.
  3. Observe HTTP 503: Upstream request failed: Endpoint is unavailable.
  4. Change only the model to deepseek-v4-flash, keeping the same API key, endpoint, and API format.
  5. Observe that deepseek-v4-flash responds successfully.

Screenshot and/or share link

The complete HTTP response and relevant Cloudflare request identifiers are included in the Description above.

Image

Operating System

Windows 11

Terminal

Windows Terminal with PowerShell

Activity

  1. Teakowa commented on Aug 7, 2026

    @Teakowa

    Same here

    Grok CLI 0.2.120 cannot use an OpenCode Go grok.

    Config:
    [model.opencode-go-grok]
    model = "grok-4.5"
    base_url = "https://opencode.ai/zen/go/v1"
    api_backend = "chat_completions"
    env_key = "OPENCODE_GO_API_KEY"

    Command:
    grok -p "just say OK" -m opencode-go-grok

    Result:
    401 after retries, or:
    503 Endpoint is unavailable.

  2. Yash456k commented on Aug 11, 2026

    @Yash456k

    Same issue, Grok seems to use the v1/responses endpoint , which gave gave a status 200 and worked. However on the normal v1/completions endpoint it gives 503.

  3. jpgomezv commented on Aug 15, 2026

    @jpgomezv

    Also affected on opencode 1.18.18 (Windows 11). Same error via the gateway, surfacing as UnknownError: Unexpected server error (refs err_f119cb82, err_c60d0b91, err_98cf848a). Subscribing to follow.

  4. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions