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

Commit 80d4af0

Browse files
author
Luke Hinds
committed
Help guides
1 parent 8fc1e76 commit 80d4af0

File tree

9 files changed

+224
-137
lines changed

9 files changed

+224
-137
lines changed

package-lock.json

Lines changed: 35 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
"@radix-ui/react-switch": "^1.1.1",
1919
"@radix-ui/react-tooltip": "^1.1.4",
2020
"@types/prismjs": "^1.26.5",
21+
"@types/react-copy-to-clipboard": "^5.0.7",
2122
"@types/react-syntax-highlighter": "^15.5.13",
2223
"class-variance-authority": "^0.7.1",
2324
"clsx": "^2.1.1",
2425
"date-fns": "^4.1.0",
2526
"lucide-react": "^0.462.0",
2627
"prismjs": "^1.29.0",
2728
"react": "^18.3.1",
29+
"react-copy-to-clipboard": "^5.1.0",
2830
"react-dom": "^18.3.1",
2931
"react-markdown": "^9.0.1",
3032
"react-router-dom": "^7.0.2",

public/help/continue-setup.md

Lines changed: 73 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,98 @@
11
# Continue Setup Guide
22

3-
This guide will help you complete your setup process for CodeGate.
3+
First off all, you will need to install the Continue Extension.
44

5-
## Prerequisites
5+
You can do this by running the following command:
66

7-
Before you begin, ensure you have:
8-
- Git installed on your system
9-
- Access to your repository
10-
- Required permissions
7+
```bash
8+
code --install-extension continue.continue
9+
```
1110

12-
## Steps to Complete Setup
11+
Alternatively, you can install the extension from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue).
1312

14-
### 1. Configure Repository Settings
1513

16-
```bash
17-
# Clone your repository
18-
git clone https://github.com/your-org/your-repo.git
14+
Once you have installed the extension, you should be able to see the Continue icon in the Activity Bar.
1915

20-
# Navigate to the repository
21-
cd your-repo
22-
```
16+
![Continue Icon](./images/continue.png)
2317

24-
### 2. Set up Security Policies
18+
## Steps to Complete Setup
2519

26-
Create a security policy file in your repository:
20+
### 1. Configure Continue
2721

28-
```yaml
29-
# .codegate/security.yml
30-
policies:
31-
dependency_scanning: enabled
32-
vulnerability_checks: enabled
33-
branch_protection: true
34-
```
22+
Within VSCode open the command palette and run the `Continue: New Sesstion`
3523

36-
### 3. Define Workflow Rules
24+
This will bring up the Continue chat window.
3725

38-
Configure your workflow rules in the CodeGate dashboard:
26+
Select the cog icon in the top right corner to open the settings.
27+
28+
Configure your LLM provider as per normal with Continue, but change the `apiBase`
29+
value as follows:
3930

4031
```json
4132
{
42-
"workflow": {
43-
"automated_checks": true,
44-
"review_required": true,
45-
"minimum_approvals": 2
33+
"apiBase": "http://localhost:8989/openai",
4634
}
4735
}
4836
```
4937

50-
### 4. Review and Activate
38+
For example, to configure the Anthropic provider, you would use the following configuration:
39+
40+
```json
41+
{
42+
"title": "anthropic claude-3-5-sonnet",
43+
"provider": "anthropic",
44+
"model": "claude-3-5-sonnet-20241022",
45+
"apiKey": "yourkey",
46+
"apiBase": "http://localhost:8989/anthropic"
47+
},
48+
```
49+
50+
The same follows for OpenAI, Ollama, vLLM and any other provider you wish to use.
5151

52-
Once configured, activate your settings:
52+
```json
53+
"models": [
54+
{
55+
"title": "vllm-qwen2.5-coder-14b-instruct",
56+
"provider": "vllm",
57+
"model": "Qwen/Qwen2.5-Coder-14B-Instruct",
58+
"apiKey": "key",
59+
"apiBase": "http://localhost:8989/vllm"
60+
},
61+
{
62+
"title": "openai",
63+
"provider": "openrouter",
64+
"model": "gpt-4o-2024-11-20",
65+
"apiBase": "http://localhost:8989/openai",
66+
"apiKey": "key"
67+
},
68+
{
69+
"title": "anthropic claude-3-5-sonnet",
70+
"provider": "anthropic",
71+
"model": "claude-3-5-sonnet-20241022",
72+
"apiKey": "key",
73+
"apiBase": "http://localhost:8989/anthropic"
74+
},
75+
{
76+
"title": "ollama qwen2.5-coder-7b-instruct",
77+
"provider": "ollama",
78+
"model": "sammcj/qwen2.5-coder-7b-instruct:q8_0",
79+
"apiBase": "http://localhost:8989/ollama"
80+
}
81+
],
82+
```
5383

