Supported AI Tools

Lacy works with any AI CLI that accepts a query argument. All tools handle their own authentication — no API keys are needed from Lacy.

Available tools

ToolCommandPrompt flagNotes
lashlash run -c "query"-cRecommended. Preheating support.
claudeclaude -p "query"-pClaude Code. Session reuse via --resume.
opencodeopencode run -c "query"-cPreheating support.
geminigemini --resume -p "query"-pGoogle Gemini.
codexcodex exec resume --last "query"positionalOpenAI Codex CLI.
hermeshermes chat -q "query"-qLocal/open-source models.
customuser-defineduser-definedAny CLI tool.

Selecting a tool

bash
tool              # show active tool + available tools
tool set lash     # set active tool
tool set claude
tool set gemini

The active tool persists to ~/.lacy/config.yaml.

Auto-detection

When agent_tools.active is empty in config, Lacy auto-detects the first installed tool in this priority order: lash → claude → opencode → gemini → codex → hermes.

If no tool is detected on first run, Lacy prompts to install lash.

Custom tool

bash
tool set custom "my-ai-tool --flag"
# or in config.yaml:
# agent_tools:
#   active: custom
#   custom_command: "my-ai-tool --flag"

Lacy appends the user query as the last argument. Your command should accept the query as its final positional argument.

Preheating

lash and opencode support preheating — a background server that stays warm between queries, eliminating cold-start latency.

yaml
# ~/.lacy/config.yaml
# preheat:
#   eager: false        # Start background server on plugin load
#   server_port: 4096   # Port for background server

Claude uses --resume SESSION_ID for conversation continuity instead of a background server. Other tools have no preheating.

lash (recommended)

lash is an opencode fork built by the same author as Lacy. It's the recommended default for the best integration experience, including preheating, session management, and tight context passing.

bash
# Install lash
curl -fsSL https://lash.lacy.sh/install | bash
Tip

During Lacy installation, if no AI tool is detected, you'll be prompted to install lash automatically.