How it works
Unlike the Docker Compose runtimes (opencode, deepagents, hermes), the Elastic runtime does not start local containers. It:
- Uses the built-in
elastic_agent_builderruntime - Requires an existing Elastic Agent Builder agent ID
- Sends turns to Elasticβs
/api/agent_builder/converse/asyncendpoint - Can optionally target an Elastic space or connector
Prerequisites
- LiteLLM Agent Platform running
- Elastic API key
- Kibana base URL
- Existing Elastic Agent Builder agent ID
1. Add Elastic runtime credentials
Open Agent Runtimes, expand Elastic Agent Builder, paste your Elastic API key and Kibana base URL, then click Connect.
2. Create an agent
In the UI, create a new agent and choose the Elastic Agent Builder runtime once the runtime credentials are connected. The current UI handles the LAP agent fields. The Elastic-specific binding still lives in the agentconfig, so use the API when you need to bind an existing Elastic Agent Builder agent ID:
3. Start a session
4. Stream events
Memory across sessions
Store provider-specific binding options in the agentconfig. You can patch them later:
Comparison: Elastic vs Docker Compose runtimes
| Elastic | OpenCode / Deep Agents / Hermes | |
|---|---|---|
| Runtime ID | elastic_agent_builder | local-opencode, local-deepagents, local-hermes |
| Backend | Existing Elastic Agent Builder agent | Local template service |
| Setup | Save Elastic credentials and bind elastic_agent_id | docker compose --profile <name> up |
| Best for | Existing Elastic Agent Builder workflows | Local dev, demos |