I think this is what JetBrains Air is supposed to be. I haven't had a chance to test it but it seems promising.
Anthropic is a different story, but I think it may still be possible via the Claude ACP agent (JetBrains' support of ACP is generally pretty good; I use it with anothe harness for open weight models regularly).