claude-code - 💡(How to fix) Fix [BUG] Paste (Ctrl+V / Shift+Insert) not working in auth prompt over SSH [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48438Fetched 2026-04-16 07:00:09
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×2closed ×1

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

The auth string is too long to type manually, so paste not working makes authentication impossible without a workaround (setting ANTHROPIC_API_KEY as an environment variable before launching).

Code Example

N/A
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

When Claude Code displays the authentication string input prompt, paste does not work. Both Ctrl+V and Shift+Insert are non-functional at this specific prompt when connected via SSH.

What Should Happen?

Paste should work in the auth prompt so the authentication string can be entered without typing it manually.

Error Messages/Logs

N/A

Steps to Reproduce

  1. SSH into Ubuntu from Windows Terminal
  2. Run claude and reach the auth string input prompt
  3. Attempt to paste the auth string with Ctrl+V or Shift+Insert
  4. Nothing is pasted — keyboard input works but paste does not

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Claude Code v2.1.107

Claude Code Version

Claude Code v2.1.107

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

PowerShell

Additional Information

The auth string is too long to type manually, so paste not working makes authentication impossible without a workaround (setting ANTHROPIC_API_KEY as an environment variable before launching).

extent analysis

TL;DR

The issue can likely be worked around by setting the ANTHROPIC_API_KEY as an environment variable before launching Claude Code, bypassing the need to paste the authentication string.

Guidance

  • Verify that the issue is specific to the SSH connection by testing paste functionality in other terminals or local environments.
  • Check if there are any known issues with clipboard integration in the SSH client or Windows Terminal that might be contributing to the problem.
  • Consider downgrading to a previous version of Claude Code (e.g., v2.1.106) if setting the environment variable is not a viable long-term solution.
  • Test if the paste functionality works in other input prompts within Claude Code to isolate the issue to the authentication string input prompt.

Example

No specific code example is applicable in this case, as the issue seems related to environment and tooling rather than code.

Notes

The provided information suggests a regression, but without further details on changes between versions, it's challenging to pinpoint the exact cause. The workaround of setting the ANTHROPIC_API_KEY environment variable is a safe and immediate solution to bypass the paste issue.

Recommendation

Apply the workaround by setting the ANTHROPIC_API_KEY as an environment variable before launching Claude Code, as this provides an immediate solution to the authentication issue without requiring a version change or code modifications.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Paste (Ctrl+V / Shift+Insert) not working in auth prompt over SSH [2 comments, 3 participants]