IDEA 2025.3.3 + Cursor acp doesn't work

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

IDEA 2025.3.3 AI Assistant using cursor agent
chat with cursor, got error like “Failed to initialize ACP process. Process terminated with exit code: 1. Process output:
Error: [unauthenticated] Error”

Steps to Reproduce

with window power shell

  1. agent login success
    2.agent – debug status print “Logger in as [email protected]” and blocked
    3.open another power shell window
  2. agent --debug status also print “Logger in as [email protected]
    5.agent acp return “Error: [unauthenticated] Error”
    wait a moment
  3. in second power shell window ,input agent status ,return “Not logged in”
    cursor api key is correct

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

PS C:\Users\Angww> agent about
About Cursor CLI

CLI Version 2026.02.27-e7d2ef6
Model Composer 1.5
OS win32 (x64)
Terminal unknown
Shell cmd
User Email Not logged in

IntelliJ IDEA 2025.3.3
Build #IU-253.31033.145, built on February 20, 2026
Source revision: 212d61deaf3a8
授权给 wang david
订阅有效期至 2026年4月3日。
Evaluation purpose only.
Runtime version: 21.0.10+1-b1163.108 amd64 (JCEF 137.0.17)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 16192M
Cores: 12
Registry:
ide.experimental.ui=true
llm.chat.agent.codex.install.codex.version=0.106.0
llm.chat.agent.codex.install.acp.server.version=0.0.27
maven.packagesearch.enabled=false
Non-Bundled Plugins:
PlantUML integration (2.23.0)
com.intellij.ml.llm (253.31033.145)
mobi.hsz.idea.gitignore (4.5.7)
com.ccnode.codegenerator.MyBatisCodeHelperPro (2.9.3-183-204)
Kotlin: 253.31033.145-IJ

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. A couple of things to try:

  1. Use an API key instead of browser login

The auth state from agent login doesn’t seem to persist correctly across terminal sessions on Windows. Try authenticating with an API key instead:

  • Generate one in your Cursor dashboard under Integrations > User API Keys
  • Then set it as an environment variable:
$env:CURSOR_API_KEY = "your_api_key_here"
agent acp

Or pass it directly:

agent --api-key "your_api_key_here" acp
  1. Try installing via the JetBrains AI Chat registry (recommended)

The docs recommend installing Cursor through JetBrains directly instead of manually running agent acp:

  1. Open the AI Chat panel in IDEA (right sidebar, or View > Tool Windows > AI Chat)
  2. Open the agent provider list and select Add Agent from Registry
  3. Search for Cursor and install it
  4. Select Cursor as your agent provider

Docs: JetBrains | Cursor Docs

Let me know which approach works, or doesn’t. If neither helps, I’ll flag this with the team.

A post was merged into an existing topic: Service Unavailable Issue

the methods you provided don’t work.

may be same reson as this issue

I see the suggested options didn’t help. Can you clarify a couple of things?

  1. When you tried using the API key, what exact error did you get? Was it the same [unauthenticated] Error?

  2. Did you try installing Cursor through JetBrains directly: AI Chat panel > agent provider list > Add Agent from Registry > search for “Cursor”? This is different from running agent acp manually in the terminal.

  3. Can you run agent --debug acp and share the full output? This should show at which step the auth flow breaks.

About the permission rejection topic, it’s related but it’s a separate issue. Your case looks more like a bug where the auth state gets lost on Windows. I’ll pass it to the team as a separate report.

1 Like

PS C:\Users\Angww> AGENT --debug acp
Error: [unauthenticated] Error
PS C:\Users\Angww>

1 Like

Hi,

I had the same problem and for days I thought that was an IntelliJ bug.

After some effort, I found in my env CURSOR_API_KEY because I used the CLI some months ago. With this property set, the error is the same that @wang_david reports, meanwhile removing it and logging in with the browser allows IntelliJ to work with Cursor.

same on macos (IJ, Pycharm)

Looks like I’m encountering a similar error.

image

Looks like it failed to work with Opus 4.6

1 Like