mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
- Replace local image paths with Alibaba Cloud CDN URLs - Fix formatting issues (extra blank lines, capitalization) - Remove local image files (now served from CDN) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
72 lines
2.2 KiB
Markdown
72 lines
2.2 KiB
Markdown
# Zed Editor
|
|
|
|
> Zed Editor provides native support for AI coding assistants through the Agent Client Protocol (ACP). This integration allows you to use Qwen Code directly within Zed's interface with real-time code suggestions.
|
|
|
|

|
|
|
|
### Features
|
|
|
|
- **Native agent experience**: Integrated AI assistant panel within Zed's interface
|
|
- **Agent Client Protocol**: Full support for ACP enabling advanced IDE interactions
|
|
- **File management**: @-mention files to add them to the conversation context
|
|
- **Conversation history**: Access to past conversations within Zed
|
|
|
|
### Requirements
|
|
|
|
- Zed Editor (latest version recommended)
|
|
- Qwen Code CLI installed
|
|
|
|
### Installation
|
|
|
|
#### Install from ACP Registry (Recommend)
|
|
|
|
1. Install Qwen Code CLI:
|
|
|
|
```bash
|
|
npm install -g @qwen-code/qwen-code
|
|
```
|
|
|
|
2. Download and install [Zed Editor](https://zed.dev/)
|
|
|
|
3. In Zed, click the **settings button** in the top right corner, select **"Add agent"**, choose **"Install from Registry"**, find **Qwen Code**, then click **Install**.
|
|
|
|

|
|
|
|

|
|
|
|
#### Manual Install
|
|
|
|
1. Install Qwen Code CLI:
|
|
|
|
```bash
|
|
npm install -g @qwen-code/qwen-code
|
|
```
|
|
|
|
2. Download and install [Zed Editor](https://zed.dev/)
|
|
|
|
3. In Zed, click the **settings button** in the top right corner, select **"Add agent"**, choose **"Create a custom agent"**, and add the following configuration:
|
|
|
|
```json
|
|
"Qwen Code": {
|
|
"type": "custom",
|
|
"command": "qwen",
|
|
"args": ["--acp"],
|
|
"env": {}
|
|
}
|
|
```
|
|
|
|

|
|
|
|
## Troubleshooting
|
|
|
|
### Agent not appearing
|
|
|
|
- Run `qwen --version` in terminal to verify installation
|
|
- Check that the JSON configuration is valid
|
|
- Restart Zed Editor
|
|
|
|
### Qwen Code not responding
|
|
|
|
- Check your internet connection
|
|
- Verify CLI works by running `qwen` in terminal
|
|
- [File an issue on GitHub](https://github.com/qwenlm/qwen-code/issues) if the problem persists
|