[BUG] "--remote" web sessions never connect to GitHub remote repo
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?
Screenshare of issue here: https://cap.so/s/ys7tqd1af3wda6h
Docs explaining --remote flag: https://code.claude.com/docs/en/claude-code-on-the-web
Docs I followed for setup: https://code.claude.com/docs/en/web-quickstart
Claude Code Version: 2.1.153
Screenshare explains everything more clearly than text please watch 🙂
claude --remote <some-instruction> successfully launches a cloud-based CC session on the web however this session is not connected to my GitHub remote. Doesn't even show the repo name in the breadcrumbs. So it can't pull/push files. The command bundles up my local files and sends them to the cloud session as that's the fallback behavior when it can't connect to GitHub but I see no reason why it shouldn't be connecting.
I did \web-setup many times which is supposed to sync my gh token to CC cloud. It doesn't actually direct me anywhere just my claude.ai/code homepage so I assume it was already properly set up.
GitHub Apps permissions granted for Claude for All Repositories
I believe this is an issue with --remote or /web-setup because everything on web works fine. I see all my repos there. I can start a new session and it does connect to gh as expected with pull/push ability, and the breadcrumb is there.
My cli is properly connected to gh. And I tried with HTTPS instead of SSH. Any yes I'm sure permissions/cli/web are all on the same gh/claude account
gh auth status
github.com
✓ Logged in to github.com account HowieG (keyring)
- Active account: true
- Git operations protocol: ssh
- Token: gho_************************************
- Token scopes: 'admin:public_key', 'gist', 'read:org', 'repo'
git remote -v
origin https://github.com/HowieG/test.git (fetch)
origin https://github.com/HowieG/test.git (push)
What Should Happen?
claude --remote should launch claude code on the web session that is connected to the github remote repo that the local was connected to
And /web-setup should give feedback if web is already properly set up (e.g. ✓ Web access already configured for <github account>)
Error Messages/Logs
Steps to Reproduce
Install Claude Code 2.1.153 locally
Authenticate the GitHub CLI: gh auth login → confirm with gh auth status.
Install the Claude GitHub App on your personal GitHub account with "All repositories" access.
Create or use an existing personal repo with a GitHub remote configured:
git remote -v
origin https://github.com/<user>/<repo>.git
Verify the web side works: open https://claude.ai/code → confirm the repo appears in the repo selector → start a task from the web → confirm it runs (✅ works as expected).
In a terminal, cd into the same local clone and run claude to start a session.
Inside the session, run /web-setup.
run `claude --remote "make a small change to readme and push to remote"
Click the link to the web session it creates
Note whether the repo appears in the session's breadcrumbs and if the task fails
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.153
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