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 — Define opencode cache folder as an Environment variable - OPENCODE_CACHE · Issue #2432 · anomalyco/opencode

Define opencode cache folder as an Environment variable - OPENCODE_CACHE #2432

New issue
Copy link
New issue
Copy link
Closed
Closed
Define opencode cache folder as an Environment variable - OPENCODE_CACHE#2432
Copy link
Assignees
thdxr

Description

@kturung
kturung
opened on Sep 5, 2025
Issue body actions

INFO 2025-09-05T09:01:16 +0ms service=bun cmd=["/data1/uxbuild/.npm-global/lib/node_modules/opencode-ai/node_modules/opencode-linux-x64/bin/opencode","add","--force","--exact","--cwd","/home/jenkins/.cache/opencode","[email protected]"] cwd=/home/jenkins/.cache/opencode running

Here $HOME/.cache/opencode folder is used to store opencode required sdk packages. To use this opencode in kubernates environment along with CI pipeline it is a little bit hard to use static cache folder like this. We need to figure out persistency.

I suggest to implement an Environment Variable something like OPENCODE_CACHE to define this $HOME/.cache/opencode path.

Reacted by Mark Van de Vyver, Georgy (George) Fedorov and Andrew Tec

Activity

  1. github-actions commented on Sep 5, 2025

    @github-actions
    github-actionsBot
    on Sep 5, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Suppport for airgapped installation #2224: Support for airgapped installation - discusses similar cache and directory configuration needs for Kubernetes environments
    • EACCES: permission denied, mkdir '/Users/user/.local/share/opencode' #2417: EACCES permission denied, mkdir '/Users/user/.local/share/opencode' - addresses directory permission issues that could be solved by configurable cache paths
    • Opencode CLI won't install - Win11 Pro NVM for Windows, Node 24.5.0 x64 - Permission Errors #1945: Windows installation permission errors - also relates to directory access and permission issues that environment variable configuration could help resolve

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

  2. rekram1-node
    assigned
    thdxr
    on Sep 5, 2025
  3. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    rekram1-node
    on Dec 28, 2025
    Member
    More actions

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  4. rekram1-node
    closed this as completedon Dec 28, 2025
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.