anomalyco / anomalyco/opencode
fix(nix): flake package should install opencode as the primary CLI
Open
@Brendonovich is already working on this.
Since Sep 12, 2026.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The Nix flake package currently installs opencode2 as the primary CLI entrypoint and sets meta.mainProgram to opencode2.
In V2, the primary command should be opencode, while opencode2 remains available as a compatibility alias. As a result, the Nix package exposes the wrong default binary name and does not generate completions for opencode.
Plugins
N/A
OpenCode version
v2.0.2
Steps to reproduce
- Build the package with
nix build .#opencode. - Inspect the resulting
$out/bindirectory or run the packaged binary. - Notice that the package installs
opencode2as the primary command instead ofopencode.
Screenshot and/or share link
N/A
Operating System
Nix build / Linux
Terminal
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.