Native OpenClaw SQLite database plugin with schema, query, and CRUD tools
Install
$
openclaw plugins install clawhub:databaseDatabase Plugin
Native OpenClaw plugin that adds local SQLite database management with:
- schema inspection for tables, columns, indexes, and full CREATE statements
- raw SQL query and execution tools for advanced SQLite workflows
- transactional multi-statement execution with rollback on failure
- structured table, index, insert, select, update, and delete helpers
Install
npm install
npm run build
openclaw plugins install .
openclaw plugins enable database
openclaw gateway restart
Config
{
plugins: {
entries: {
database: {
enabled: true,
config: {
storagePath: "~/.openclaw/state/database/database.sqlite",
resultRowLimit: 100,
busyTimeoutMs: 5000,
enableWal: true,
},
},
},
},
}
If storagePath is omitted, the plugin stores data in ~/.openclaw/state/database/database.sqlite.
Tools
database_list_tablesdatabase_describe_tabledatabase_schemadatabase_create_tabledatabase_create_indexdatabase_drop_indexdatabase_drop_tabledatabase_querydatabase_executedatabase_transactiondatabase_insertdatabase_selectdatabase_updatedatabase_delete