54-
```bash
55-
# Verify configuration
56-
codegate verify
84+
For auto completion, you can add the following to your settings.json file:
5785

58-
# Activate settings
59-
codegate activate
86+
```json
87+
"tabAutocompleteModel": {
88+
"title": "ollama",
89+
"provider": "ollama",
90+
"model": "codellama:7b-code",
91+
"apiBase": "http://127.0.0.1:8989/ollama"
92+
},
6093
```
6194

62-
For detailed instructions on each step, please refer to our documentation.
95+
You can now start using Continue as before, but with the added benefit
96+
extra privacy and control over your data.
97+
98+
![Continue Window](./images/continue-two.png)

public/help/copilot-setup.md

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,76 @@
1-
# CoPilot Setup Guide
1+
# 🤖 CoPilot Setup Guide
22

3-
This guide will help you set up and configure CoPilot integration with CodeGate.
3+
Welcome to the setup guide for configuring CoPilot integration with **CodeGate**.
44

5-
## Prerequisites
65

7-
Before proceeding, ensure you have:
8-
- Active GitHub account
9-
- GitHub CoPilot subscription
10-
- CodeGate account
6+
---
117

12-
## Setup Instructions
8+
## 📋 Prerequisites
139

14-
### 1. Enable GitHub CoPilot
10+
Before you begin, make sure you have the following:
11+
- ✅ An active GitHub account
12+
- ✅ A GitHub CoPilot subscription
13+
- ✅ A CodeGate account
1514

16-
First, activate CoPilot in your GitHub account:
15+
---
1716

18-
```javascript
19-
// Example of CoPilot suggestions in your code
20-
function calculateRisk(dependencies) {
21-
// CoPilot will suggest security checks
22-
return dependencies.map(dep => {
23-
return {
24-
name: dep.name,
25-
version: dep.version,
26-
riskScore: analyzeRisk(dep)
27-
}
28-
});
29-
}
17+
## 🛠️ Setup Instructions
18+
19+
### Install the CodeGate CA
20+
21+
To enable CodeGate, you’ll need to install its Certificate Authority (CA) into your operating system’s trust store.
22+
23+
> **Why is this needed?**
24+
> The CodeGate CA allows your machine to securely intercept and modify traffic between GitHub CoPilot and your IDE.
25+
> **Don’t worry!** The decrypted traffic stays on your local machine and never leaves.
26+
27+
28+
#### 🍎 **For MacOS Users**
29+
30+
Run the following command in your terminal to install the CA:
31+
32+
```bash
33+
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain codegate_volume/certs/ca.crt
3034
```
3135

32-
### 2. Configure CoPilot Settings
36+
#### 🖥️ For Windows Users
3337

34-
Add CoPilot configuration to your project:
38+
Use this PowerShell command:
3539

36-
```json
37-
{
38-
"copilot": {
39-
"enabled": true,
40-
"suggestions": {
41-
"security": true,
42-
"dependencies": true,
43-
"codeReview": true
44-
}
45-
}
46-
}
40+
```Powershell
41+
Import-Certificate -FilePath "certs\\ca.crt" -CertStoreLocation Cert:\\LocalMachine\\Root
4742
```
4843

49-
### 3. Link GitHub Account
44+
#### 🐧 For Linux Users
5045

51-
Connect your GitHub account using the following:
46+
Run these commands to install the CA:
5247

5348
```bash
54-
# Initialize CodeGate CoPilot integration
55-
codegate copilot init
56-
57-
# Link your GitHub account
58-
codegate copilot link --github
49+
sudo cp certs/ca.crt /usr/local/share/ca-certificates/codegate.crt
50+
sudo update-ca-certificates
5951
```
6052

61-
### 4. Verify Integration
53+
Note: You might need to restart your IDE after adding the certicates
6254

63-
Test the integration with:
55+
### Configure CoPilot Settings to Use CodeGate
6456

65-
```python
66-
# Python example of CoPilot integration
67-
def verify_copilot():
68-
status = check_connection()
69-
if status.ok:
70-
print("CoPilot integration successful!")
71-
else:
72-
raise Exception("Integration failed")
57+
Update your CoPilot configuration to use CodeGate as a proxy. Add the following to your project configuration:
58+
59+
```json
60+
{
61+
"http.proxy": "https://localhost:8990",
62+
"http.proxyStrictSSL": true,
63+
"http.proxySupport": "on",
64+
"github.copilot.advanced": {
65+
"debug.useNodeFetcher": true,
66+
"debug.useElectronFetcher": true,
67+
"debug.testOverrideProxyUrl": "https://localhost:8990",
68+
"debug.overrideProxyUrl": "https://localhost:8990
69+
}
7370
```
7471

75-
For more detailed information, please consult our documentation.
72+
### Start Coding with the Privacy Protections and Security of CodeGate in place
73+
74+
That’s it—you’re all set!
75+
76+
Go forth and build something amazing! 🚀✨

public/help/images/continue-two.png

387 KB
Loading

public/help/images/continue.png

34.5 KB
Loading

0 commit comments

Comments
 (0)