claude-code - 💡(How to fix) Fix Plugin marketplace clones via SSH ([email protected]) instead of HTTPS, failing even for public repos [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52234Fetched 2026-04-24 06:12:36
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

Error: Failed to clone marketplace repository: SSH authentication failed.

Cloning into '...'... [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

Code Example

Error: Failed to clone marketplace repository: SSH authentication failed.

Cloning into '...'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

---

git clone https://github.com/sunmerrr/claude-pipeline

---

git clone git@github.com:sunmerrr/claude-pipeline
RAW_BUFFERClick to expand / collapse

Bug Description

When running /plugin marketplace add <user/repo>, Claude Code attempts to clone the repository using SSH ([email protected]:) instead of HTTPS. This causes the command to fail even for public repositories if the user has no SSH keys configured.

Steps to Reproduce

  1. Run /plugin marketplace add sunmerrr/claude-pipeline (a public repo)
  2. Observe failure:
Error: Failed to clone marketplace repository: SSH authentication failed.

Cloning into '...'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Expected Behavior

Public repositories should be cloned via HTTPS — no authentication required:

git clone https://github.com/sunmerrr/claude-pipeline

Actual Behavior

Clones via SSH regardless of repo visibility:

git clone [email protected]:sunmerrr/claude-pipeline

Environment

  • Claude Code version: 2.1.92
  • OS: macOS (arm64)
  • gh CLI protocol is already set to https — only the plugin system uses SSH

Notes

This appears to be a hardcoded SSH URL in the plugin system internals. Switching to HTTPS for public repos (or respecting the user's gh CLI protocol setting) would fix this.

extent analysis

TL;DR

The most likely fix is to modify the plugin system to use HTTPS for cloning public repositories instead of hardcoded SSH.

Guidance

  • Verify that the gh CLI protocol setting is indeed set to https to ensure consistency in the environment.
  • Check the plugin system internals for the hardcoded SSH URL and consider replacing it with a dynamic URL that respects the repository's visibility and the user's protocol setting.
  • Test the fix by running the /plugin marketplace add command with a public repository to ensure it clones via HTTPS successfully.
  • Consider adding a fallback or configuration option to allow users to specify their preferred protocol for repository cloning.

Example

No code snippet is provided as the issue does not specify the exact codebase or programming language used in the plugin system.

Notes

The fix may require modifications to the Claude Code plugin system, which could have implications for private repositories or users with specific SSH key configurations. It's essential to test the changes thoroughly to ensure they do not introduce new issues.

Recommendation

Apply a workaround by modifying the plugin system to use HTTPS for public repositories, as this approach respects the user's protocol setting and fixes the issue without requiring an upgrade to a potentially non-existent fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Plugin marketplace clones via SSH (git@github.com) instead of HTTPS, failing even for public repos [1 comments, 2 participants]