Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions docs/integrations/avante.mdx
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
---
title: Use CodeGate with avante.nvim
description: Configure the `avante.nvim` plugin for Neovim
sidebar_label: avante.nvim
sidebar_position: 15
---

**[avante.nvim](https://github.com/yetone/avante.nvim)** is a Neovim plugin that
provides a Cursor-like user experience. It integrates with multiple AI providers
(e.g. Claude and OpenAI).

## Install avante.nvim

Install the **avante.nvim** plugin using your preferred plugin manager. For
instructions, consult **avante.nvim**'s
[documentation](https://github.com/yetone/avante.nvim?tab=readme-ov-file#installation).

## Configure CodeGate with avante.nvim

Consult **avante.nvim**'s documentation for specific examples on customizing
your configuration using your preferred plugin manager.

Using `lazy.nvim` (recommended) add the following configuration to enable
CodeGate with **avante.nvim**:

```lua
{
"yetone/avante.nvim",
-- ... etc ...
opts = {
-- your provider configuration ...
provider = "openai",
openai = {
endpoint = "http://localhost:8989/openai", -- use the endpoint matching your LLM provider
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed
max_tokens = 4096,
},
},
-- ... etc ...
}
```

:::note

**avante.nvim** does not yet support _fill-in-the-middle_ completions. You have
to configure your fill-in-the-middle completion plugin separately.

:::

### Verifying configuration

To verify the configuration, type `:AvanteChat` to start the **avante.nvim**
plugin. You should see the **avante.nvim** UI appear in the Neovim window.

Type and send the following message:

```
codegate version
```

If CodeGate is configured correctly, you should see a response from the CodeGate
server.

### Model muxing

To take advantage of CodeGate's [model muxing feature](../features/muxing.md),
use **avante.nvim**'s OpenAI provider with the following configuration:

```lua
openai = {
endpoint = "http://localhost:8989/v1/mux", -- CodeGate's mux endpoint
model = "gpt-4o", -- the actual model is determined by your CodeGate workspace
timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed
max_tokens = 4096,
},
```
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,7 +182,7 @@ const config: Config = {
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'json', 'powershell', 'docker'],
additionalLanguages: ['bash', 'json', 'powershell', 'docker', 'lua'],
},
mermaid: {
theme: { light: 'neutral', dark: 'dark' },
Expand Down