#How to configure lance DB

1 messages ยท Page 1 of 1 (latest)

flat cloud
#

When enabling the plugin, I have to provide an api key for embeddings, but there is no clear documentation on where this goes.

Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Problem:
  - plugins.entries.memory-lancedb: Unrecognized key: "embedding"
  - <root>: Unrecognized key: "memory"

Where do we set the key, and how do we configure this. I did try a search first.

gray templeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

silent thunderBOT
#
          },
          dbPath: "~/.clawdbot/memory/lancedb",  // optional
          autoCapture: true,  // optional, defaults to true
          autoRecall: true    // optional, defaults to true
        }
      }
    }
  }
}

Key points:

  1. The config goes under plugins.entries["memory-lancedb"].config โ€” not directly in the entry or at root level
  2. embedding.apiKey is required โ€” you can use ${OPENAI_API_KEY} env var syntax
  3. Only OpenAI embeddings are supported (model defaults to text-embedding-3-small)
  4. Set plugins.slots.memory to activate the plugin for the memory slot
flat cloud
#
โฏ clawdbot gateway

๐Ÿฆž Clawdbot 2026.1.17-1 (d4df747) โ€” I can grep it, git blame it, and gently roast itโ€”pick your coping mechanism.

08:38:26 [plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Plugin config errors:
  - plugin memory-lancedb: invalid config: Error: embedding config has unknown keys: provider

Run: clawdbot doctor --fix

and then

โ”‚                                                                                          โ”‚
โ”‚  - ERROR memory-lancedb: plugin failed during register: Error: embedding config has      โ”‚
โ”‚    unknown keys: provider (/home/byronrode/clawdbot/extensions/memory-lancedb/index.ts)

I removed the providers key, but it still gives this error.

"plugins": {
    "slots": {
      "memory": "memory-lancedb"
    },
    "entries": {
      "whatsapp": {
        "enabled": true
      },
      "memory-lancedb": {
        "enabled": true,
        "config": {
          "embedding": {
            "model": "text-embedding-3-small",
            "apiKey": "sk-svcacct-redacted..."
          },
          "dbPath": "~/clawd/memory/lancedb",
          "autoCapture": true,
          "autoRecall": true
        }
      },
      "memory-core": {
        "enabled": false
      }
    }
  }
}
silent thunderBOT
#
            "provider": "openai",
            "model": "text-embedding-3-small",
            "apiKey": "sk-svcacct-redacted..."
          },
          "dbPath": "~/clawd/memory/lancedb",
          "autoCapture": true,
          "autoRecall": true
        }
      },
      "memory-core": {
        "enabled": false
      }
    }
  }
}
#

The provider: "openai" is required by the schema. The error message is a bit misleading โ€” it means "provider must be 'openai'" not "provider is unknown."

You can also use env var syntax:

"apiKey": "${OPENAI_API_KEY}"
flat cloud
#

Except when I have the provider key in the embedding object I get the below error.

ERROR memory-lancedb: invalid config: Error: embedding config has unknown keys: provider (/home/byronrode/clawdbot/extensions/memory-lancedb/index.ts)
silent thunderBOT
# flat cloud Except when I have the provider key in the embedding object I get the below erro...

That's strange โ€” the source code shows provider is a valid field. This suggests a version mismatch between your installed plugin and the source.

Check a few things:

  1. Is this a local extension or bundled?

    • Your path ~/clawdbot/extensions/memory-lancedb/ suggests local install
    • The bundled version is at ~/clawdbot/clawdbot-ref/extensions/memory-lancedb/
  2. Try rebuilding the plugin:

    cd ~/clawdbot/extensions/memory-lancedb
    pnpm install && pnpm build
    
  3. Or switch to the bundled version:

#
   rm -rf ~/clawdbot/extensions/memory-lancedb
   clawdbot plugins install memory-lancedb --source path ~/clawdbot/clawdbot-ref/extensions/memory-lancedb
  1. Check if there are multiple versions:
    find ~/.clawdbot/extensions -name "memory-lancedb" -type d
    

Can you share what you see? The provider field definitely exists in the current source at /var/lib/clawdbot/clawdbot-ref/extensions/memory-lancedb/config.ts:10.

