Skip to content

Opencde Github Actions Bot Cannot Install #57911

Closed as not planned
Closed as not planned

Description

@zzz-creator

Description

I cannot install the github bot https://github.com/anomalyco/opencode/blob/dev/github/README.md. command as mentioned in README.md (opencode github install) does not work
`[redacted]>opencode github install
DESCRIPTION
OpenCode command line interface

USAGE
opencode [flags] []

ARGUMENTS
directory string Directory to start OpenCode in (optional)

FLAGS
--standalone Run with a private server instead of the background service
--server string Connect to a server URL instead of the background service
--auto Auto-approve permissions that are not explicitly denied
--continue, -c Continue the last session
--session, -s string Session ID to continue, or to create if it does not exist
--prompt string Prompt to use

GLOBAL FLAGS
--help, -h Show help information
--version, -v Show version information
--wizard Start wizard mode for a command
--completions <bash|zsh|fish|sh> Print shell completion script (choices: bash, zsh, fish, sh)
--log-level <all|trace|debug|info|warn|warning|error|fatal|none> Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none)
--print-logs Print logs to stderr (server logs require --standalone)

SUBCOMMANDS
upgrade, update Upgrade OpenCode to the latest or a specific version
uninstall Uninstall OpenCode, keeping session data, configuration, and state
acp Start an Agent Client Protocol server
api Make a request to the running server
debug Debugging and troubleshooting tools
auth manage integrations and credentials
mcp Manage MCP (Model Context Protocol) servers
plugin Manage plugins
models List all available models
stats Show shareable usage statistics
mini Start the minimal interactive interface
run Run OpenCode with a message
session Manage sessions
service Manage the background server
reload Reload configuration
pair Print one-time links to connect a browser or app
serve Start the v2 API and web server

ERROR
Unexpected positional argument: "install"`

Plugins

N/A

OpenCode version

n/A

Steps to reproduce

explained above, cannot install

Screenshot

N/A

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Thanks for the report. I reproduced this on the latest release, v2.1.2, since no version was given: opencode github install (and opencode github run) prints the CLI help and fails with Unexpected positional argument: "install". It still happens on the latest dev (6dfc681). The v2 CLI has no github command, but the GitHub README and the docs still tell you to run it. The script below reproduces it.

    Until this is sorted out, you can set things up by hand with the manual steps in the same README: install the opencode-agent GitHub app, add the workflow file to .github/workflows/, and add your provider API key as a repository secret.

    Related: #57158 (moving the GitHub Action and workflows to the v2 CLI).

    Reproduction script (repro.sh)
    #!/usr/bin/env bash
    # Reproduces #57911: `opencode github install` (documented in github/README.md
    # and the GitHub docs page) is not a command in OpenCode v2.
    # Usage: bun add -g @opencode/cli@latest && bash repro.sh
    set -u
    opencode --version
    echo "--- opencode github install"
    opencode github install 2>&1 | tail -n 2
    echo "--- opencode github run"
    opencode github run 2>&1 | tail -n 2

    Run it: bash repro.sh

  2. zzz-creator commented on Oct 21, 2026

    @zzz-creator
    Author

    /opencode how do I add an opencode provider. example only shows anthropic

  3. Tarquinen commented on Oct 27, 2026

    @Tarquinen
    Member

    Thanks for the report! We no longer support the OpenCode GitHub Action or its GitHub app, and the action was removed from this repo in #59032. That's why v2 has no opencode github install command, and it won't be added back. Closing this issue.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  4. sixro commented on Nov 2, 2026

    @sixro

    Hi, is it correct then that the instructions found on this page are wrong? 🙏

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions