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

Zed Editor

Configure Zed's Agent Panel to use the TensorX API.


Overview

Zed is an open-source code editor with an Agent Panel and support for OpenAI-compatible providers.


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):

Replace <MODEL_ID> with an ID returned by GET /v1/models. Query GET /v1/model/info if you also add optional context, output, tool, or image capability metadata.

Step 4: Select Model

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


Model selection

Call GET /v1/models with your TensorX API key and use one of the returned IDs. If the integration depends on a capability or token limit, query GET /v1/model/info before selecting the model. See Models for examples.


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?