AI Coding Workflows: From Cloud to Local - Claude code agent stuck in authentication loop

As per the course, I’ve installed Pycharm and the Claude coding agent. When I start a new chat, the agent prompts me for an authentication method.

The chioces are:

  • Jet Brains
  • API Key
  • Anthropic console.

With the guidance of some, I use Anthropic console. It opens a new browser tab, the url confirms authentication but when I prompt in the chat window it hangs on “preparing”. see image below.

Authentication output from the anthropic console in the terminal window is,


Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Smitty\AppData\Local\JetBrains\PyCharm2026.2\acp-agents\claude-acp\0.70.0> $env:PATH=‘C:\Users\Smitty\AppData\Local\JetBrains\PyCharm2026.2\acp-agents.runtimes\node\24.13.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\Smitty\AppData\Local\Microsoft\WindowsApps;C:\Users\Smitty\AppData\Local\GitHubDesktop\bin;C:\Users\Smitty\AppData\Roaming\npm;C:\Users\Smitty.lmstudio\bin;C:\Users\Smitty.local\bin;’; & ‘C:\Users\Smitty\AppData\Local\JetBrains\PyCharm2026.2\acp-agents.runtimes\node\24.13.0\npx.cmd’ ‘–no’ ‘–’ ‘@agentclientprotocolagentclientprotocol/claude-agent-acp@0.70.0’ ‘–cli’ ‘auth’ ‘login’ ‘–console’; exit
npm warn Unknown user config “allow-scripts”. This will stop working in the next major version of npm.
Opening browser to sign in…
If the browser didn’t open, visit: Authorize Application | Claude Platform
Paste code here if prompted >


I just ran the same prompt in claude within the terminal window and it completed.

I assume there may be a problem with the CLI plugin in pycharm.

Has anyone else had this issue?

Hi, looks like this is related to an Anthropic issue. My suggestion:

  1. In Settings → Tools → AI Assistant → Providers & API Keys, revoke the existing Claude authorization.
  2. Go to Tools → AI Assistant → Agents and install the Claude integration via the ACP client instead of our bundled.

If neither of those can defeat the Anthropic issue, best bet is to use the normal Claude Code CLI. Sorry about that!