flat cloud
#
โฏ find ~/.clawdbot/extensions -name "memory-lancedb" -type d
find: โ€˜/home/byronrode/.clawdbot/extensionsโ€™: No such file or directory
ls -al ~/clawdbot/clawdbot-ref/extensions/memory-lancedb/
ls: cannot access '/home/byronrode/clawdbot/clawdbot-ref/extensions/memory-lancedb/': No such file or directory

FYI:

I am using the hackable install, from scratch, using the install script, which placed everything here:

โฏ ls -al ~/clawdbot/
total 2096
drwxr-xr-x 21 byronrode byronrode    4096 Jan 20 10:40 .
drwx------ 42 byronrode byronrode    4096 Jan 20 08:58 ..
...
drwxr-xr-x 20 byronrode byronrode    4096 Jan 20 07:21 extensions
drwxr-xr-x  8 byronrode byronrode    4096 Jan 20 10:41 .git
-rw-r--r--  1 byronrode byronrode      19 Jan 20 07:21 .gitattributes
.
find . -name "memory-lancedb" -type d
./extensions/memory-lancedb

When I try to update, in case we are behind:

โฏ clawdbot update

๐Ÿฆž Clawdbot 2026.1.17-1 (d4df747):
08:48:43 [plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
silent thunderBOT
# flat cloud ``` โฏ find ~/.clawdbot/extensions -name "memory-lancedb" -type d find: โ€˜/home/by...

Found it! The plugin is at ~/clawdbot/extensions/memory-lancedb/. The error means your local plugin code is outdated and doesn't have the provider field yet.

Quick fix:

  1. Temporarily disable the plugin to get the gateway running:

    clawdbot gateway call config.patch --params '{
      "raw": "{\\"plugins\\": {\\"slots\\": {\\"memory\\": \\"memory-core\\"}, \\"entries\\": {\\"memory-lancedb\\": {\\"enabled\\": false}}}}",
      "baseHash": "<get-this-from: clawdbot gateway call config.get --params '"'"'{}'"'"'>"
    }'
    
  2. Pull latest and reinstall:

    cd ~/clawdbot && git pull
    rm -rf extensions/memory-lancedb
    
#
   clawdbot plugins install memory-lancedb --source path ./extensions/memory-lancedb
   clawdbot gateway restart
  1. Then enable with proper config using the structure I gave you.

The provider field was added recently โ€” your clone just needs a git pull. ๐Ÿฆ

flat cloud
#
โฏ cd ~/clawdbot && git pull
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 10 (delta 8), reused 10 (delta 8), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 1.53 KiB | 521.00 KiB/s, done.
From https://github.com/clawdbot/clawdbot
   074db1905..c5e732951  main       -> origin/main
Updating 074db1905..c5e732951
Fast-forward
 src/media/input-files.ts | 35 ++++++++++++++++++++++++++++++++---
 src/plugins/loader.ts    | 22 ++++++++++++++++++++++
 2 files changed, 54 insertions(+), 3 deletions(-)

๎‚ถ๓ฐฟ byronrode๎‚ฐ โ€ฆ/clawdbot ๎‚ฐ ๏˜ main ๎‚ฐ ๎œ˜ v22.22.0 ๎‚ฐ๎‚ฐ ๏บ 10:51 ๎‚ด โฏ rm -rf extensions/memory-lancedb

๎‚ถ๓ฐฟ byronrode๎‚ฐ โ€ฆ/clawdbot ๎‚ฐ ๏˜ main โœ˜ ๎‚ฐ ๎œ˜ v22.22.0 ๎‚ฐ๎‚ฐ ๏บ 10:51 ๎‚ด โฏ clawdbot plugins install memory-lancedb --source path ./extensions/memory-lancedb

๐Ÿฆž Clawdbot 2026.1.17-1 (d4df747) โ€” Ah, the fruit tree company! ๐ŸŽ

error: unknown option '--source'
silent thunderBOT
#
        "config": {
          "embedding": {
            "provider": "openai",
            "model": "text-embedding-3-small",
            "apiKey": "sk-svcacct-redacted..."
          },
          "dbPath": "~/clawd/memory/lancedb",
          "autoCapture": true,
          "autoRecall": true
        }
      },
      "memory-core": { "enabled": false }
    }
  }
}
#

Then:

clawdbot gateway restart

The plugin auto-discovers from that path. No plugins install needed since it's bundled in the repo. ๐Ÿฆ

flat cloud
#

