Connect Home Assistant to hundreds of AI models from every major provider through Cloudflare AI Gateway. OpenAI, Anthropic, Google, and friends are all there. But for HA… the 50+ open source models hosted on Cloudflare Workers AI are more than enough.
Add as many models as you want. Each one becomes its own conversation agent or AI task entity. Use a fast model for text or voice control, a reasoning model for complex summaries or tool calls, and an image model for on-demand generation.
The integration creates three starter models out of the box. I’ve chosen fast and efficient models for the defaults. I’m not sure how much use you can get out of the free tier’s 10k daily neuron limit, but my first few days of testing conversation agents (including Kimi k2.5, a more powerful frontier model closer to Opus) has been well under $1. Ymmv.
I’ll tune the defaults based on real usage data from the community, so please share your feedback and model recommendations!
Setup
You’ll need a free Cloudflare account.
Full setup guide + model recommendations on gitHub: michaeldwan/ha-cloudflare-ai-gateway
What you get
- Chat models become conversation agents with tool calling and streaming, plus AI task entities
- Image models (Flux, Stable Diffusion) for on-demand generation
- Usage sensors per model – requests, tokens, cache hits, errors
- Cost tracking via Cloudflare’s analytics – use HA automations to cut off spending when you hit a threshold
- Spend limits, rate limiting, guardrails, and more in the Cloudflare dashboard
Requires HA 2025.7.0+.

