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

# Continue

[Continue](https://continue.dev/) is an open-source AI code assistant for VS Code and JetBrains IDEs. It connects to TensorX through OpenAI-compatible configuration.

## Prerequisites

* Continue extension installed in your IDE
* TensorX API key from [app.tensorx.ai](https://app.tensorx.ai)

## Configuration

### VS Code

1. Open Continue settings by clicking the gear icon in the Continue panel
2. Edit your `config.json` file with the following configuration:

```json
{
  "models": [
    {
      "title": "GLM 5.3 (TensorX)",
      "provider": "openai",
      "model": "z-ai/glm-5.3",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "z-ai/glm-5.3-flash (TensorX)",
      "provider": "openai",
      "model": "z-ai/glm-5.3-flash",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    }
  ],
  "tabAutocompleteModel": {
    "title": "TensorX Autocomplete",
    "provider": "openai",
    "model": "qwen/qwen3.8-flash-next",
    "apiKey": "your-tensorx-api-key",
    "apiBase": "https://api.tensorx.ai/v1"
  }
}
```

### JetBrains IDEs

The configuration is the same for JetBrains IDEs. Access Continue settings through:

1. Open the Continue tool window
2. Click on settings
3. Edit the `config.json` with the configuration above

## Config File Location

The Continue config file is located at:

* **Mac/Linux**: `~/.continue/config.json`
* **Windows**: `%USERPROFILE%\.continue\config.json`

## Multiple Models

You can add multiple TensorX models for different use cases:

```json
{
  "models": [
    {
      "title": "GLM 5.3 (Complex Tasks)",
      "provider": "openai",
      "model": "z-ai/glm-5.3",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "Qwen 3.8 Flash Next (Quick Tasks)",
      "provider": "openai",
      "model": "qwen/qwen3.8-flash-next",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "z-ai/glm-5.3-flash Mini (Fast)",
      "provider": "openai",
      "model": "qwen/qwen3.8-flash-next",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    }
  ]
}
```

## Tab Autocomplete

Enable code autocomplete with TensorX:

```json
{
  "tabAutocompleteModel": {
    "title": "TensorX Autocomplete",
    "provider": "openai",
    "model": "qwen/qwen3.8-flash-next",
    "apiKey": "your-tensorx-api-key",
    "apiBase": "https://api.tensorx.ai/v1"
  },
  "tabAutocompleteOptions": {
    "debounceDelay": 500,
    "maxPromptTokens": 1500
  }
}
```

## 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](/api-reference/models.md) for examples.

***

## Troubleshooting

### Connection issues

1. Verify your API key is correct
2. Ensure `apiBase` ends with `/v1`
3. Check the Continue output panel for error messages

### Model not working

* Confirm the model name exactly matches TensorX's supported models
* Try a different model to isolate the issue

## Resources

* [Continue Documentation](https://docs.continue.dev/)
* [TensorX API Reference](/api-reference/overview.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tensorx.ai/ai-coding-assistants/continue.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
