@stianlagstad yes I think so but it's a bit of a fiddle - easiest way is probably to run Ollama (which provides an OpenAI-compatible localhost API) and then figure out how to point Cursor at a different backend URL
If you have a fediverse account, you can quote this note from your own instance. Search https://fedi.simonwillison.net/users/simon/statuses/114450785389493833 on your instance and quote it. (Note that quoting is not supported in Mastodon.)