> 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": "Claude Sonnet (TensorX)",
      "provider": "openai",
      "model": "claude-sonnet-4-20250514",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "GPT-4o (TensorX)",
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    }
  ],
  "tabAutocompleteModel": {
    "title": "TensorX Autocomplete",
    "provider": "openai",
    "model": "gpt-4o-mini",
    "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": "Claude Sonnet 4 (Complex Tasks)",
      "provider": "openai",
      "model": "claude-sonnet-4-20250514",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "Claude 3.5 Haiku (Quick Tasks)",
      "provider": "openai",
      "model": "claude-3-5-haiku-20241022",
      "apiKey": "your-tensorx-api-key",
      "apiBase": "https://api.tensorx.ai/v1"
    },
    {
      "title": "GPT-4o Mini (Fast)",
      "provider": "openai",
      "model": "gpt-4o-mini",
      "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": "gpt-4o-mini",
    "apiKey": "your-tensorx-api-key",
    "apiBase": "https://api.tensorx.ai/v1"
  },
  "tabAutocompleteOptions": {
    "debounceDelay": 500,
    "maxPromptTokens": 1500
  }
}
```

## Available Models

See [TensorX Models](/api-reference/models.md) for all available models.

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

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

```
GET https://docs.tensorx.ai/ai-coding-assistants/continue.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.
