firebase avatar

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-code

Installs 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
1firebase avatarfirebase-ai-logicfirebase/agent-skillsOfficial skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.34.5Kskills.sh installs
2wshobson avatarauth-implementation-patternswshobson/agentsMaster authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when 20.9Kskills.sh installs
3wshobson avatardotnet-backend-patternswshobson/agentsMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity19.6Kskills.sh installs
4google avatargemini-agents-apigoogle/skillsManages custom Agent resources on Gemini Enterprise Agent Platform. Use when the user wants to programmatically create, configure, list, update, or delete state10.4Kskills.sh installs
5anthropics avatarbuild-mcp-serveranthropics/claude-plugins-officialThis skill should be used when the user asks to "build an MCP server", "create an MCP", "make an MCP integration", "wrap an API for Claude", "expose tools to Cl7.4Kskills.sh installs
6jeffallan avatarwebsocket-engineerjeffallan/claude-skillsUse when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence trac7.1Kskills.sh installs