Absolutely! This is the best use case. Build and test your agent locally with Ollama (free, $0 cost). Once it works perfectly, switch to GPT-4o or Claude 3.5 for production just by changing the model_id.

No code rewrite needed.