GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Suppport for airgapped installation · Issue #2224 · anomalyco/opencode

Suppport for airgapped installation #2224

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Suppport for airgapped installation#2224
Copy link
Assignees
thdxr

Description

@mahabal-org-ind
mahabal-org-ind
opened on Aug 24, 2025
Issue body actions

I want to run opencode in kubernetes in an airgapped environment, which only has access to my model endpoint. I installed opencode in my docker image using

RUN curl -fsSL https://opencode.ai/install | bash

But when I try to run opencode in my pod after deployment, I get the following error:

> OPENCODE_CONFIG=claude.jsonc opencode run "what is 2+2"

INFO  2025-08-24T16:33:14 +0ms service=plugin [email protected] loading plugin
INFO  2025-08-24T16:33:14 +1ms service=bun pkg=opencode-copilot-auth version=0.0.2 installing package using Bun's default registry resolution
INFO  2025-08-24T16:33:14 +0ms service=bun cmd=["/root/.opencode/bin/opencode","add","--force","--exact","--cwd","/root/.cache/opencode","[email protected]"] cwd=/root/.cache/opencode running
INFO  2025-08-24T16:33:14 +26ms service=bun code=1 stdout=bun add v1.2.19 (aad3abea)
 stderr=Resolving dependencies
Resolved, downloaded and extracted [6]
error: ConnectionRefused downloading package manifest opencode-copilot-auth
 done
ERROR 2025-08-24T16:33:14 +6ms service=default pkg=opencode-copilot-auth version=0.0.2 name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 fatal

I would love it if there was a config or environment variable which would prevent network access of any kind, except the model API call. Thanks.

Reacted by James Trew, Martin Honermeyer, rhd, AyRick, Mark Van de Vyver, Rom888, Chakib Benziane, Luigi Maselli, vgaisset, valgai and 38 more
Reacted by Haruka Hino, Zhuiguang Liu, Andrew Pitt, Galdin Raphael and IgnacioBelmonte

Activity

