Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenCode error

OpenCode: Unable to connect. Is the computer able to access the url?

Error message
Unable to connect. Is the computer able to access the url?

Status: WorkaroundLast verified 3 documented fixes6 sources

What it means

A network request made by OpenCode failed to connect. Reports include the Ollama provider (#5344) and offline or intranet installs (#9788, #12083).

Causes

  • The provider endpoint is unreachable from the machine running OpenCode (Ollama report, #5344).
  • Offline or intranet environments with no outbound access (#9788, #12083).

How to fix it

  1. Fix 1.

    Check the provider config OpenCode actually resolved, then refresh the models cache (maintainer, #5344).

    Terminal
    opencode debug config
    opencode models --refresh
  2. Fix 2.

    Behind a proxy, set HTTPS_PROXY and bypass the proxy for the local server. The docs say this bypass is required because the TUI talks to a local HTTP server. Trust custom CAs with NODE_EXTRA_CA_CERTS.

    Terminal
    export HTTPS_PROXY=https://proxy.example.com:8080
    export NO_PROXY=localhost,127.0.0.1
    export NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem
  3. Fix 3.

    For offline environments, v1.1.30 made the models.dev domain configurable (PR #9258). Use the documented OPENCODE_MODELS_URL or OPENCODE_DISABLE_MODELS_FETCH.

    Terminal
    export OPENCODE_DISABLE_MODELS_FETCH=true

More OpenCode errors

All 17 OpenCode errors

FAQ

What does "Unable to connect. Is the computer able to access the url?" mean in OpenCode?

A network request made by OpenCode failed to connect. Reports include the Ollama provider (#5344) and offline or intranet installs (#9788, #12083).

How do I fix "Unable to connect. Is the computer able to access the url?"?

There are 3 documented fixes. Start with the first: Check the provider config OpenCode actually resolved, then refresh the models cache (maintainer, #5344).

Is this OpenCode error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it. Affected versions: Reported 1.0.143 through 1.1.x (Dec 2025 to Feb 2026).

Sources

Last verified against 6 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.