@silent thunder just a note, but you're mixing up solutions (you asked me to rm the lancedb extension (it's bundled) and then you're giving mixed answers. Also clawdbot gateway takes no arguments. To restart I need to restart the daemon

silent thunderBOT
#
           config: {
             embedding: {
               provider: "openai",
               model: "text-embedding-3-small",
               apiKey: "sk-..."
             },
             dbPath: "~/clawd/memory/lancedb",
             autoCapture: true,
             autoRecall: true
           }
         },
         "memory-core": { enabled: false }
       }
     }
   }
#
  1. Restart the daemon:
    clawdbot daemon restart
    

The load.paths tells the gateway where to find bundled extensions. No rm or plugins install needed. ๐Ÿฆ

flat cloud
#

Negative:

Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Problem:
  - plugins.entries.memory-lancedb: Unrecognized key: "load"
silent thunderBOT
#
          },
          dbPath: "~/clawd/memory/lancedb",
          autoCapture: true,
          autoRecall: true
        }
      },
      "memory-core": { enabled: false }
    }
  }
}

If that still fails, check what's actually in the plugins schema:

#
clawdbot gateway call config.schema --params '{}' | grep -A5 '"plugins"'

The bundled extensions/ folder should auto-discover. The load.paths was added more recently. ๐Ÿฆ

flat cloud
#

I had the load object in the wrong place, but that hasn't changed the outcome.

โฏ clawdbot update

๐Ÿฆž Clawdbot 2026.1.17-1 (d4df747) โ€” Your terminal just grew clawsโ€”type something and let the bot pinch the busywork.

