Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 055b564

Browse files
authored
Create separate integrations section (#65)
* Move integrations to their own section * Make sure every run command has a volume
1 parent 774724a commit 055b564

41 files changed

Lines changed: 144 additions & 106 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
.vercel

docs/about/changelog.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ Major features and changes are noted here. To review all updates, see the
1313

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

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

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

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

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

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

44-
- **Introducing CodeGate** - 17 Dec, 2024\
45-
Initial public launch of CodeGate!
44+
- **Introducing CodeGate!** - 17 Dec, 2024\
45+
Initial public launch of CodeGate, with support for Continue and GitHub
46+
Copilot.

docs/about/contributing.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Contributing
3-
description: How to contribute to the project.
3+
description: How to contribute to CodeGate
44
sidebar_position: 30
55
---
66

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

28-
## Contributing code
28+
## Contributing code or docs
29+
30+
CodeGate's code and docs are managed in several repositories:
31+
32+
- Main repo: https://github.com/stacklok/codegate
33+
- Dashboard UI: https://github.com/stacklok/codegate-ui
34+
- Docs: https://github.com/stacklok/codegate-docs
2935

3036
If you've found an issue you'd like to work on, you can contribute code to
3137
CodeGate by submitting a pull request. Before you submit a pull request, please

docs/about/faq.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Frequently asked questions
3-
description: Frequently asked questions about the CodeGate project.
3+
description: Frequently asked questions about the CodeGate project
44
sidebar_label: FAQ
55
sidebar_position: 10
66
---
77

8-
### Does CodeGate replace my AI code assistant plugin?
8+
### Does CodeGate replace my AI coding assistant or agent?
99

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

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

docs/about/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: About CodeGate
3-
description: More information about the CodeGate project.
3+
description: Learn more about the CodeGate project
44
---
55

66
import DocCardList from '@theme/DocCardList';

docs/features/_category_.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
label: 'Features'
22
position: 30
3-
collapsed: false

docs/how-to/configure.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ sidebar_position: 20
77
## Customize CodeGate's behavior
88

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

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

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

47-
Then, [configure the Continue IDE plugin](./use-with-continue.mdx) to access the
48-
vLLM endpoint (`http://localhost:8989/vllm/`) along with the model you'd like to
49-
use and your OpenRouter API key.
49+
Then,
50+
[configure the Continue IDE plugin](../integrations/continue.mdx?provider=vllm)
51+
to use CodeGate's vLLM endpoint (`http://localhost:8989/vllm`) along with the
52+
model you'd like to use and your OpenRouter API key.

docs/how-to/dashboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ system when you launch CodeGate, for example:
1616
```bash {2}
1717
docker run --name codegate -d -p 8989:8989 \
1818
-p 9090:9090 \
19+
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
1920
--restart unless-stopped ghcr.io/stacklok/codegate:latest
2021
```
2122

@@ -36,10 +37,9 @@ browser.
3637

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

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

4545
```bash {2}

docs/how-to/install.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount typ
2727

2828
Parameter reference:
2929

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

43-
### Alternative run commands {#examples}
46+
:::warning
4447

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

48-
```bash
49-
docker run -d -p 8989:8989 -p 9090:9090 --restart unless-stopped ghcr.io/stacklok/codegate:latest
50-
```
52+
:::
53+
54+
### Alternative run commands {#examples}
5155

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

5559
```bash
5660
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
5761
```
5862

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

6266
```bash
63-
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
67+
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
6468
```
6569

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

69-
- Patch version: `ghcr.io/stacklok/codegate:v0.1.4` (exact)
73+
- Patch version: `ghcr.io/stacklok/codegate:v0.1.15` (exact)
7074
- Minor version: `ghcr.io/stacklok/codegate:v0.1` (latest v0.1.x release)
7175
- Major version: `ghcr.io/stacklok/codegate:v0` (latest v0.x.x release)
7276

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

98+
Docker publishes ports to all network interfaces on your system by default. This
99+
can unintentionally expose your CodeGate installation to other systems on the
100+
same network. To restrict this, add `127.0.0.1` IP to the publish flags:
101+
102+
- API: `-p 127.0.0.1:8989:8989`
103+
- HTTPS proxy: `-p 127.0.0.1:8990:8990`
104+
- Dashboard: `-p 127.0.0.1:9090:9090`
105+
94106
All of the commands in these docs assume the default ports. To use different
95107
listening ports, modify the `-p` flag(s):
96108

109+
- API: `-p YOUR_PORT:8989`
110+
- HTTPS proxy: `-p YOUR_PORT:8990`
97111
- Dashboard: `-p YOUR_PORT:9090`
98-
- CodeGate API: `-p YOUR_PORT:8989`
99-
- Secure HTTP proxy: `-p YOUR_PORT:8990`
100112

101113
:::note
102114

@@ -149,19 +161,16 @@ persistent volume.
149161

150162
## Next steps
151163

152-
Now that CodeGate is running, proceed to configure your IDE integration.
153-
154-
- [Use CodeGate with aider](./use-with-aider.mdx)
155-
- [Use CodeGate with Cline](./use-with-cline.mdx)
156-
- [Use CodeGate with Continue](./use-with-continue.mdx)
157-
- [Use CodeGate with GitHub Copilot](./use-with-copilot.mdx)
164+
Now that CodeGate is running, proceed to
165+
[configure your AI assistant/agent](../integrations/index.mdx).
158166

159167
## Remove CodeGate
160168

161-
If you decide to stop using CodeGate, follow the removal steps for your IDE
162-
integration:
169+
If you decide to stop using CodeGate, follow the removal steps for your
170+
[integration](../integrations/index.mdx), then stop and remove the CodeGate
171+
container and volume:
163172

164-
- [Remove CodeGate - aider](./use-with-aider.mdx#remove-codegate)
165-
- [Remove CodeGate - Cline](./use-with-cline.mdx#remove-codegate)
166-
- [Remove CodeGate - Continue](./use-with-continue.mdx#remove-codegate)
167-
- [Remove CodeGate - GitHub Copilot](./use-with-copilot.mdx#remove-codegate)
173+
```bash
174+
docker stop codegate && docker rm codegate
175+
docker volume rm codegate_volume
176+
```

docs/index.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ CodeGate supports several development environments and AI providers.
3737

3838
AI coding assistants / IDEs:
3939

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

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

4646
CodeGate supports the following AI model providers with Continue:
@@ -54,10 +54,9 @@ AI coding assistants / IDEs:
5454
- Anthropic
5555
- OpenAI
5656

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

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

6261
CodeGate supports Ollama, Anthropic, OpenAI-compatible APIs, and LM Studio
6362
with Cline.

0 commit comments

Comments
 (0)