[BUG] install-github app OAuth error

Resolved 💬 2 comments Opened Feb 2, 2026 by fip17 Closed Mar 3, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

error running /install-git-app
OAuth error when opening the url provided

Claude Code suggests posting here.

● This looks like a bug in Claude Code itself. The error message "Unknown scope: user:inf" suggests the OAuth scope is being truncated - it should likely be user:info or similar, but it's being cut
off to user:inf.

This is not something I can fix in your codebase - it's an issue with the Claude Code CLI tool itself.

I'd recommend reporting this bug at: https://github.com/anthropics/claude-code/issues

When filing the issue, include:

  • The exact command you ran: /install-github-app
  • The full error message: "Invalid OAuth Request - Unknown scope: user:inf"
  • Your Claude Code version: 2.1.29 (Claude Code)
  • Your OS: Ubuntu 22.04.5 LTS

The code server is running headless, suspect that may be a problem in opening the url to obtain gh access.

What Should Happen?

running on a Mac M4 laptop works fine:

│ Install GitHub App │
│ Success │
│ │
│ ✓ GitHub Actions workflow created! │
│ │
│ ✓ API key saved as CLAUDE_CODE_OAUTH_TOKEN secret

Error Messages/Logs

Steps to Reproduce

cd <codedirectory>
claude
/install-github-app

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.29 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