#13935·OmniRoute

[BUG] OpenCode free provider returns 403 for all API requests through OmniRoute

Author: stormsiaCreated Sep 17, 2026Updated Sep 17, 2026
Labelsbug

Update

PR #13937 appears to address the issue reported here. The symptoms match: requests to the OpenCode Free provider return 403 FreeTierError.

[!NOTE] Update: The first 12 hexadecimal characters of the session ID are time-ordered data derived from the timestamp and an internal counter. The remaining characters are random.

OpenCode generates session IDs in:

https://github.com/diegosouzapw/OmniRoute/pull/13937

OmniRoute Version

3.8.50

Installation Method

Docker / Docker Compose

Operating System

Windows

OS Version

10

Node.js Version

No response

Provider(s) Involved

OpenCode Free

Model(s) Involved

all

Client Tool

OpenCode app| Omni route Playground| Any api call

Description

All requests to the OpenCode Free provider fail with the same HTTP 403 error, regardless of which OmniRoute client is used.

The issue is reproducible in both of the following scenarios:

  1. OmniRoute Playground → OpenCode Free provider
  2. OpenCode app → OmniRoute using an OmniRoute API key → OpenCode Free provider

The failure is not limited to a specific model. All tested models return the same error.

This indicates that the issue is likely related to the OpenCode Free provider integration or the way OmniRoute authenticates and forwards requests, rather than to the OpenCode app itself.

Steps to Reproduce

  1. Start OmniRoute.
  2. Configure the OpenCode Free provider.
  3. Open OmniRoute Playground.
  4. Send a request using any OpenCode Free model.
  5. Observe the HTTP 403 error.
  6. Configure the OpenCode app to use OmniRoute with an OmniRoute API key.
  7. Send a request using any OpenCode Free model.
  8. Observe the same HTTP 403 error.

Expected Behavior

The request should be accepted and routed successfully through OmniRoute, or OmniRoute should clearly identify that the selected free-tier model cannot be proxied and prevent the request with an actionable configuration message.

Actual Behavior

[Error: [403]: Error from provider (Console): OpenCode's free tier can only be used from within OpenCode] Every API request fails with HTTP 403, regardless of the selected model or client.

Test Impact

Unsure

Error Logs / Output

[Error: [403]: Error from provider (Console): OpenCode's free tier can only be used from within OpenCode]

Screenshots

Additional Context

No response

Validation Plan

No response