Skip to content

[FEATURE]:Run opencode in private net #8814

Closed

Description

@Moler1995

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I encountered an error when using opencode on a private network.It seems that opencode is trying to load resources from external networks during startup.
{
"name": "UnkownError",
"data": {
"message": "Error: The socket connection was closed unexpectedly. For more information, pass verbose:true in the second argument to fetch()"
}
}
Can make opencode run independently in a private network? With specific externel LLM API ports forward through proxy like nginx, preveventing opencode from communicating with other exeternal networks during startup.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 16, 2026
  2. 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.

  3. lzy19990121-tech commented on Jan 16, 2026

    @lzy19990121-tech

    I've met this problem too. Opencode is requiring model list from https://models.dev, which is not reachable in private network.

  4. 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

  5. Moler1995 commented on Jan 22, 2026

    @Moler1995
    Author

    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

    Great,I'll try it.

  6. navieSimple commented on Mar 6, 2026

    @navieSimple

    mark

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions