GitHub CLI
GitHub's official command-line tool for pull requests, issues, and repositories.
Liked as a CLI that AI agents like Claude already operate well, often in place of an MCP server,123 and for scripting PR creation and handling GitHub credentials.45 The main complaint is its telemetry collection,6 and GitHub's tokens are not granular enough to let agents comment on PRs without also being able to merge.7
Why people recommend it
AI agent friendly · 3
Claude and other agents already know how to use it, so commenters choose it over an MCP server.
“I use gh cli via Claude instead of their MCP, because I already had cli setup”
“CLI: GitHub & AWS it already knows how to operate the CLIs well.”
Show 1 more
“Thank you so much to the GH CLI for making me realize this, really.”
Pleasant to use · 1
One commenter calls the gh CLI really nice.
“The Github UI and the `gh` cli are actually really nice”
Credential setup · 1
Suggested as a way to handle GitHub credentials for git.
“If github, take a look at gh cli or git credential manager”
Scriptable PRs · 1
Can be wrapped in scripts, including with jj, to create PRs from branches.
“wrapped up the various jj and github gh cli invocations to create a PR off a branch”
Caveats and dissent
Telemetry · 1
One commenter objects to the tool collecting usage telemetry.
“I'm curious why corporate development teams always feel the need to spy on their users?”
Coarse permissions · 1
GitHub's tokens are not granular enough to allow commenting on PRs but not merging when agents use the CLI.
“if you want to permit the GH cli for adding comments, but not merging”
Often compared with
Threads where it came up
- Ask HN: Who is using MCP in production? 1 mention
- Every Model Cheats 1 mention
- MCP Is Dead 1 mention
- GitHub Actions is the weakest link 1 mention
- GitHub CLI now collects pseudoanonymous telemetry 1 mention
- MCP is dead. Long live the CLI 1 mention
Data: github-cli.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.
All comments 8
“I use gh cli via Claude instead of their MCP, because I already had cli setup”
“if you want to permit the GH cli for adding comments, but not merging”
“CLI: GitHub & AWS it already knows how to operate the CLIs well.”
“The Github UI and the `gh` cli are actually really nice”
“I'm curious why corporate development teams always feel the need to spy on their users?”
“Thank you so much to the GH CLI for making me realize this, really.”
“If github, take a look at gh cli or git credential manager”
“wrapped up the various jj and github gh cli invocations to create a PR off a branch”