Use Autohand CLI from Zed and other ACP-compatible editors!
- File Operations: Read, write, search, and modify files
- Terminal Commands: Execute shell commands with output streaming
- Session Management: Resume previous sessions, fork conversations
- Permission Controls: External (Zed UI), auto-approve, or restricted modes
- Dynamic Titles: Auto-generated session names from your first message
- Image Support: Paste screenshots for visual context
- Slash Commands:
/help,/new,/model,/mode,/resume,/threads,/status, and more - TODO/Planning: Visual task tracking in Zed's UI
- MCP Integration: Connect to HTTP/SSE MCP servers
Learn more about the Agent Client Protocol.
Once published to the Zed Extension Registry:
- Open Zed
- Go to Extensions (
Cmd+Shift+X) - Search for "Autohand CLI"
- Click Install
- Open Agent Panel and select "Autohand CLI" from the
+menu
Add to your Zed settings (~/.config/zed/settings.json):
{
"agent_servers": {
"Autohand CLI": {
"command": "npx",
"args": ["@autohandai/autohand-acp"],
"env": {
"AUTOHAND_PERMISSION_MODE": "external"
}
}
}
}npm install -g @autohandai/autohand-acpThen add to Zed settings:
{
"agent_servers": {
"Autohand CLI": {
"command": "autohand-acp",
"env": {
"AUTOHAND_PERMISSION_MODE": "external"
}
}
}
}This adapter works with any ACP-compatible client. Submit a PR to add documentation for your editor!
- Node.js >= 18.17
autohandCLI installed and configured (~/.autohand/config.json)
Environment variables control how the adapter launches Autohand:
| Variable | Description | Default |
|---|---|---|
AUTOHAND_CMD |
Path or command name for Autohand | autohand |
AUTOHAND_CONFIG |
Path to config file | ~/.autohand/config.json |
AUTOHAND_MODEL |
Override the model | - |
AUTOHAND_PERMISSION_MODE |
auto, external, restricted, unrestricted, ask |
auto |
AUTOHAND_DRY_RUN |
Set to 1 for dry-run mode |
- |
AUTOHAND_AUTO_COMMIT |
Set to 1 to auto-commit changes |
- |
AUTOHAND_AVAILABLE_MODELS |
Comma-separated model IDs | - |
AUTOHAND_INCLUDE_HISTORY |
Set to 1 to include prior turns |
- |
- auto: Auto-confirm risky actions (
--yes) - external: Forward permission requests to Zed via ACP (recommended for interactive use)
- restricted: Deny all dangerous operations automatically
- unrestricted: Run without any approval prompts (use with caution)
- ask: Run without flags (may hang if prompts appear)
File mentions work automatically in Zed. When you reference a file using @filename:
- The adapter reads the file content
- Embeds it in the prompt sent to Autohand CLI
- Autohand can then analyze or modify the file
This enables context-aware assistance without manually copying file contents.
When AUTOHAND_PERMISSION_MODE=external, the adapter starts a local HTTP server that Autohand CLI calls to request permissions:
- Adapter starts permission server on localhost
- Passes
AUTOHAND_PERMISSION_CALLBACK_URLto Autohand CLI - Autohand CLI calls the URL when it needs permission
- Adapter forwards to Zed via ACP
requestPermission - User sees Allow/Reject buttons in Zed
- Decision is returned to Autohand CLI
This requires Autohand CLI v0.6+ with external callback support.
| Command | Description |
|---|---|
/help |
Show available commands |
/new |
Start a new conversation |
/model [name] |
Select or change model |
/mode [name] |
Select mode (default/ask/code) |
/resume [id] |
Resume a previous session |
/threads |
List and switch between sessions |
/sessions |
List recent sessions |
/session |
Show current session info |
/status |
Show Autohand status |
/init |
Create AGENTS.md file |
/undo |
Undo last file change |
npm install
npm run build
npm run test
npm run lint# Build local distribution
./scripts/build-local.sh
# Start local server (in separate terminal)
cd dist-local && python3 -m http.server 8765
# Copy dev config and install in Zed
cp extension.dev.toml extension.toml
# Then in Zed: "zed: install dev extension" -> select this folder./scripts/release.sh patch # 0.1.1 -> 0.1.2
./scripts/release.sh minor # 0.1.1 -> 0.2.0
./scripts/release.sh major # 0.1.1 -> 1.0.0
./scripts/release.sh 0.2.5 # Set specific versionThis script will:
- ✅ Bump version in
package.jsonandextension.toml - ✅ Run tests
- ✅ Commit and tag
- ✅ Push to GitHub (triggers CI build)
- ✅ Guide you through Zed registry submission
Apache-2.0