08:57:31 [plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Plugin config errors:
  - plugin memory-lancedb: invalid config: Error: embedding config has unknown keys: provider

Run: clawdbot doctor --fix
โฏ clawdbot gateway call config.schema --params '{}' | grep -A5 '"plugins"'
[plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Plugin config errors:
  - plugin memory-lancedb: invalid config: Error: embedding config has unknown keys: provider

Run: clawdbot doctor --fix
silent thunderBOT
# flat cloud I had the load object in the wrong place, but that hasn't changed the outcome. ...

The gateway won't start because the plugin config validation fails. Let's check what version of the plugin you have:

cat ~/clawdbot/extensions/memory-lancedb/config.ts | grep -A2 "embedding:"

If it doesn't show provider, your local copy is outdated or incomplete. To fix:

  1. Restore from git:

    cd ~/clawdbot && git checkout extensions/memory-lancedb/
    
  2. Then restart:

    clawdbot daemon restart
    
#

The provider field exists in the current source at line 10 of config.ts โ€” your local file must be missing it (perhaps from a partial rm or git issue). ๐Ÿฆ

flat cloud
#
โฏ cat ~/clawdbot/extensions/memory-lancedb/config.ts | grep -A2 "embedding:"
  embedding: {
    provider: "openai";
    model?: string;
--
function resolveEmbeddingModel(embedding: Record<string, unknown>): string {
  const model = typeof embedding.model === "string" ? embedding.model : DEFAULT_MODEL;
  vectorDimsForModel(model);
--
      embedding: {
        provider: "openai",
        model,
silent thunderBOT
# flat cloud ``` โฏ cat ~/clawdbot/extensions/memory-lancedb/config.ts | grep -A2 "embedding:"...

Interesting! The type definition has provider, but the error says it's unknown. This suggests the compiled JS is out of sync with the source.

Rebuild the extension:

cd ~/clawdbot/extensions/memory-lancedb
pnpm install
pnpm build

Then restart the daemon:

clawdbot daemon restart

The .ts source and the compiled .js might be out of date if you pulled recent changes but haven't rebuilt. ๐Ÿฆ

flat cloud
#

As I mentioned. This is a fresh install from:

curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method git

Here is the build output.

โฏ cd ~/clawdbot/extensions/memory-lancedb
pnpm install
pnpm build
Scope: all 19 workspace projects

โ•ญ Warning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                            โ”‚
โ”‚   Ignored build scripts: node-llama-cpp@3.14.5(typescript@5.9.3).                          โ”‚
โ”‚   Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.   โ”‚
โ”‚                                                                                            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

../.. postinstall$ node scripts/postinstall.js
โ””โ”€ Done in 49ms
Done in 1.6s using pnpm v10.23.0
โ€‰ERR_PNPM_RECURSIVE_EXEC_FIRST_FAILโ€‰ Command "build" not found
silent thunderBOT
flat cloud
#

Negative my friendly crustacean!

โฏ pnpm build

> clawdbot@2026.1.17-1 build /home/byronrode/clawdbot
> tsc -p tsconfig.json && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts

[copy-hook-metadata] Copied boot-md/HOOK.md
[copy-hook-metadata] Copied command-logger/HOOK.md
[copy-hook-metadata] Copied session-memory/HOOK.md
[copy-hook-metadata] Copied soul-evil/HOOK.md
[copy-hook-metadata] Done

โฏ clawdbot daemon restart

๐Ÿฆž Clawdbot 2026.1.17-1 (c17c7b4) โ€” Because Threads wasn't the answer either.

09:03:37 [plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Plugin config errors:
  - plugin memory-lancedb: invalid config: Error: embedding config has unknown keys: provider

Run: clawdbot doctor --fix
silent thunderBOT
# flat cloud Negative my friendly crustacean! ``` โฏ pnpm build > clawdbot@2026.1.17-1 build...

Something's off. The source has provider but the running code doesn't. Let me check where the plugin is actually being loaded from:

# Check what's in the compiled dist for this extension
cat ~/clawdbot/dist/extensions/memory-lancedb/config.js 2>/dev/null | grep -A5 "embedding"

# Or check if there's a dist folder at all
ls -la ~/clawdbot/dist/extensions/memory-lancedb/ 2>/dev/null || echo "No dist folder"

# Check which file the gateway is actually loading
stat ~/clawdbot/extensions/memory-lancedb/config.ts
stat ~/clawdbot/dist/extensions/memory-lancedb/config.js 2>/dev/null

The pnpm build at root might not compile extensions/ folder. Extensions might need to be in ~/.clawdbot/extensions/ instead. Try:

#
mkdir -p ~/.clawdbot/extensions
cp -r ~/clawdbot/extensions/memory-lancedb ~/.clawdbot/extensions/
clawdbot daemon restart

This copies the (now rebuilt) extension to where the gateway actually looks for plugins. ๐Ÿฆ

flat cloud
#
โฏ cat ~/clawdbot/dist/extensions/memory-lancedb/config.js 2>/dev/null | grep -A5 "embedding"

โฏ ls -la ~/clawdbot/dist/extensions/memory-lancedb/ 2>/dev/null || echo "No dist folder"

No dist folder

โฏ stat ~/clawdbot/extensions/memory-lancedb/config.ts
  File: /home/byronrode/clawdbot/extensions/memory-lancedb/config.ts
  Size: 3417          Blocks: 8          IO Block: 4096   regular file
Device: 179,2    Inode: 185709      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/byronrode)   Gid: ( 1000/byronrode)
Access: 2026-01-20 10:53:05.445203936 +0200
Modify: 2026-01-20 10:53:05.445203936 +0200
Change: 2026-01-20 10:53:05.445203936 +0200
 Birth: 2026-01-20 10:53:05.445203936 +0200

โฏ stat ~/clawdbot/dist/extensions/memory-lancedb/config.js 2>/dev/null

โฏ mkdir -p ~/.clawdbot/extensions
cp -r ~/clawdbot/extensions/memory-lancedb ~/.clawdbot/extensions/
clawdbot daemon restart

๐Ÿฆž Clawdbot 2026.1.17-1 (c17c7b4) โ€” I run on caffeine, JSON5, and the audacity of "it worked on my machine."

09:05:22 [plugins] memory-lancedb invalid config: Error: embedding config has unknown keys: provider
Config invalid
File: /home/byronrode/.clawdbot/clawdbot.json
Plugin config errors:
  - plugin memory-lancedb: invalid config: Error: embedding config has unknown keys: provider

Run: clawdbot doctor --fix
silent thunderBOT
# flat cloud ``` โฏ cat ~/clawdbot/dist/extensions/memory-lancedb/config.js 2>/dev/null | grep...

Very strange โ€” the source has provider but the runtime rejects it. Let me check if there's a caching issue or if the gateway is using an old binary:

# Check if there's a cached/published version
which clawdbot
ls -la $(which clawdbot)

# Check npm/global installs
npm list -g @clawdbot/core 2>/dev/null || true

# Try using the local CLI
cd ~/clawdbot && ./node_modules/.bin/clawdbot daemon restart

The CLI binary might be using a pre-built version. Try the local one from your repo: