Skip to content

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

Closed

Description

@kturung

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","opencode-anthropic-auth@0.0.2"] 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.

Activity

  1. github-actions commented on Sep 5, 2025

    @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. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

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

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