Error: Error POSTing to endpoint (HTTP 404): {"error":"404 Not Found"}

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

When i try to login using cursor cli it gives
Error (unhandledRejection): Error POSTing to endpoint (HTTP 404): {“error”:“404 Not Found”}
Error: Error POSTing to endpoint (HTTP 404): {“error”:“404 Not Found”}
at StreamableHTTPClientTransport.send (/Users//.local/share/cursor-agent/versions/2025.12.17-996666f/index.js:165206:23)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Steps to Reproduce

  1. Log out of cursor cli
  2. Login using command cursor-agent

Expected Behavior

It should login as usual.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Cursor cli version using cursor-agent --version → 2025.12.17-996666f

For AI issues: which model did you use?

NA

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. An HTTP 404 during CLI login usually points to an issue with the auth endpoint.

Please try these steps:

  1. Use an API key as a workaround:

    • Create an API key in the Cursor Dashboard (Integrations > User API Keys)
    • Use: export CURSOR_API_KEY=your_key or cursor-agent --api-key your_key
  2. Check your network:

    • Disable VPN or proxy if you use one
    • Check if other Cursor features work (try opening the IDE and running Cursor Settings > Network > Run Diagnostics)
  3. Try updating the CLI:

    cursor-agent update
    

Please share:

  • Are you using a VPN or a corporate proxy?
  • The output of cursor-agent status
  • Did the API key workaround help?

If the issue still happens even with an API key, it might be a bug in the latest CLI version and I’ll escalate it to the dev team.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.