Skip to content

gh repo clone should work without GH_TOKEN for public repos #12591

Open

Description

@ArjunDandagi

CLI Feedback

You can use this template to give us structured feedback or just wipe it and leave us a note. Thank you!

What have you loved?

The GitHub CLI is very convenient and well-designed for repo management.

What was confusing or gave you pause?

When attempting to clone a public repository without being logged in or providing a token, gh prompts for authentication, even though public repos should not require it. This is really needed for me when i use ephemeral logged in environment like https://serverlabs.io

Are there features you'd like to see added?

Allow gh repo clone to automatically fall back to anonymous cloning for public repositories without requiring a token or login. or may be provide flag with --no-token wherever applicable.

Anything else?

:)

Activity

  1. added
    needs-triage
    on Jan 31, 2026
  2. added
    enhancement
    and removed
    needs-triage
    on Feb 2, 2026
  3. added
    gh-repo
    and removed on Feb 17, 2026
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

    enhancementgh-repo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions