One-click setup for index1, adding project knowledge base search to OpenClaw AI Agent.
Copy the script below and run it in the terminal at your project root:
.mcp.json and .claude/CLAUDE.md work with both OpenClaw and Claude Code. No need to maintain separate configs.
docker exec -u root <container> pip3 install index1 --break-system-packages
Use docs_status to check index statuscurl -fsSL https://ollama.com/install.sh | sh && ollama pull nomic-embed-text
contentless_delete (requires SQLite ≥ 3.43.0); older versions fall back automatically.
| Environment | SQLite | Behavior |
|---|---|---|
| macOS 14+ / Python 3.12+ | 3.43+ | Full functionality |
| Debian Bookworm (Docker) | 3.40 | Auto fallback |
| Ubuntu 22.04 | 3.37 | Auto fallback |
contentless_delete errors on older versions, please upgrade.
pip install index1[chinese]index1 doctor (Check 6 shows CJK support status)
| Problem | Cause | Solution |
|---|---|---|
| Tools not showing | MCP config error | Check .mcp.json |
| AI doesn't use docs_search | Search rules not added | Check .claude/CLAUDE.md |
command not found | index1 not in PATH | Use which index1 to get full path |
contentless_delete error | Outdated version | pip install --upgrade index1 |
| No search results | Not indexed | index1 index ./src ./docs |
| CJK search returns 0 | No jieba | pip install index1[chinese] |
| Vector search unavailable | No Ollama | Install Ollama and pull model |