Skip to content

Unable to install power from my private repository #72

Open

Description

@arpit-dlv

git clone on the power repository is working fine, however on trying to install through the GUI by giving HTTPS URL, it is giving an error:

2026-03-12 17:45:03.453 [info] [Powers] Adding custom power from URL: https://github.com/arpit-dlv/<powername> as powername
2026-03-12 17:45:03.454 [info] [Powers] Updating existing power in user-added registry: powername
2026-03-12 17:45:03.455 [info] [Powers] User-added registry saved with 1 powers
2026-03-12 17:45:03.455 [info] [InstallPower] Installing powername from registry user-added...
2026-03-12 17:45:03.455 [info] [InstallPower] Cloning powername from https://github.com/arpit-dlv/powername.git (branch: main)
2026-03-12 17:45:03.456 [info] [GitHub] Cloning https://github.com/arpit-dlv/powername (branch: main, sparse: )
2026-03-12 17:45:03.456 [info] [GitHub] Clone attempt 1 for https://github.com/arpit-dlv/powername
2026-03-12 17:45:03.943 [warning] [GitHub] Clone attempt 1 failed. 2 retries left. Error: HTTP Error: 401 Unauthorized
2026-03-12 17:45:05.944 [info] [GitHub] Clone attempt 2 for https://github.com/arpit-dlv/powername
2026-03-12 17:45:06.399 [warning] [GitHub] Clone attempt 2 failed. 1 retries left. Error: HTTP Error: 401 Unauthorized
2026-03-12 17:45:10.399 [info] [GitHub] Clone attempt 3 for https://github.com/arpit-dlv/powername
2026-03-12 17:45:10.837 [error] [GitHub] Failed to clone repository after all retries: HTTP Error: 401 Unauthorized
2026-03-12 17:45:10.837 [error] [InstallPower] Failed to install powername: Failed to clone repository: HTTP Error: 401 Unauthorized

Even on giving the SSH URL, it gives:

2026-03-12 17:47:27.992 [info] [Powers] Adding custom power from URL: git@github.com:arpit-dlv/powername.git as powername
2026-03-12 17:47:27.993 [info] [Powers] Updating existing power in user-added registry: powername
2026-03-12 17:47:27.994 [info] [Powers] User-added registry saved with 1 powers
2026-03-12 17:47:27.995 [info] [InstallPower] Installing powername from registry user-added...

And gets stuck on the last log line.

Activity

  1. robomnis commented on Sep 13, 2026

    @robomnis

    Same failure as kirodotdev/Kiro#5932, where I have posted the root cause.

    Short version: Kiro clones with isomorphic-git over HTTP rather than shelling out to git, and the call passes no authentication — no onAuth, no headers, no token:

    await git.clone({ fs, http, dir, url, ref, singleBranch: true, depth: 1 })

    So only anonymous HTTPS works. Your system git credential helper and SSH config are never consulted, which is exactly why git clone succeeds from the terminal while the GUI install fails. SSH URLs cannot work either; only a literal git@github.com: prefix is rewritten to HTTPS.

    Verifiable without Kiro:

    curl -s -o /dev/null -w '%{http_code}' \
      https://github.com/<org>/<private-repo>/info/refs?service=git-upload-pack   # 401
    

    Workaround, and what the docs recommend for private repos: clone locally and use Add Custom Power → Import power from a folder. A local source path is used directly with no network access. One caveat — powers installed that way show no icon or description in the Powers UI (kirodotdev/Kiro#11161).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions