Skip to content

opencode: new package#5639

Draft
aprozo wants to merge 1 commit into
spack:developfrom
aprozo:add-opencode
Draft

opencode: new package#5639
aprozo wants to merge 1 commit into
spack:developfrom
aprozo:add-opencode

Conversation

@aprozo

@aprozo aprozo commented Jul 17, 2026

Copy link
Copy Markdown

Adds opencode (anomalyco/opencode), an open-source AI coding agent CLI — useful on headless systems (farm nodes, CI debugging) where a graphical client is not available.

Installed from the per-platform GitHub release binary (a self-contained Bun executable) with a cudnn-style per-platform version table: the npm wrapper (opencode-ai) resolves its platform binary in a postinstall script via optionalDependencies, which does not work in an offline install phase. Precedent for AI-agent CLIs in builtin: claude-code (npm) — this one just can't take the npm route.

Companion to #5637; verified to install and run (opencode --version) in the EIC eic-shell stack (eic/eic-spack#986).

AI coding agent CLI, installed from the per-platform GitHub release
binary (a self-contained Bun executable). The npm wrapper package
resolves its platform binary in a postinstall script via
optionalDependencies, which does not work in an offline install phase.
@spackbot-triage spackbot-triage Bot added new-package Additions of new packages to the Spack ecosystem new-version Modifications to packages' `depends_on()` directives maintainers Modifications to a package's `maintainers()` directive licenses Modifications to a package's `license()` directive labels Jul 17, 2026
@alecbcs

alecbcs commented Jul 17, 2026

Copy link
Copy Markdown
Member

@aprozo instead of installing opencode from the binary releases we should look at building it from source archives.

An example package that should be pretty close to this one is pi/package.py.

@aprozo

aprozo commented Jul 17, 2026

Copy link
Copy Markdown
Author

Thanks a lot, @alecbcs , will do!

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

Labels

licenses Modifications to a package's `license()` directive maintainers Modifications to a package's `maintainers()` directive new-package Additions of new packages to the Spack ecosystem new-version Modifications to packages' `depends_on()` directives

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants