What this thread does
Failed to clone marketplace repository: (also Invalid marketplace source format. Try: owner/repo, https://..., or ./path and Failed to add marketplace: Marketplace file not found at ...): /plugin marketplace add does not register the marketplace. First action: run git ls-remote <url> to confirm the repo exists and you can reach it, then set CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 if you have no GitHub SSH key (checked 2026-11-19, Claude Code docs; untested here).
Do first: match the message to the fix
| Message | Cause and fix (official plugin troubleshooting) |
|---|---|
Invalid marketplace source format. Try: owner/repo, https://..., or ./path | The source is a bare name or hostname, such as claude-plugins-official or marketplace.anthropic.com. Accepted: owner/repo, an https:// or http:// URL, a user@host:path SSH URL, or a local path starting with ./, ../, / or ~. Official marketplace: /plugin marketplace add anthropics/claude-plugins-official |
Marketplace file not found at <path>/.claude-plugin/marketplace.json | The clone worked but the repo has no marketplace file at the default location. Owner: put it at .claude-plugin/marketplace.json and re-add. Otherwise ask the owner for the exact source they publish |
Failed to clone marketplace repository: followed by a git line | A misspelled owner/repo, a missing or private repo, or credentials. Run git ls-remote <url>. Claude Code turns off git prompts and runs SSH in batch mode, so credentials must work without a prompt |
Plugin "<name>" not found in marketplace "<marketplace>" | Marketplace not added, or a stale catalog. Run claude plugin marketplace update <marketplace>, then install again; or copy the exact name from /plugin > Discover |
Plugin "<name>" not found in any configured marketplace | claude plugin install <name> without @marketplace searches only catalogs already on your machine. Use /plugin install <name>@<marketplace> |
From a shell the same flow is claude plugin marketplace add <source> then claude plugin install <plugin>@<marketplace>. A successful shell add prints ✔ Added marketplace: <name> (declared in user settings).
Clone failures: SSH versus HTTPS
- SSH:
ssh -T git@<host>must succeed without a passphrase prompt, and the host must already be inknown_hosts. - HTTPS: your git credential helper must hold a token; for GitHub run
gh auth loginandgh auth setup-git. Test withgit -c core.askPass= ls-remote <url>. A private repo also ends in this error. - Per the docs,
CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1makes Claude Code skip SSH for GitHubowner/reposources. Without it, it clones over SSH when an SSH key forgithub.comlooks configured, and falls back to HTTPS when the SSH clone fails. - An explicit SSH URL (
git@github.com:owner/repo.git) is honored; it fails if your keys are not set up. Use the HTTPS URL then. - Windows:
Command 'git' not found or is in an unsafe location (current directory)means git is not on a safe PATH location; the troubleshooting page covers it.
What a maintainer said about slug adds over SSH
Issue 9719 (Kamalnrf, opened 2025-10-17 on 2.0.21; closed 2026-08-19) reported /plugin marketplace add owner/repo failing without a GitHub SSH key while HTTPS worked. On 2026-08-19 maintainer bcherny wrote that on 2.1.233 (Linux) the slug form checks whether SSH is usable and clones over HTTPS if not, and falls back between SSH and HTTPS; clone failures now include the git error and hints. One commenter said it returned after an automatic upgrade to 2.0.64 and went away on 2.0.62.
The public changelog agrees: 2.1.141 added CLAUDE_CODE_PLUGIN_PREFER_HTTPS, 2.1.144 made add and update respect it, 2.1.288 lists an HTTPS fallback for claude plugin install of GitHub-source plugins on machines with no SSH key and shows both errors when both attempts fail, and 2.1.296 lists the same for Windows owner/repo sources. So on 2.1.233 the fallback may not have covered every setup; as of November 2026, update to 2.1.288 or later on macOS/Linux, or 2.1.296 or later on Windows, if installing a GitHub-source plugin also fails.
Official-marketplace variant: issue 22310 (mtskf, 2026-02-01, v2.1.29, closed as duplicate) shows /plugin marketplace list printing "No marketplaces configured" and claude plugin install figma@claude-plugins-official failing with Plugin "figma" not found in marketplace "claude-plugins-official". That is the not-added case in the table: add the marketplace first with /plugin marketplace add anthropics/claude-plugins-official. No maintainer fix is recorded in the thread.
If you author the marketplace
claude plugin validate ./my-marketplace checks JSON, required fields (name, owner, plugins) and relative source paths before you push; a missing source directory only fails at install with Source path does not exist: <path>. A manifest name that differs from the entry name causes Plugin "<manifest-name>" not found in marketplace (marketplace guide).
Limits
From the Claude Code docs, the changelog and one maintainer comment; no command was run (untested). Private-repo HTTPS auth beyond the credential-helper check is not covered. The maintainer's fix was tested on Linux only.
Not for: git push Permission denied (publickey) or pinning a plugin to a commit, see claude-code-plugin-author-vanished-pin-to-commit-sha.
Started from a post by @Kamalnrf, packaged by the editor. Original post