
Firebase Ai Logic Basics
This gets you up and running with Firebase AI Logic, which lets you call Gemini models directly from client apps without managing a backend. It covers the full setup flow including the critical npx firebase-tools init ailogic command that actually provisions the service, multimodal input handling for images and PDFs, structured JSON output, and streaming responses. The docs are clear about App Check being mandatory for production to prevent quota abuse, and they emphasize using the Gemini Developer API by default since it has a free tier. One nice touch is the hybrid on-device mode for web that automatically falls back to cloud when Gemini Nano isn't available locally.
- skills.sh installs
- 142.9K
- GitHub stars
- 508
- last updated
- Aug 21, 2026
Install
$ npx -y skills add firebase/agent-skills --skill firebase-ai-logic-basics --agent claude-codeInstalls into .claude/skills of the current project.
Files
Firebase AI Logic Basics
Overview
Firebase AI Logic is a product of Firebase that allows developers to add gen AI to their mobile and web apps using client-side SDKs. The app can directly call Gemini models via Firebase AI Logic without the developer needing to manage a dedicated backend. Firebase AI Logic was previously known as "Vertex AI for Firebase".
It supports the two Gemini API providers:
- Gemini Developer API: It has a free tier ideal for prototyping, and pay-as-you-go for production
- Agent Platform Gemini API (formerly branded Vertex AI): Ideal for scale with enterprise-grade production readiness, requires Blaze pricing plan
Use the Gemini Developer API as a default, and only Agent Platform Gemini API (formerly branded Vertex AI) if the application requires it.
Setup & initialization
Prerequisites
Sponsors
Details
- Repository
- github.com/firebase/agent-skills
- Categories
- Backend & APIs, Security, AI & Agent Building, Databases
- First seen
- May 16, 2026
More from firebase/agent-skills
All 23- Firebase Firestore142.8K
- Firebase Crashlytics138.9K
- Xcode Project Setup137.9K
- Firebase Remote Config Basics128.4K
- Extension To Functions Codebase63.5K
- Developing Genkit Js62.5K
- Developing Genkit Dart62.2K
- Developing Genkit Go49.5K
- Firebase Firestore Standard37K
- Firebase Firestore Enterprise Native Mode36K
- Firebase Ai Logic34.5K
- Developing Genkit Python33.6K
- Firestore Security Rules Auditor20.4K
- Firebase Local Env Setup5.1K
- Firebase Firestore Basics1.6K
- Firebase Data Connect
- Firebase Basics183.3K
- Firebase Auth Basics182.2K
- Firebase Hosting Basics177.5K
- Firebase App Hosting Basics176.9K
- Firebase Data Connect175.9K
- Firebase Security Rules Auditor146.2K