Cursor Composer not working when invalidating API key but I'm on Pro plan

I’m on Cursor Pro (subscription will expire in 1 week, still have plenty of quota for premium model request). I have been using Cursor Composer, but after deleting my API key on Anthropic, Cursor Composer has stopped working. This is the error message

We encountered an issue when using your Anthropic API key. Please check your API key settings and try again. API Error:
{"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"}}

Request ID: 3a3f4881-a210-49ba-b148-36b5b43e4afb

I was using Claude 3.5 Sonnet for the Cursor Composer feature.
So I’m guessing Cursor Composer has been using my Anthropic API key and has now stopped working because the API key has been deleted on Anthropic side.

I tried running the request again and restart Cursor but the same error persists.

Two questions:

  • Is Cursor Composer supposed to work without my API key when I have a Pro plan?
  • If so, how do I get Composer to work again in Cursor?

Problem solved after seeing this post. I turned off the API key in Cursor settings