Skip to content

Cannot use opencode in private network #8830

Closed

Description

@lzy19990121-tech

Question

When i use opencode in private network,
{
"name": "UnknownError",
"data": {
"message": "Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()"
}
}

opencode is requiring modle list from https://models.dev/, which is not reachable in praivate network.
Is there any way to solve this problem?

Activity

  1. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. OneOfLzx commented on Jan 22, 2026

    @OneOfLzx

    If you’re on a private network, I’d use OpenCode Sentinel — it cuts all network access except to your LLM, so it works flawlessly in network-restricted environments 👍👍

    Repo: https://github.com/oneoflzx/opencode-sentinel

  3. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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