Baserow plugin for Agent Zero

A complete Baserow integration for Agent Zero: manage connections (API token or email/password), select databases and tables, run row operations, and upload/attach files — all from chat or the settings UI.

Features

  • Connections — manage multiple named connections with API token or email/password (JWT) auth. Credentials are stored in Agent Zero's built-in SecretsManager, not in plaintext config.
  • Database / table selection — list_databases (applications), list_tables (per database id).
  • Row operations — list_rows, get_row, create_row, update_row, delete_row, search_rows.
  • File upload & attach — upload_file uploads a local file to Baserow and can attach it to a file field on a row (attach_file).
  • WebUI settings page — manage connections visually with credential-stored status badges and a connection test button.

Installation

  1. Copy or clone this repository into your Agent Zero user plugins directory:

    git clone https://github.com/OWNER/baserow-plugin /a0/usr/plugins/baserow
    
  2. Enable the plugin in the Agent Zero Plugins list (it's on by default when present).

  3. Reload the web UI.

No external Python dependencies are required — the plugin uses only the standard library (urllib).

Configuration

  1. Open Settings → Agent → Baserow.
  2. Click Add connection and give it a unique name.
  3. Enter your Baserow base URL (e.g. https://baserow.example.com).
  4. Choose an auth method:
    • API token — paste a Baserow API token (workspace or database-scoped).
    • Email / Password — enter your Baserow login credentials (the plugin exchanges them for a JWT).
  5. Click Test to verify the connection, then Save.

Credentials are stored in Agent Zero's built-in SecretsManager (usr/secrets.env); the plugin config only stores non-secret metadata.

Usage

Agent tool

Ask the agent to use the baserow tool, or compose JSON directly:

{
  "tool_name": "baserow",
  "tool_args": {
    "action": "create_row",
    "connection": "my_baserow",
    "table_id": 204,
    "values": "{\"Name\": \"Acme\"}"
  }
}

List databases and tables

{"tool_name": "baserow", "tool_args": {"action": "list_databases", "connection": "my_baserow"}}
{"tool_name": "baserow", "tool_args": {"action": "list_tables", "connection": "my_baserow", "database_id": 125}}

Row operations

Available actions: list_rows, get_row, create_row, update_row, delete_row, search_rows. All take connection and table_id (plus row_id/values as needed).

Upload a file (and attach it to a row field)

{
  "tool_name": "baserow",
  "tool_args": {
    "action": "upload_file",
    "connection": "my_baserow",
    "file_path": "/path/to/image.png",
    "table_id": 189,
    "row_id": 1,
    "field_id": 1330
  }
}

External service

This plugin interacts with a Baserow instance (your own or a hosted one). You need a Baserow account and a database with at least one table. The plugin calls the Baserow REST API; usage may count against your Baserow plan's API limits.

Cleanup / uninstall

  • Removing a connection in Settings deletes its metadata; you can also remove the stored secret from the SecretsManager (Settings → Secrets).
  • To uninstall the plugin, remove the baserow entry from usr/plugins/ and disable it in the Plugins list.

Note on database-scoped tokens

Baserow can issue database tokens scoped to one specific database (and only its tables). These tokens authenticate fine for row endpoints but typically cannot list applications/tables. The plugin handles this: list_databases/list_tables may return permission errors, while row operations on the permitted table work.

Endpoints used (Baserow REST API)

  • Auth: POST /api/user/token-auth/ (JWT), Authorization: Token <key> or Authorization: JWT <token>.
  • Databases: GET /api/applications/
  • Tables: GET /api/database/tables/database/{database_id}/
  • Rows: GET/POST /api/database/rows/table/{table_id}/ GET/PATCH/DELETE /api/database/rows/table/{table_id}/{row_id}/
  • File upload: POST /api/user-files/upload-file/

Development layout

api/                 API handlers (test_connection, connections)
helpers/             shared logic (client, connection store, secrets util)
prompts/             agent tool prompt docs
tools/               agent tool implementation
webui/               settings UI (config.html, store.js, thumbnail.png)

License

MIT — see LICENSE.

S
Description
Baserow plugin for Agent Zero
Readme MIT
89 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 79%
HTML 13.2%
JavaScript 7.8%