Repository navigation
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Related PR FoundPR #33698 - feat:Introducing skills and agents marketplace for opencode CLI Why it's related: This PR is explicitly mentioned in the description as related work. PR #33698 explored CLI installation for skills and agents, while the current PR #40108 builds upon that foundation with a broader unified marketplace model that extends to desktop, TUI, CLI, and API clients with a shared runtime (and moves state from This is not a duplicate—it's a predecessor that the current PR builds upon with expanded scope and architecture. |
a1a11dc to
d56bfe8
Compare
|
looks good! Would like to see this PR also merged. |
|
+1 It's amazing. That’s just what we need |
7152462 to
0bb6a8b
Compare
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
Issue for this PR
Closes #28696
Related: #33698 explored CLI installation for skills and agents. This PR keeps that useful direction, but implements a broader package model and one shared runtime for Desktop, embedded Web, TUI, CLI, and API clients.
Type of change
What does this PR do?
Adds a unified Marketplace for plugins, skills, agents, commands, MCP servers, instructions, and bundles.
Marketplace state is stored in SQLite rather than
opencode.json. Installed plans are projected into effective configuration in memory, so user-authored configuration stays user-owned and disabling one provider reveals the next provider cleanly.Installation, aggregate updates, and profile imports use a two-step plan/apply flow. Planning materializes and hashes executable bytes; apply consumes that exact one-time plan in a revision-checked transaction without refetching it. The content-addressed cache rejects traversal, unsafe redirects, stale authorization/not-found responses, oversized artifacts, and corrupted digests.
The PR also adds:
--header-env NAME=ENV) so secret values are resolved only at request time and are never stored;.git, SSO-safe catalog fetching, and complete skill-tree materialization;.agents/plugins/marketplace.json,.github/plugin/marketplace.json,.plugin/marketplace.json, and.claude-plugin/marketplace.json, plus the native OpenCode paths;Private GitLab and SSH repositories
Private GitLab repository URLs are resolved through GitLab REST file and repository-tree endpoints. This avoids HTML SSO redirects returned by raw web routes while retaining the user-entered repository URL as the source reference. Source creation validates the catalog before persisting it.
Credentials are configured as header-to-environment bindings, for example
PRIVATE-TOKEN=GITLAB_TOKEN. The environment variable is resolved only for the request; its secret value is not stored in SQLite or returned to clients. Desktop exposes separate header-name and environment-variable fields, and the CLI accepts repeatable--header-env NAME=ENVoptions.Git repositories may also use SSH URLs. OpenCode clones and refreshes them through its shared repository cache and reads the catalog from the local checkout.
Unsupported foreign-runtime features such as hooks, LSP servers, commands, agents, and registered apps remain visible as compatibility requirements instead of being silently dropped. Listings with no installable OpenCode components are marked incompatible.
The implementation is split into twelve focused conventional commits on the current upstream
dev. It intentionally excludes the unrelated reliability changes that appeared in the first draft branch.How did you verify your code works?
PRIVATE-TOKENforwarding, catalog loading, and complete skill-tree materialization.PRIVATE-TOKEN=GITLAB_TOKEN: CLI and Desktop UI both loaded all 10 catalog entries.0.0.0-marketplace-upstream-202608020158).git diff --checkpassed.Manual production-build click-through covered:
The full App unit suite currently reports 689 passing tests and one unrelated pre-existing i18n parity failure: five general English keys are absent from the Arabic dictionary. Marketplace-specific tests and all affected-package typechecks pass.
Screenshots
Desktop: configured sources
OpenAI Plugins, GitHub Copilot, and Claude Code are connected as independent maintained sources.
Desktop: compatible GitHub Copilot and Claude Code plugins
The Copilot plugin exposes its materialized skill individually:
The Claude Code plugin exposes four independently manageable skills:
Desktop: Cloudflare skills and MCP controls
The OpenAI Cloudflare package resolves to 9 skills and 1 MCP server instead of one aggregate skill directory:
Individual skill and MCP switches retain their state:
TUI: the same materialized plan
The TUI reports the same 9-skill, 1-MCP plan:
Skills remain independently manageable:
The MCP server has its own persisted toggle:
Checklist