[PR #12379] feat: add GitHub URL support for plugin installation #14198

Open
opened 2026-02-16 18:19:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12379

State: open
Merged: No


Fixes #12378

Summary

Adds support for installing plugins from GitHub URLs using bun's native git URL syntax.

Changes

  • Detect github:, git+, git:// URL prefixes in plugin loader
  • Skip @version suffix for git URLs (bun handles versioning via #branch)
  • Always reinstall git URL plugins to fetch latest commits
  • Store installation timestamp for git URL cache tracking

Usage

{
  "plugin": ["github:code-yeongyu/oh-my-opencode#dev"]
}

Verification

  1. Added github:code-yeongyu/oh-my-opencode#dev to config
  2. Ran bun dev - plugin installed and loaded correctly
  3. Confirmed git URLs bypass npm registry check
  4. Verified reinstall on restart fetches latest commits
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12379 **State:** open **Merged:** No --- Fixes #12378 ## Summary Adds support for installing plugins from GitHub URLs using bun's native git URL syntax. ## Changes - Detect `github:`, `git+`, `git://` URL prefixes in plugin loader - Skip `@version` suffix for git URLs (bun handles versioning via `#branch`) - Always reinstall git URL plugins to fetch latest commits - Store installation timestamp for git URL cache tracking ## Usage ```json { "plugin": ["github:code-yeongyu/oh-my-opencode#dev"] } ``` ## Verification 1. Added `github:code-yeongyu/oh-my-opencode#dev` to config 2. Ran `bun dev` - plugin installed and loaded correctly 3. Confirmed git URLs bypass npm registry check 4. Verified reinstall on restart fetches latest commits
yindo added the pull-request label 2026-02-16 18:19:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14198