Requirements

  • Zed Editor 0.130.0 or later
  • Autohand account (free tier available)
  • Internet connection for AI features

Why Zed? Zed is built from the ground up for performance. Its native Agent Client Protocol means AI features run with minimal latency, making it ideal for developers who want the fastest possible experience.

Installation

Enable Autohand in settings

  1. Open Zed
  2. Go to Settings (Cmd+, on Mac)
  3. Navigate to Features > AI Assistant
  4. Select "Autohand" as your provider

Using settings.json

Alternatively, add the following to your Zed settings.json:

{
  "assistant": {
    "enabled": true,
    "provider": {
      "name": "autohand",
      "model": "z-ai/glm-4.7"
    }
  }
}

Verify installation

Open the Command Palette (Cmd+Shift+P) and type "assistant" - you should see Autohand-related commands.

Authentication

Connect your Autohand account to enable AI features.

Browser authentication

  1. Open Command Palette (Cmd+Shift+P)
  2. Type "Autohand: Sign In"
  3. Your browser will open the authentication page
  4. Sign in with your Autohand account
  5. Return to Zed - you'll see a confirmation

API key authentication

If you prefer using an API key:

{
  "assistant": {
    "provider": {
      "name": "autohand",
      "api_key": "your-api-key-here"
    }
  }
}

Security note: Avoid committing API keys to version control. Use environment variables or Zed's secure credential storage when possible.

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

ActionMacLinux
Toggle assistantCmd+Shift+ACtrl+Shift+A
Inline assistCmd+EnterCtrl+Enter
Accept suggestionTabTab
Dismiss suggestionEscapeEscape
New conversationCmd+N (in panel)Ctrl+N (in panel)

Customize shortcuts in Zed Settings > Keymap.

Settings

Configure Autohand in your Zed settings.json.

SettingDescriptionDefault
assistant.provider.modelAI model to usez-ai/glm-4.7
assistant.inline_completionsEnable inline suggestionstrue
assistant.dockPanel position (left/right/bottom)right

Example configuration

{
  "assistant": {
    "enabled": true,
    "provider": {
      "name": "autohand",
      "model": "z-ai/glm-4.7"
    },
    "inline_completions": true,
    "dock": "right"
  }
}

Next steps