Next
  1. github-actions commented on Aug 24, 2025

    @github-actions
    github-actionsBot
    on Aug 24, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Config option for disabling autofetch of lsp servers #1962: Config option for disabling autofetch of lsp servers - addresses similar concerns about preventing network access for downloading remote binaries in environments where network access should be restricted

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

    Reacted by Haruka Hino and apollo
  2. rekram1-node commented on Aug 24, 2025

    @rekram1-node
    rekram1-node
    on Aug 24, 2025
    Member
    More actions

    yeah we should do some environment var for sure

  3. rekram1-node
    assigned
    thdxr
    on Aug 24, 2025
  4. jamestrew commented on Aug 26, 2025

    @jamestrew
    jamestrew
    on Aug 26, 2025
    More actions

    I got a very similar error message and started digging through the code and found these.

    OPENCODE_DISABLE_DEFAULT_PLUGINS=true
    OPENCODE_DISABLE_LSP_DOWNLOAD=true
    

    But you still get stuck with opencode trying to install provider sdks.
    Would love to see a workaround for this.

    Reacted by phate1994
    Reacted by Haruka Hino
  5. rekram1-node commented on Aug 26, 2025

    @rekram1-node
    rekram1-node
    on Aug 26, 2025
    Member
    More actions

    it is a little more complicated than just a var depending on the models you use since we don't ship all sdks out of the box

  6. Ninja3047 commented on Aug 26, 2025

    @Ninja3047
    Ninja3047
    on Aug 26, 2025
    Contributor
    More actions

    I think for offline use, it would make sense to just include the open ai compatible sdk by default.

    Reacted by James Trew, Josef Wells, Josh Sullivan, codeshokunin, Mark Van de Vyver, Erwan RIVOAL, Victor, Luigi Maselli, longda668, miyazaki and 5 more
    Reacted by Haruka Hino
  7. ad-ops commented on Sep 4, 2025

    @ad-ops
    ad-ops
    on Sep 4, 2025
    More actions

    I managed to get it working by downloading the dependencies during docker build, but I was not able to recreate it in current versions.

    Perhaps an interim solution could be having a flag that prevents the download like the LSPs as it would allow us to build the image or otherwise download the packages separately from running.

    But I agree it would be nice if you could get a standalone airgapped version with all dependencies included.

    Reacted by Janko Gasic and ppaslan
    Reacted by Haruka Hino
  8. jamestrew commented on Sep 4, 2025

    @jamestrew
    jamestrew
    on Sep 4, 2025
    More actions

    But I agree it would be nice if you could get a standalone airgapped version with all dependencies included.

    I can live without having all (LSP, copilot/anthropic auth) dependencies.
    But the lack of provider SDKs being included is legitimately a blocker keeping me from using opencode in certain environments. A shame since I do enjoy using it where I can.

    @rekram1-node do you know if there's interest in potential baking in SDKs from the maintainer?

    Reacted by Josh Sullivan and Paul
    Reacted by Haruka Hino
  9. rekram1-node commented on Sep 4, 2025

    @rekram1-node
    rekram1-node
    on Sep 4, 2025
    Member
    More actions

    I will ask

  10. rekram1-node commented on Sep 4, 2025

    @rekram1-node
    rekram1-node
    on Sep 4, 2025
    Member
    More actions

    @jamestrew which providers do you need? you could install the providers yourself and then install opencode, but perhaps all providers should be bundled out of box

  11. r4ravi2008 commented on Sep 30, 2025

    @r4ravi2008
    r4ravi2008
    on Sep 30, 2025
    More actions

    I managed to get it working by downloading the dependencies during docker build, but I was not able to recreate it in current versions.

    Perhaps an interim solution could be having a flag that prevents the download like the LSPs as it would allow us to build the image or otherwise download the packages separately from running.

    But I agree it would be nice if you could get a standalone airgapped version with all dependencies included.

    Trying to do this as well - any pointers?

  12. jpsullivan commented on Oct 6, 2025

    @jpsullivan
    jpsullivan
    on Oct 6, 2025
    More actions

    @rekram1-node I think bundling "@ai-sdk/openai-compatible" into builds would make a lot of sense for an offline-only kind of mode, mostly since in that kind of capacity you're only going to be hitting models that are being served locally.

    Reacted by Haruka Hino and Chris Kuethe
  13. rekram1-node commented on Oct 6, 2025

    @rekram1-node
    rekram1-node
    on Oct 6, 2025
    Member
    More actions

    @jpsullivan yeah I mentioned this to dax, we may just bundle all the providers because only a few are really used:

    • google
    • anthropic
    • openai
    • openai compatible (most fall under this category)

    that accounts for 99% of usage

    Reacted by Josef Wells, AyRick, codeshokunin, Benjamin Bartels, Haruka Hino and Chris Kuethe
    Reacted by Josh Sullivan
  14. jpsullivan commented on Oct 6, 2025

    @jpsullivan
    jpsullivan
    on Oct 6, 2025
    More actions

    That would be perfect!

  15. dnollshai commented on Oct 23, 2025

    @dnollshai
    dnollshai
    on Oct 23, 2025
    More actions

    To be clear... other than trying to download these provider models is it possible to run fully locally? I'm trying to make sure no telemetry will not be sent upstream if I'm running a local model.

    Reacted by Haruka Hino
  16. 2 remaining items

  17. rekram1-node commented on Nov 20, 2025

    @rekram1-node
    rekram1-node
    on Nov 20, 2025
    Member
    More actions

    gonna start bundling in the providers by default in next release or two

    Reacted by Erwan RIVOAL
    Reacted by Lucas Perin, Christopher Sacca, James Trew, Jay and Josh Sullivan
  18. lucasperin commented on Nov 20, 2025

    @lucasperin
    lucasperin
    on Nov 20, 2025
    More actions

    Another comment if I may, opencode also gets stuck for quite some time trying to fetch models.dev.
    Perhaps also add a way to skip this?

    I am trying to set the provider list in the json config to empty for opencode, anthropic and openai. Not sure how to disable the models.dev yet.

  19. taqtiqa-mark commented on Nov 21, 2025

    @taqtiqa-mark
    taqtiqa-mark
    on Nov 21, 2025
    More actions

    I believe this behavior needs to be removed:

    https://github.com/sst/opencode/blob/598d6d00e41d39767d46359b4238286f360ddc6c/packages/opencode/test/bun.test.ts#L42

    Reacted by Haruka Hino
  20. azhow
    marked Running in semi-isolated environment #5964 as a duplicate of this issue on Dec 22, 2025
  21. bbartels commented on Jan 9, 2026

    @bbartels
    bbartels
    on Jan 9, 2026
    Contributor
    More actions

    gonna start bundling in the providers by default in next release or two

    We'd love to use opencode for our airgapped company setup to have an alternative to claude. Any update on bundling? @thdxr @rekram1-node

    Reacted by iofq, James Trew, liujinkitty666-source, valgai, Angelo Simone Scotto, Erwan RIVOAL, Alex Gorbatchev, Ruben Fonseca, Jonathan Swanson, Samuel Ainsworth and 8 more
  22. navieSimple commented on Mar 6, 2026

    @navieSimple
    navieSimple
    on Mar 6, 2026
    More actions

    mark

  23. Deftera186 commented on Mar 8, 2026

    @Deftera186
    Deftera186
    on Mar 8, 2026
    More actions

    Bump. Seems like there's already PRs that solve this issue

    Reacted by Andrey Andreev
  24. xpat07
    marked [FEATURE]: Full air-gapped / offline mode support – disable all non-LLM network access #16117 as a duplicate of this issue on Mar 9, 2026
  25. practicusai commented on Mar 16, 2026

    @practicusai
    practicusai
    on Mar 16, 2026
    More actions

    Bump. This is preventing us to roll-out OpenCode.

    Reacted by Haruka Hino, tz1112, olekyd, Tobias Rosenkranz, noelo, Minimasoft, Glenn Vlekke, Zhuiguang Liu, stelloprint, Enrique Corpa Rios and 5 more
  26. github-actions commented on May 16, 2026

    @github-actions
    github-actionsBot
    on May 16, 2026 – with GitHub Actions
    Contributor
    More actions

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

    Reacted by Erwan RIVOAL, Nikita Karamov, Marketos Damigos, Lifepillar, zbendefy, Michael Patrick, Brutesque, Practicus AI, Scott Baxter, IgnacioBelmonte and 1 more
  27. github-actions
    closed this as not plannedon May 16, 2026
  28. brutesque commented on Aug 10, 2026

    @brutesque
    brutesque
    on Aug 10, 2026
    More actions

    Not planned? Ridiculous! Air-gapping is an important safety measure.

    Reacted by Practicus AI, Scott Baxter, Erwan RIVOAL, Théo Ryffel, Eugene Siemann, ppaslan, Freeman, John Rising and Grant Zhang
  29. brutesque commented on Aug 10, 2026

    @brutesque
    brutesque
    on Aug 10, 2026
    More actions

    Imagine not focussing on airgapping agents, while companies are getting attacked by sandbox escaping harnesses.

    Reacted by Practicus AI, Erwan RIVOAL, Théo Ryffel, Eugene Siemann, ppaslan, Skye and Freeman
  30. PJ-Zetier
    added 2 commits that reference this issue on Oct 21, 2026

    fix: bound startup-path network waits for offline hosts

    aede901

    fix: do not gate TUI/server readiness on plugin installs

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

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.