Firestore for Openclaw

A powerful tool for managing Google Cloud Firestore databases directly through the REST API using curl and gcloud authentication.

felipe0liveira
v1.0.4
Mar 7, 2026
0
860
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install firestore

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install firestore using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Firestore?

The firestore skill for Openclaw Skills provides a robust interface for interacting with Google Cloud Firestore databases. By leveraging the official Firestore REST API, this skill allows developers and AI agents to perform full CRUD (Create, Read, Update, Delete) operations on documents and collections. It emphasizes security by requiring service account authentication and explicit user approval for every command, ensuring that database management remains transparent and controlled.

This integration is ideal for developers who need to bridge the gap between AI-driven workflows and cloud-native databases. Whether you are querying document sets or performing complex batch writes, the firestore skill streamlines the process within the Openclaw Skills ecosystem.

Firestore Use Cases

  • Automating database maintenance tasks via CLI-driven workflows.
  • Integrating Firestore document management into AI agent development cycles.
  • Performing rapid prototyping and data inspection without a full client SDK.
  • Executing secure, token-based CRUD operations in a controlled environment.
  • Managing multi-project Firestore instances using simple Openclaw Skills commands.

How Firestore Works

  1. The skill identifies the active Google Cloud project and service account context using the gcloud CLI.
  2. A fresh OAuth 2.0 access token is generated to authenticate the upcoming request.
  3. A specific REST API request is constructed as a curl command based on the desired operation, such as POST for creation or PATCH for updates.
  4. The skill presents the full command and security context to the user to maintain the security standards of Openclaw Skills.
  5. Upon explicit approval, the command is executed, and the resulting JSON data is parsed and returned to the agent.

Firestore Setup

To use this within the Openclaw Skills framework, ensure you have the Google Cloud SDK and curl installed. Follow these steps:

  1. Install the gcloud CLI from the official Google Cloud documentation.
  2. Authenticate using a dedicated service account to ensure least-privilege access.
  3. Verify your environment and active project:
gcloud config list --format='text(core.account,core.project)'
  1. Ensure the firestore skill is active in your agent configuration.

Firestore Data Schema & Taxonomy

Firestore data is organized into collections and documents. This skill follows the official Firestore REST API schema, which utilizes strictly typed field values for data integrity.

Field Type JSON Representation
String {\"stringValue\": \"example\"}
Integer {\"integerValue\": \"123\"}
Boolean {\"booleanValue\": true}
Map/Object {\"mapValue\": {...}}
Array {\"arrayValue\": {...}}

All documents are managed via the standard hierarchy: projects/{PROJECT_ID}/databases/{DATABASE_ID}/documents.

Firestore Advanced Features

  • Support for complex field filters including ARRAY_CONTAINS, IN, and inequality operators.
  • Atomic batch operations allowing multiple writes to be performed in a single transaction.
  • Precise field updates using updateMask to modify specific data without overwriting documents.
  • Seamless integration with gcloud identity management for secure token rotation.
  • Strict human-in-the-loop approval policy for every operation initiated through Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*