Can't logout of Cursor inside Jetbrain AI Assistant

Where does the bug appear (feature/product)?

Somewhere else…

Describe the Bug

I started using Cursor through Jetbrans AI Assistant on Intellij.
After a while, it was asking me to upgrade because I was using the wrong Cursor account.

I tried logging out by uninstalling the Cursor ACP, then the AI Assistant plugin and at last the whole IDE (no success). After revoking the active session through the https://cursor.com/dashboard/settings, I only get the error:

Failed to initialize ACP session. Error: Internal error: “Failed to initialize session services”

I just want to logout and log back in to use my actual cursor account.

Steps to Reproduce

in Intellij:
Install AI Assistant>Choose another ACP>Select Cursor>Login>Revoke access thoruhg mhttps://cursor.com/dashboard/settings > try to chat or logout

Expected Behavior

Expected that:
1 - After revoking, I’d be logged out, so I could log back in, or
2 - Logout to log back in with another account, or
3 - Get a message from cursor, not the error I provided earlier

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

IntelliJ IDEA 2025.3.3
Build #IU-253.31033.145
Runtime version: 21.0.10+7-b1163.108 aarch64 (JCEF 137.0.17)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Jetbrains AI Assistant
253.31033.188

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. I see the screenshot with the error. This is a known issue. ACP doesn’t have a built-in logout flow right now, and after you revoke the session in the dashboard, the old token can stay on disk and break initialization.

Workaround: clear your credentials in the terminal:

agent logout

After that, try connecting to Cursor again via JetBrains AI Chat. It should ask you to sign in with the right account.

If agent isn’t recognized as a command, try the full path to the Cursor CLI, or install it first: CLI Installation | Cursor Docs

Let me know if the workaround helped.

this solved my problem! Thanks!