A universal Flutter SDK for building AI agents locally and in the cloud. One unified API for 7 AI providers with tool calling, persistent memory, and safety guardrails built in.
✅ 7 AI Providers — Gemini, OpenAI, Claude, HuggingFace, Ollama, on-device Gemma, GGUF
✅ Tool Calling — Full ReAct loop implementation with step callbacks
✅ Memory — In-process (InMemoryStore) or persistent (HiveMemoryStore)
✅ Safety — Prompt injection detection, PII redaction, rate limiting
✅ Smart Routing — Automatic fallback, privacy-aware routing
✅ Cross-Platform — Android, iOS, macOS, Windows, Linux, Web
✅ On-Device & Cloud — Run locally with Gemma/GGUF or use cloud APIs
Add to your pubspec.yaml:
dependencies:
genesis_ai_sdk: ^0.1.1Then run:
flutter pub getView on pub.dev: https://pub.dev/packages/genesis_ai_sdk
import 'package:genesis_ai_sdk/genesis_ai_sdk.dart';
final agent = GenesisAgent(
provider: GeminiProvider(apiKey: 'YOUR_KEY'),
systemPrompt: 'You are a helpful assistant.',
tools: [GenesisTools.calculator, GenesisTools.dateTime],
);
final response = await agent.chat('What is 1337 * 42, and what day is it?');
print(response);The agent figures out which tool to call and returns the answer automatically.
- API Reference — Complete API docs
- Installation Guide — Platform-specific setup
- CHANGELOG — Version history
- example/ — Full example app demonstrating all features
| Platform | Cloud | Ollama | Gemma | GGUF |
|---|---|---|---|---|
| Android | ✅ | ✅ | ✅ | ✅ |
| iOS | ✅ | ✅ | ✅ | |
| macOS | ✅ | ✅ | ✅ | ✅ |
| Windows | ✅ | ✅ | ✅ | ✅ |
| Web | ✅ | ❌ | ❌ | ❌ |
| Linux | ✅ | ✅ | ❌ | ✅ |
- genesis_ai_ui — Flutter UI components for AI responses
- genesis_ai_tools — Device tools (camera, location, contacts, clipboard)
- Semantic memory with vector search
- Mistral, Groq, Cohere providers
MIT License — see LICENSE
Contributions welcome! Please open an issue or pull request.
Built with ❤️ for Flutter developers
pub.dev • Docs • GitHub