> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blackbox.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ACP Integration with Zed Editor

> Complete guide to setting up Blackbox CLI with Zed editor using Agent Client Protocol (ACP)

# Agent Client Protocol (ACP)

The Agent Client Protocol (ACP) is an industry-standard protocol that enables AI agents to communicate seamlessly with development tools. Blackbox CLI supports ACP, allowing you to integrate powerful AI coding assistance directly into editors like Zed.

## What is ACP?

Agent Client Protocol (ACP) provides:

* **Standardized Communication:** A unified protocol for AI agents to interact with development environments
* **Context-Aware Intelligence:** The agent understands your project structure and coding patterns

## Setting Up Blackbox CLI with Zed Editor

Follow these steps to configure Blackbox CLI as an external agent in Zed editor using ACP.

##### Prerequisites

Before you begin, ensure you have:

* **Zed editor** installed on your system ([Download Zed](https://zed.dev))
* **Blackbox CLI** installed.
* **Blackbox AI API key**

##### Step-by-Step Setup Guide

##### Step 1: Open Zed Settings

Click on the settings icon in Zed editor to access the configuration panel.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step1-settings.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=f66b9259cf5e77fe19ee2ed0fc20fa49" alt="Step 1: Click on Settings" width="2926" height="1826" data-path="images/acp-setup/step1-settings.png" />

##### Step 2: Add Custom Agent

Navigate to the "External Agents" section and click on "Add Custom Agent" to begin configuring Blackbox CLI.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step2-add-agent.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=65609bec13ec344dadf1bd8471f5389f" alt="Step 2: Add Custom Agent" width="2930" height="1826" data-path="images/acp-setup/step2-add-agent.png" />

##### Step 3: Configure Blackbox CLI

Add the following JSON configuration for Blackbox CLI in your Zed settings:

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "agent_servers": {
    "Blackbox CLI": {
      "type": "custom",
      "command": "blackbox",
      "args": ["--experimental-acp"],
      "env": { "BLACKBOX_API_KEY": "<your-blackbox-api-key>" }
    }
  }
}
```

**Important:** Replace `<your-blackbox-api-key>` with your actual Blackbox AI API key.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step3-json-config.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=0573818a950546af711f6a95c3b69908" alt="Step 3: Add Blackbox JSON Configuration" width="2924" height="1830" data-path="images/acp-setup/step3-json-config.png" />

##### Step 4: Select Blackbox CLI Agent

Once configured, select "Blackbox CLI" from the External Agents list to activate it.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step4-select-agent.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=67a3de40f0feaf270ade63407612eca0" alt="Step 4: Select Blackbox CLI in External Agents" width="2926" height="1824" data-path="images/acp-setup/step4-select-agent.png" />

##### Step 5: Authenticate

If prompted for authentication, select "Use Blackbox AI API Key" to authenticate using your API key.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step5-auth.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=283d845c5a431fde0b1444725ab00268" alt="Step 5: Use Blackbox AI API Key Authentication" width="902" height="1768" data-path="images/acp-setup/step5-auth.png" />

##### Step 6: Start Coding with AI

You're all set! Say "Hi" to test the agent configuration and start leveraging AI-powered coding assistance.

<img src="https://mintcdn.com/blackboxai-3b9e98f8/J5lOve0KcaeBGbCH/images/acp-setup/step6-ready.png?fit=max&auto=format&n=J5lOve0KcaeBGbCH&q=85&s=91d97cb86717ac1e8a93a43942ed2cc7" alt="Step 6: Agent Ready - Say Hi" width="902" height="1760" data-path="images/acp-setup/step6-ready.png" />
