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
The HN verdict, written from 7 cited comments
5recommend
1warn against
Nov 3, 2025first mention
Sep 4, 2026latest mention
Nov 25 – Oct 26
Used forfor AI coding agentsfor PR automationfor Git credential setupgithub access for ai agentagent commenting on github

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

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”

Threads where it came up

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.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help