ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

PocketBase

Build backends with PocketBase collections, auth, and realtime.

Why use this skill?

Integrate PocketBase into OpenClaw with this powerful skill. Manage collections, authentication, realtime events, and file uploads with ease.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ivangdavila/pocketbase
Or

What This Skill Does

The PocketBase skill empowers OpenClaw to interact seamlessly with PocketBase backends. It provides an abstracted interface to manage collections, handle user authentication, subscribe to realtime events, and perform file operations. By leveraging the official JavaScript SDK, it allows the agent to build, query, and maintain database-driven applications without writing boilerplate code, enabling efficient data-driven workflows directly through the AI agent interface.

Installation

To integrate this skill into your environment, use the OpenClaw CLI: clawhub install openclaw/skills/skills/ivangdavila/pocketbase

Use Cases

  • Automated CRUD Operations: Quickly sync data from external sources into your PocketBase collections for persistent storage.
  • Authentication Management: Securely handle user logins and maintain auth states within automated agent workflows.
  • Realtime Monitoring: Set up listeners for database changes to trigger secondary agent tasks automatically upon record updates.
  • File Handling: Upload, manage, and retrieve user documents or media assets tied to specific database records.
  • Backend Prototyping: Rapidly structure database collections and apply access rules to build MVP backends during development sessions.

Example Prompts

  1. "Fetch all active users from the 'profiles' collection that were created in 2024 and include their associated posts using the expand parameter."
  2. "Subscribe to the 'orders' collection in real-time and log every new 'create' action to the console."
  3. "Upload the file 'document.pdf' to the 'reports' collection under the 'file' field for the current user record."

Tips & Limitations

  • Authentication Check: Always verify pb.authStore.isValid before executing operations to avoid stale data issues.
  • Relationship Expansion: Remember that expanded data is nested within record.expand, not at the root level.
  • Security: Be careful with Collection Rules; an empty string represents an 'open to everyone' rule, which can accidentally expose sensitive data if misconfigured.
  • Performance: Hooks defined in pb_hooks run synchronously; avoid heavy logic here to prevent blocking user requests. Use the pb.js file extension strictly for hooks to ensure they are registered by the PocketBase engine. Always unsubscribe from realtime events to prevent memory leaks in long-running agent sessions.

Metadata

Stars2102
Views0
Updated2026-03-06
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ivangdavila-pocketbase": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#database#backend#pocketbase#realtime#sdk
Safety Score: 3/5

Flags: network-access, external-api, file-read, file-write