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
agent login success
2.agent – debug status print “Logger in as [email protected]” and blocked
3.open another power shell window
agent --debug status also print “Logger in as [email protected]”
5.agent acp return “Error: [unauthenticated] Error”
wait a moment
in second power shell window ,input agent status ,return “Not logged in”
cursor api key is correct
I see the suggested options didn’t help. Can you clarify a couple of things?
When you tried using the API key, what exact error did you get? Was it the same [unauthenticated] Error?
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.
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.
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.