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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
19 changes: 10 additions & 9 deletions docs/about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ Major features and changes are noted here. To review all updates, see the

Related: [Upgrade CodeGate](../how-to/install.md#upgrade-codegate)

- **Cline support** - 28 Jan, 2025\
CodeGate version 0.1.14 adds support for
[Cline](https://github.com/cline/cline) with Anthropic, OpenAI, Ollama, and LM
Studio. See the [how-to guide](../how-to/use-with-cline.mdx) to learn more.
- **New integration: Cline** - 28 Jan, 2025\
CodeGate version 0.1.14 adds support for [Cline](https://cline.bot/) with
Anthropic, OpenAI, Ollama, and LM Studio. See the
[integration guide](../integrations/cline.mdx) to learn more.

- **Workspaces** - 22 Jan, 2025\
Now available in CodeGate v0.1.12, workspaces help you organize and customize
your AI-assisted development. Learn more in
[Workspaces](../features/workspaces.mdx).

- **Aider support** - 13 Jan, 2025\
- **New integration: aider** - 13 Jan, 2025\
CodeGate version 0.1.6 adds support for [aider](https://aider.chat/), an AI
pair programmer in your terminal. See the
[how-to guide](../how-to/use-with-aider.mdx) to learn more.
[integration guide](../integrations/aider.mdx) to learn more.

- **Semantic versioning for container image** - 8 Jan, 2025\
Starting with v0.1.4, the CodeGate container image is published with semantic
Expand All @@ -35,11 +35,12 @@ Related: [Upgrade CodeGate](../how-to/install.md#upgrade-codegate)
optionally pull using the major (`v0`), minor (`v0.1`), or patch version
(`v0.1.4`) to explicitly control the version you're running. \
CodeGate is evolving quickly, so we still recommend pulling the `latest` tag
so you don't miss out on new features and updates to package risk data.
so you don't miss out on the newest features and updates.

- **UI port change** - 7 Jan, 2025\
The internal port for the dashboard UI has changed from 80 to 9090 to resolve
a permissions issue for Linux users.

- **Introducing CodeGate** - 17 Dec, 2024\
Initial public launch of CodeGate!
- **Introducing CodeGate!** - 17 Dec, 2024\
Initial public launch of CodeGate, with support for Continue and GitHub
Copilot.
10 changes: 8 additions & 2 deletions docs/about/contributing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Contributing
description: How to contribute to the project.
description: How to contribute to CodeGate
sidebar_position: 30
---

Expand All @@ -25,7 +25,13 @@ general usage question, please ask in the `#codegate` channel on
create a new issue in the
[CodeGate GitHub repository](https://github.com/stacklok/codegate/issues).

## Contributing code
## Contributing code or docs

CodeGate's code and docs are managed in several repositories:

- Main repo: https://github.com/stacklok/codegate
- Dashboard UI: https://github.com/stacklok/codegate-ui
- Docs: https://github.com/stacklok/codegate-docs

If you've found an issue you'd like to work on, you can contribute code to
CodeGate by submitting a pull request. Before you submit a pull request, please
Expand Down
8 changes: 4 additions & 4 deletions docs/about/faq.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Frequently asked questions
description: Frequently asked questions about the CodeGate project.
description: Frequently asked questions about the CodeGate project
sidebar_label: FAQ
sidebar_position: 10
---

### Does CodeGate replace my AI code assistant plugin?
### Does CodeGate replace my AI coding assistant or agent?

No, CodeGate works _with_ your AI code assistant, as a local intermediary
between your client and the LLM it's communicating with.
No, CodeGate works _with_ your AI coding tool, as a local intermediary between
your client and the LLM it's communicating with.

### Does CodeGate work with any other IDE plugins or coding assistants?

Expand Down
2 changes: 1 addition & 1 deletion docs/about/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: About CodeGate
description: More information about the CodeGate project.
description: Learn more about the CodeGate project
---

import DocCardList from '@theme/DocCardList';
Expand Down
1 change: 0 additions & 1 deletion docs/features/_category_.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
label: 'Features'
position: 30
collapsed: false
11 changes: 7 additions & 4 deletions docs/how-to/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ sidebar_position: 20
## Customize CodeGate's behavior

The CodeGate container runs with default settings to support Ollama, Anthropic,
and OpenAI APIs with typical settings. To customize the behavior, you can supply
and OpenAI APIs with typical settings. To customize the behavior, you can add
extra configuration parameters to the container as environment variables:

```bash {2}
docker run --name codegate -d -p 8989:8989 -p 9090:9090 \
[-e KEY=VALUE ...] \
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
--restart unless-stopped ghcr.io/stacklok/codegate
```

Expand Down Expand Up @@ -41,9 +42,11 @@ To use OpenRouter, set the vLLM URL when you launch CodeGate:
```bash {2}
docker run --name codegate -d -p 8989:8989 -p 9090:9090 \
-e CODEGATE_VLLM_URL=https://openrouter.ai/api \
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
--restart unless-stopped ghcr.io/stacklok/codegate
```

Then, [configure the Continue IDE plugin](./use-with-continue.mdx) to access the
vLLM endpoint (`http://localhost:8989/vllm/`) along with the model you'd like to
use and your OpenRouter API key.
Then,
[configure the Continue IDE plugin](../integrations/continue.mdx?provider=vllm)
to use CodeGate's vLLM endpoint (`http://localhost:8989/vllm`) along with the
model you'd like to use and your OpenRouter API key.
4 changes: 2 additions & 2 deletions docs/how-to/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ system when you launch CodeGate, for example:
```bash {2}
docker run --name codegate -d -p 8989:8989 \
-p 9090:9090 \
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
--restart unless-stopped ghcr.io/stacklok/codegate:latest
```

Expand All @@ -36,10 +37,9 @@ browser.

## Persisting dashboard data {#persisting-dashboard-data}

To retain your prompt history and other dashboard metrics between restarts,
To retain your prompt history and workspace configurations between restarts,
mount a persistent
[Docker volume](https://docs.docker.com/engine/storage/volumes/) to the CodeGate
container. The volume destination must be `/app/codegate_volume` inside the
container. This example creates a volume named `codegate_volume`:

```bash {2}
Expand Down
63 changes: 36 additions & 27 deletions docs/how-to/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount typ

Parameter reference:

- `--name codegate` - give the container a friendly name for easy reference
- `-d` - start in detached (background) mode
- `-p 8989:8989` - bind the CodeGate API to port 8989 on your host
- `-p 8989:8989` - bind the CodeGate API to port 8989 on your host (required)
- `-p 9090:9090` - bind the CodeGate web dashboard to port 9090 on your host
(recommended)
- `-p 8990:8990` - bind the CodeGate secure HTTP proxy to port 8990 on your host
(required for Copilot)
- `--mount ...` - mount a persistent Docker volume named `codegate_volume` to
the required path in the container
- `--restart unless-stopped` - restart CodeGate after a Docker or system
Expand All @@ -40,33 +43,34 @@ More example run commands to run the container with the right parameters for
your scenario are found below. To learn how to customize the CodeGate
application settings, see [Configure CodeGate](./configure.md)

### Alternative run commands {#examples}
:::warning

Run with minimal functionality for use with **Continue**, **aider**, or
**Cline**:
If you omit the persistent volume mount, your
[workspace configurations](../features/workspaces.mdx) and prompt history are
lost when you stop or restart CodeGate.

```bash
docker run -d -p 8989:8989 -p 9090:9090 --restart unless-stopped ghcr.io/stacklok/codegate:latest
```
:::

### Alternative run commands {#examples}

**Mount a persistent volume** to the container (see
[Persisting dashboard data](./dashboard.md#persisting-dashboard-data)):
Run with minimal functionality for use with **Continue**, **aider**, or
**Cline** (omits the HTTP proxy port needed by Copilot):

```bash
docker run --name codegate -d -p 8989:8989 -p 9090:9090 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
```

**Copilot support:** enable the HTTP proxy port and mount a persistent volume
(see [Use CodeGate with GitHub Copilot](./use-with-copilot.mdx)):
**Restrict ports:** Docker publishes ports to all interfaces on your host by
default. This example publishes only on your `localhost` interface:

```bash
docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
docker run --name codegate -d -p 127.0.0.1:8989:8989 -p 127.0.0.1:9090:9090 -p 127.0.0.1:8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
```

**Install a specific version:** starting with v0.1.4 you can optionally run a
specific version of CodeGate using sematic version tags:

- Patch version: `ghcr.io/stacklok/codegate:v0.1.4` (exact)
- Patch version: `ghcr.io/stacklok/codegate:v0.1.15` (exact)
- Minor version: `ghcr.io/stacklok/codegate:v0.1` (latest v0.1.x release)
- Major version: `ghcr.io/stacklok/codegate:v0` (latest v0.x.x release)

Expand All @@ -91,12 +95,20 @@ CodeGate listens on several network ports:
| 8989 | 8989 | CodeGate API |
| 8990 | 8990 | Secure HTTP proxy (GitHub Copilot integration) |

Docker publishes ports to all network interfaces on your system by default. This
can unintentionally expose your CodeGate installation to other systems on the
same network. To restrict this, add `127.0.0.1` IP to the publish flags:

- API: `-p 127.0.0.1:8989:8989`
- HTTPS proxy: `-p 127.0.0.1:8990:8990`
- Dashboard: `-p 127.0.0.1:9090:9090`

All of the commands in these docs assume the default ports. To use different
listening ports, modify the `-p` flag(s):

- API: `-p YOUR_PORT:8989`
- HTTPS proxy: `-p YOUR_PORT:8990`
- Dashboard: `-p YOUR_PORT:9090`
- CodeGate API: `-p YOUR_PORT:8989`
- Secure HTTP proxy: `-p YOUR_PORT:8990`

:::note

Expand Down Expand Up @@ -149,19 +161,16 @@ persistent volume.

## Next steps

Now that CodeGate is running, proceed to configure your IDE integration.

- [Use CodeGate with aider](./use-with-aider.mdx)
- [Use CodeGate with Cline](./use-with-cline.mdx)
- [Use CodeGate with Continue](./use-with-continue.mdx)
- [Use CodeGate with GitHub Copilot](./use-with-copilot.mdx)
Now that CodeGate is running, proceed to
[configure your AI assistant/agent](../integrations/index.mdx).

## Remove CodeGate

If you decide to stop using CodeGate, follow the removal steps for your IDE
integration:
If you decide to stop using CodeGate, follow the removal steps for your
[integration](../integrations/index.mdx), then stop and remove the CodeGate
container and volume:

- [Remove CodeGate - aider](./use-with-aider.mdx#remove-codegate)
- [Remove CodeGate - Cline](./use-with-cline.mdx#remove-codegate)
- [Remove CodeGate - Continue](./use-with-continue.mdx#remove-codegate)
- [Remove CodeGate - GitHub Copilot](./use-with-copilot.mdx#remove-codegate)
```bash
docker stop codegate && docker rm codegate
docker volume rm codegate_volume
```
9 changes: 4 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ CodeGate supports several development environments and AI providers.

AI coding assistants / IDEs:

- **[GitHub Copilot](./how-to/use-with-copilot.mdx)** with Visual Studio Code
- **[GitHub Copilot](./integrations/copilot.mdx)** with Visual Studio Code
(JetBrains coming soon!)

- **[Continue](./how-to/use-with-continue.mdx)** with Visual Studio Code and
- **[Continue](./integrations/continue.mdx)** with Visual Studio Code and
JetBrains IDEs

CodeGate supports the following AI model providers with Continue:
Expand All @@ -54,10 +54,9 @@ AI coding assistants / IDEs:
- Anthropic
- OpenAI

- **[Aider](./how-to/use-with-aider.mdx)** with Ollama and OpenAI-compatible
APIs
- **[Aider](./integrations/aider.mdx)** with Ollama and OpenAI-compatible APIs

- **[Cline](./how-to/use-with-cline.mdx)** with Visual Studio Code
- **[Cline](./integrations/cline.mdx)** with Visual Studio Code

CodeGate supports Ollama, Anthropic, OpenAI-compatible APIs, and LM Studio
with Cline.
Expand Down
2 changes: 2 additions & 0 deletions docs/integrations/_category_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: 'Integrations'
position: 25
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Use CodeGate with aider
description: Configure aider for CodeGate
sidebar_label: Use with aider
sidebar_position: 90
description: Configure aider to use CodeGate
sidebar_label: Aider
sidebar_position: 10
---

import AiderProviders from '../partials/_aider-providers.mdx';
Expand Down Expand Up @@ -40,7 +40,7 @@ a response like "CodeGate version 0.1.13":

Learn more about CodeGate's features:

- [Access the dashboard](./dashboard.md)
- [Access the dashboard](../how-to/dashboard.md)
- [CodeGate features](../features/index.mdx)

## Remove CodeGate
Expand Down
20 changes: 10 additions & 10 deletions docs/how-to/use-with-cline.mdx → docs/integrations/cline.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Use CodeGate with Cline
description: Configure the Cline IDE extension
sidebar_label: Use with Cline
sidebar_position: 90
description: Configure the Cline extension for VS Code
sidebar_label: Cline
sidebar_position: 20
---

import useBaseUrl from '@docusaurus/useBaseUrl';
import ThemedImage from '@theme/ThemedImage';

[Cline](https://github.com/cline/cline) is an autonomous coding agent for Visual
Studio Code that supports numerous API providers and models.
[Cline](https://cline.bot/) is an autonomous coding agent for Visual Studio Code
that supports numerous API providers and models.

CodeGate works with the following AI model providers through Cline:

Expand Down Expand Up @@ -50,8 +50,8 @@ To configure Cline to send requests through CodeGate:
<ThemedImage
alt='Cline extension settings'
sources={{
light: useBaseUrl('/img/how-to/cline-settings-light.webp'),
dark: useBaseUrl('/img/how-to/cline-settings-dark.webp'),
light: useBaseUrl('/img/integrations/cline-settings-light.webp'),
dark: useBaseUrl('/img/integrations/cline-settings-dark.webp'),
}}
width={'540px'}
/>
Expand All @@ -71,8 +71,8 @@ sidebar and type `codegate version`. You should receive a response like
<ThemedImage
alt='Cline verification'
sources={{
light: useBaseUrl('/img/how-to/cline-codegate-version-light.webp'),
dark: useBaseUrl('/img/how-to/cline-codegate-version-dark.webp'),
light: useBaseUrl('/img/integrations/cline-codegate-version-light.webp'),
dark: useBaseUrl('/img/integrations/cline-codegate-version-dark.webp'),
}}
width={'490px'}
/>
Expand Down Expand Up @@ -104,7 +104,7 @@ Here is an example of how to use the `requests` package:

Learn more about CodeGate's features and how to use them:

- [Access the dashboard](./dashboard.md)
- [Access the dashboard](../how-to/dashboard.md)
- [CodeGate features](../features/index.mdx)

## Remove CodeGate
Expand Down
Loading