> For the complete documentation index, see [llms.txt](https://docs.tensorix.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tensorix.ai/ai-coding-assistants/zed.md).

# Zed Editor

Use Tensorix models as your AI coding assistant in Zed — the high-performance, open-source code editor.

***

## Overview

[Zed](https://zed.dev) is an open-source code editor built for speed, with native AI integration via its Agent Panel. With 76K+ GitHub stars, it's one of the fastest-growing editors. Zed supports OpenAI-compatible providers, making it easy to connect to Tensorix models.

{% hint style="success" %}
**Why Zed + Tensorix?**

* ⚡ **Blazing fast** — GPU-accelerated editor built in Rust
* 🤖 **Built-in AI Agent** — Inline assistant and Agent Panel
* 🔧 **Tool use** — AI can run terminal commands, edit files, search code
* 💰 **Cost-effective** — Use powerful open-source models instead of expensive proprietary ones
* 👥 **Multiplayer** — Real-time collaboration with AI assistance
  {% endhint %}

***

## Prerequisites

* **Zed** (latest version) — [download here](https://zed.dev/download)
* A Tensorix API key ([sign up here](https://app.tensorix.ai/register))

***

## Setup

### Step 1: Add Tensorix as a Provider

1. Open Zed
2. Open the Agent Panel (`Cmd+Shift+A` on macOS / `Ctrl+Shift+A` on Linux)
3. Click **Settings** (gear icon) → **Add Provider**
4. Choose **OpenAI Compatible** and fill in:

| Setting           | Value                        |
| ----------------- | ---------------------------- |
| **Provider Name** | `Tensorix`                   |
| **API URL**       | `https://api.tensorix.ai/v1` |

### Step 2: Set Your API Key

Set the `TENSORIX_API_KEY` environment variable. Zed derives the env var name from the provider name:

```bash
export TENSORIX_API_KEY=your-tensorix-api-key-here
```

To make it permanent, add to your `~/.zshrc` or `~/.bashrc`:

```bash
echo 'export TENSORIX_API_KEY=your-tensorix-api-key-here' >> ~/.zshrc
```

### Step 3: Configure Models

Alternatively, configure everything via Zed's settings file (`Cmd+,` → Edit `settings.json`):

```json
{
  "language_models": {
    "openai_compatible": {
      "Tensorix": {
        "api_url": "https://api.tensorix.ai/v1",
        "available_models": [
          {
            "name": "z-ai/glm-5.1",
            "display_name": "GLM-5.1 ⭐",
            "max_tokens": 203000,
            "max_output_tokens": 16384,
            "capabilities": {
              "tools": true,
              "images": false
            }
          },
          {
            "name": "deepseek/deepseek-chat-v3.1",
            "display_name": "DeepSeek V3.1",
            "max_tokens": 164000,
            "max_output_tokens": 16384,
            "capabilities": {
              "tools": true,
              "images": false
            }
          },
          {
            "name": "deepseek/deepseek-r1-0528",
            "display_name": "DeepSeek R1",
            "max_tokens": 164000,
            "max_output_tokens": 16384,
            "capabilities": {
              "tools": true,
              "images": false
            }
          },
          {
            "name": "minimax/minimax-m2.5",
            "display_name": "MiniMax M2.5",
            "max_tokens": 197000,
            "capabilities": {
              "tools": true,
              "images": false
            }
          },
          {
            "name": "moonshotai/kimi-k2.5",
            "display_name": "Kimi K2.5",
            "max_tokens": 262000,
            "capabilities": {
              "tools": true,
              "images": true
            }
          }
        ]
      }
    }
  }
}
```

### Step 4: Select Model

Open the Agent Panel and select a Tensorix model from the model dropdown.

***

## Recommended Models

| Use Case      | Model                         | Why                                      |
| ------------- | ----------------------------- | ---------------------------------------- |
| **Coding** ⭐  | `z-ai/glm-5.1`                | Top coding performance, strong reasoning |
| **Reasoning** | `deepseek/deepseek-r1-0528`   | Complex analysis, architecture decisions |
| **Functions** | `minimax/minimax-m2.5`        | Function calling, reasoning              |
| **Vision**    | `moonshotai/kimi-k2.5`        | Image understanding, large context       |
| **General**   | `deepseek/deepseek-chat-v3.1` | Balanced performance and cost            |

***

## Using the AI Features

### Agent Panel

Open with `Cmd+Shift+A` (macOS) / `Ctrl+Shift+A` (Linux). The agent can:

* Write and edit code across multiple files
* Run terminal commands
* Search your codebase
* Explain code and answer questions

### Inline Assistant

Select code and press `Cmd+Enter` (macOS) / `Ctrl+Enter` (Linux) to get inline AI suggestions.

***

## Troubleshooting

### Models Not Appearing

Ensure your `TENSORIX_API_KEY` environment variable is set and Zed was restarted after setting it.

### Authentication Errors

The API key env var name is derived from the provider name. If you named your provider "Tensorix", the env var must be `TENSORIX_API_KEY`.

***

## See Also

* [Zed Documentation](https://zed.dev/docs)
* [Zed LLM Providers](https://zed.dev/docs/ai/llm-providers)
* [Zed on GitHub](https://github.com/zed-industries/zed)
* [Tensorix Models](https://tensorix.ai/models)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensorix.ai/ai-coding-assistants/zed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
