What
Claude Code now automatically enables the "Applications in terminal may access clipboard" setting in iTerm2, making the /copy command work without manual configuration.
Usage
# Run /terminal-setup in iTerm2 — it now specifically enables clipboard access
/terminal-setup
# Or just use /copy — Claude will prompt to enable clipboard access if neededDetails
- Detects iTerm2 terminal via
TERM_PROGRAMorLC_TERMINALenvironment variables - Writes
AllowClipboardAccesspreference viadefaults writeon macOS - Reports success and reminds user to restart iTerm2
- When connected from iTerm2 via SSH, shows guidance about reaching local clipboard
- Shift+Enter is noted as natively supported in iTerm2 (no configuration needed)
/terminal-setupdescription dynamically changes to "Enable iTerm2 clipboard access for /copy" in iTerm2
Evidence
iTerm2 clipboard enablement (search for "AllowClipboardAccess", "iTerm2 clipboard access already enabled")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
/terminal-setup now enables iTerm2's "Applications in terminal may access clipboard" setting so /copy works, including from tmux