Elasticsearch Openclaw
/install elasticsearch-openclaw
Elasticsearch OpenClaw 🔍
Modern Elasticsearch 9.x patterns for AI-orchestrated applications.
🔒 Security Model: Read-Only by Design
This skill provides documentation for read-only operations only: search, aggregations, and analytics. No write operations (indexing, updates, deletions) are included or executed by the agent.
Note: This skill requires external credentials (Elasticsearch API key) to function. ClawHub security scanners may flag this as "suspicious" — this is expected for skills that integrate with external services. All code is transparent markdown documentation. Review before granting credentials.
Quick Start — Local Dev
For local Elasticsearch 9.x setup with Kibana, use the official start-local tool:
- Repository: https://github.com/elastic/start-local
- Documentation: https://www.elastic.co/start-local
Once running:
- Elasticsearch: http://localhost:9200
- Kibana: http://localhost:5601
- Credentials:
elastic-start-local/.env
Auth — Always Use API Keys
# Test connection
curl -s "$ELASTICSEARCH_URL" -H "Authorization: ApiKey $ELASTICSEARCH_API_KEY"
# Python client 9.x
from elasticsearch import Elasticsearch
es = Elasticsearch(ES_URL, api_key=API_KEY)
Reference Files
Load these only when needed — do not load all at once:
| File | Load when... |
|---|---|
references/semantic-search.md |
Setting up JINA, semantic_text, inference endpoint |
references/vector-search.md |
kNN queries, dense_vector mapping, hybrid search with RRF |
references/classic-patterns.md |
Mapping design, boolean queries, aggregations, pagination |
references/python-client-9.md |
Python elasticsearch 9.x — no body=, keyword args, type hints |
When to Use Each Pattern
User asks about meaning / intent / "find products like X"
→ semantic_text + semantic query → references/semantic-search.md
User needs exact match + semantic combined
→ hybrid search (RRF) → references/vector-search.md
User asks about mapping, field types, analyzers, aggregations
→ classic patterns → references/classic-patterns.md
User uses Python elasticsearch library
→ always check → references/python-client-9.md
Security Best Practices
- Always use API keys over username/password
- Scope API keys to specific indices and minimal privileges
- For read-only OpenClaw access:
privileges: ["read", "view_index_metadata"] - Store credentials in
.env, never hardcode in scripts .envalways in.gitignore
POST /_security/api_key
{
"name": "openclaw-readonly",
"role_descriptors": {
"reader": {
"indices": [{ "names": ["my-index"], "privileges": ["read"] }]
}
}
}
// Response:
{
"id": "VuaCfGcBCdbkQm-e5aOx",
"name": "openclaw-readonly",
"api_key": "ui2lp2axTNmsyakw9tvNnw",
"encoded": "VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw=="
}
⚠️ Save the encoded field from the response immediately — it cannot be retrieved later.
Add to: ~/.openclaw/workspace-[name]/.env as ELASTICSEARCH_API_KEY
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install elasticsearch-openclaw - 安装完成后,直接呼叫该 Skill 的名称或使用
/elasticsearch-openclaw触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Elasticsearch Openclaw 是什么?
Read-only Elasticsearch 9.x reference for AI-orchestrated search and analytics. SECURITY: This skill provides documentation for read-only operations only (se... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 547 次。
如何安装 Elasticsearch Openclaw?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install elasticsearch-openclaw」即可一键安装,无需额外配置。
Elasticsearch Openclaw 是免费的吗?
是的,Elasticsearch Openclaw 完全免费(开源免费),可自由下载、安装和使用。
Elasticsearch Openclaw 支持哪些平台?
Elasticsearch Openclaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Elasticsearch Openclaw?
由 Alex Salgado(@salgado)开发并维护,当前版本 v1.1.1。