promptgarten ๐ŸŒฑ

Command reference ยท Claude Code

/web-setup

Connects your GitHub account to Claude Code on the web.

/web-setup connects your GitHub account to Claude Code on the web โ€” using the local credentials of your installed gh CLI, not via its own OAuth flow. The reference doesn't mention further arguments or flags. The command is also triggered automatically: if you set up a recurring cloud routine with /schedule, Claude Code independently asks for this connection if GitHub isn't linked yet. In addition, /web-setup now warns before replacing an existing GitHub App connection instead of silently overwriting an old link. A prerequisite is an installed and signed-in gh CLI; without it, the command can't read credentials or establish a connection.

โœ… WHEN TO USE IT?

Link GitHub with Claude Code on the web

Call /web-setup to give Claude Code on the web access to your own repos.

Set up before a cloud routine

Run /web-setup once before /schedule so the routine can access GitHub directly instead of asking for it mid-way through.

โ›” WHEN NOT TO?

Without an installed gh CLI

The command uses the local credentials of the gh CLI; without it, it can't connect anything.

Better: First install the gh CLI and sign in with gh auth login.

Replacing an existing connection

The command does warn before replacing an existing GitHub App connection, but whoever dismisses the warning loses the old link.

Better: Read the warning carefully and cancel if unsure.

SOURCES

MORE COMMANDS ยท Claude Code

/workflows/pr-comments/add-dir/advisor/agents/autofix-pr/background/batch/branch/btw/cd/chrome

All commands ยท Claude Code โ†’

Share:๐•in๐Ÿ’ฌ