Skip to content
Esc
↑↓navigate↵open⌘Jpreview
Start
On this page

Getting Started

Set up Autohand Code in Zed Editor. Zed launches the Agent Client Protocol server built into Autohand Code CLI with autohand --acp.

Requirements

  • Autohand Code CLI installed: see CLI Overview. The install script needs no Node.js; the npm package needs Node.js 22 or newer.
  • Autohand Code CLI signed in or configured: ACP mode cannot show login screens, so finish setup in a terminal first.
  • Zed editor
# Check Autohand is installed
autohand --version

# Sign in, or run the setup wizard to choose a provider and model
autohand --login
autohand --setup

ACP mode reads credentials from the CLI config: an Autohand sign-in, or an API key for the active provider. It does not accept a token from Zed.

Installation

Zed is an ACP client: it launches autohand --acp, the Agent Client Protocol server built into Autohand Code CLI, as an agent process.

Install from the ACP Registry

In Zed, open zed: acp registry and install Autohand Code. The registry currently installs the separately versioned @autohandai/autohand-acp@0.2.1 adapter. The manual configuration below uses the ACP server built into Autohand Code CLI.

Step 1: Find the CLI path

Zed runs the command you give it. If Zed cannot find autohand on its PATH, use the full path:

which autohand

Step 2: Add Autohand to Zed’s settings

In Zed, open Agent Settings, go to External Agents, click Add Agent, then Add Custom Agent. Zed opens your settings.json with an agent_servers entry. Fill it in like this:

{
  "agent_servers": {
    "Autohand": {
      "type": "custom",
      "command": "autohand",
      "args": ["--acp"],
      "env": {}
    }
  }
}

--mode acp is the same as --acp. Replace autohand in command with the full path from Step 1 if needed.

Step 3: Start a thread

Open the Agent Panel and pick Autohand from the agent selector or the new-thread menu. You can also bind a key to agent: new external agent thread. Zed sends the project folder as the session’s working directory.

For the full setup, flags and troubleshooting, see the Zed integration guide and ACP mode.

Your first conversation

Start using Autohand in Zed with these basic interactions.

Open the assistant panel

  • Click the Assistant icon in the toolbar
  • Or use keyboard shortcut: Cmd+Shift+A
  • Or via Command Palette: “Assistant: Toggle”

Ask a question

Type a question or request in the assistant panel:

What does this function do and how can I improve it?

Autohand will analyze the current file and provide insights.

Request changes

Ask Autohand to modify your code:

Add input validation to this form handler

Autohand proposes changes that you can accept, modify, or reject.

Inline assistance

Use inline completions as you type:

  • Tab - Accept the suggestion
  • Escape - Dismiss the suggestion
  • Arrow keys - Navigate between suggestions

Set up project context

Help Autohand understand your project with an AGENTS.md file.

Generate automatically

  1. Open Command Palette (Cmd+Shift+P)
  2. Type “Autohand: Initialize Project”
  3. Review and customize the generated file

Create manually

Create an AGENTS.md file in your project root:

# AGENTS.md

## Project overview
A Rust CLI tool for managing cloud infrastructure.

## Tech stack
- Rust 1.75+
- Tokio for async runtime
- Clap for argument parsing

## Commands
- `cargo build` - Build the project
- `cargo test` - Run tests
- `cargo run -- --help` - Show CLI help

## Code style
- Use Result types for error handling
- Prefer explicit types over inference
- Write integration tests for CLI commands

Keyboard shortcuts

Action Mac Linux
Toggle assistant Cmd+Shift+A Ctrl+Shift+A
Inline assist Cmd+Enter Ctrl+Enter
Accept suggestion Tab Tab
Dismiss suggestion Escape Escape
New conversation Cmd+N (in panel) Ctrl+N (in panel)

Customize shortcuts in Zed Settings > Keymap.

Settings

ACP mode uses your normal Autohand configuration. Change it with autohand config set, /settings, or ~/.autohand/config.json, or pass CLI flags in args.

Next steps

Last updated on

Was this helpful?

Send Feedback

Help us improve this documentation page. Your feedback is valuable.

We'll only contact you if we need clarification