Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The wrapper exposes two subcommands:

### `setup`

Runs `claude /login` to authenticate with Anthropic.
Runs `claude auth login` to authenticate with Anthropic.

```sh
strawpot_claude_code setup
Expand Down
7 changes: 7 additions & 0 deletions claude_code/wrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,17 @@ func cmdSetup() {
os.Exit(1)
}

fmt.Fprintln(os.Stderr, "Starting Claude Code login...")
fmt.Fprintln(os.Stderr, "If a browser window does not open, copy the URL from the output below.")
fmt.Fprintln(os.Stderr)

cmd := exec.Command(claudePath, "auth", "login")
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
// Inherit full environment so DISPLAY/WAYLAND_DISPLAY are available
// for browser opening on Linux.
cmd.Env = os.Environ()

if err := cmd.Run(); err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
Expand Down
Loading