You can use cursor with grok, though my experience is that grok is the worst of the API providers cursor supports.