continue.dev, aider, Zed’s AI assistant are all free and will work with a local Ollama installation.
You will of course need an insanely beefy and expensive machine to run any useful models at reasonable speeds, which would likely cover API usage costs for many, many years (an entire lifetime, likely).