Set up
1
Install and sign in
hai acp ships with the Python SDK’s acp extra. hai login saves your API key in ~/.config/hai/.env, so the key never goes through the editor.2
Add it to your editor
Register a custom agent that runs
hai acp. If the editor cannot find hai, use its full path from which hai. Other ACP editors, such as avante.nvim and Emacs agent-shell, take the same command and arguments; see the client list.3
Check it works
Start a thread with H agents: in Zed from the Agent Panel’s new-thread menu, in JetBrains from the agent list in AI Chat, in Neovim with The agent answers
:CodeCompanionChat adapter=h_agents, in OpenClaw with /acp spawn h-agents --bind here. Send:391 under a Watch the run link. Now add 9. in the same thread answers 400 from the same session.How it works
HAI_API_KEY and HAI_API_BASE_URL in the editor’s environment take precedence over ~/.config/hai/.env.