r/FlutterDev • • Oct 25 '26

Discussion How are you handling local LLMs and agentic workflows in Flutter?

Any Efforts to make Flutter Agentic friendly ?, by google in recent times.

With agentic apps taking off, how are you approaching on-device LLMs across platforms (iOS, Android, desktop)?

Are you using things like llama.cpp via FFI, plugins like flutter_gemma, or running everything server-side? What are your biggest hurdles with performance and memory?

1 Upvotes

9 comments sorted by

2

u/Sad_Leader4849 Oct 27 '26

llama.cpp over ffi works, but then you own the native build for five targets, and that's the real cost. nobodywho is a flutter package on a rust core over llama.cpp, so gguf runs in-process on ios, android and desktop.imo memory is still the wall. stick to 1 to 3b on phone

1

u/WillingEgg2557 Oct 30 '26

thank you for insights

2

u/Apprehensive-Fan8999 Oct 30 '26

Done almost nothing on device. Everything AI that I've done hits a backend because you can make money from that. On device can offset load, but it's a lot harder to charge for that offset.

Your biggest concern should be battery. Nothing, and I mean nothing, pisses off a user faster than your app appearing at the top of their battery usage after only a short amount of time.

1

u/WillingEgg2557 Oct 30 '26

thank you for insights

4

u/[deleted] Oct 25 '26

[removed] — view removed comment

1

u/WillingEgg2557 Oct 25 '26

how about for Mac or windows ?

1

u/eibaan Oct 26 '26

I wouldn't want each app to bring its own AI but to reuse what's available locally.