Aider is free and open source, Cursor is free. You can connect Aider to various free models on OpenRouter, some of them state of the art.