---
title: "Getting Started"
description: "Set up Autohand Code in Zed Editor. Zed launches the Agent Client Protocol server built into Autohand Code CLI with autohand --acp."
slug: "working-with-autohand-code/code/zed/getting-started"
seo:
  title: "Getting Started with Autohand for Zed"
  description: "Install and configure Autohand Code for Zed Editor through the Agent Client Protocol with autohand --acp."
---

## Requirements

- Autohand Code CLI installed: see [CLI Overview](/working-with-autohand-code/cli). 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](https://zed.dev/)

```bash
# 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:

```bash
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:

```json
{
  "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](/guides/zed-integration) and [ACP mode](/integrations/acp-mode).

## Your first conversation [#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:

```text
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:

```text
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 [#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:

```markdown
# 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`.

<AcademyCta course="autohand-code-on-every-surface" title="Autohand Code on every surface" blurb="Set up Autohand Code in VS Code, JetBrains and Zed, pair your phone, and sync settings across machines." />

## Next steps

- [Explore Zed features](/working-with-autohand-code/code/zed/features) - Learn about all available features
- [AGENTS.md guide](/working-with-autohand-code/agents-md) - Write effective project context
- [Skills system](/working-with-autohand-code/skills) - Extend capabilities with skills
- [Best practices](/guides/ace/best-practices) - Work effectively with AI agents
