For the complete documentation index, see llms.txt. This page is also available as Markdown.

Zed Editor

Use TensorX models as your AI coding assistant in Zed β€” the high-performance, open-source code editor.


Overview

Zed 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 TensorX models.


Prerequisites


Setup

Step 1: Add TensorX 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

TensorX

API URL

https://api.tensorx.ai/v1

Step 2: Set Your API Key

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

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

Step 3: Configure Models

Alternatively, configure everything via Zed's settings file (Cmd+, β†’ Edit settings.json):

Step 4: Select Model

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


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 TENSORX_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 "TensorX", the env var must be TENSORX_API_KEY.


See Also

Last updated

Was this helpful?