AI Agents
Bonsai works with AI coding agents. Connect Claude Code, Claude Desktop, Cursor, VS Code, Codex or any other agent, and it can create Elasticsearch and OpenSearch clusters, wire them into your app, and watch their usage, metrics and top search queries for you. Start with the overview, or go straight to Claude Code or other MCP clients.
Overview
The ways an AI agent can manage Bonsai clusters: an agent skill, an MCP server, the API, and docs in Markdown.
Claude Code
Give Claude Code the Bonsai skill, the Bonsai MCP server, or both, and manage clusters by asking.
Claude Desktop, Cursor, VS Code and Codex
Add the Bonsai MCP server to Claude Desktop, Cursor, VS Code, Codex or any other MCP client.
Other agents
Add Bonsai's agent instructions to AGENTS.md or a rules file, for Codex, Cursor, Copilot and other agents that run shell commands.
What agents can do
The cluster tasks an agent can take on, with example prompts: create and connect, monitor, analyze search queries, resize and clean up.
Keeping agents safe
Limit what an agent can do with token scopes and read-only mode, and see how Bonsai keeps passwords and tokens away from it.
Docs and API for agents
Read these docs as Markdown, and use the API's OpenAPI description and llms.txt, from an agent or a language model.
Ready to power your search with AI?
Launch a fully managed Elasticsearch or OpenSearch cluster, with built-in vector search and AI capabilities.