anomalyco / anomalyco/opencode

fix(nix): flake package should install opencode as the primary CLI

Open
#48,663 0 comments 2 reactions 1 assignee View on GitHub

@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
  1. Build the package with nix build .#opencode.
  2. Inspect the resulting $out/bin directory or run the packaged binary.
  3. Notice that the package installs opencode2 as the primary command instead of opencode.
Screenshot and/or share link

N/A

Operating System

Nix build / Linux

Terminal

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.