title | description | sidebar_position |
---|---|---|
Introduction |
CodeGate is the local, open source prompt gateway that keeps your secrets safe and your code secure. |
1 |
CodeGate is a local prompt gateway that sits between your AI coding assistant and LLM to enhance privacy and security. CodeGate performs code security reviews, identifies vulnerabilities in package dependencies, and prevents sensitive data like secrets from being shared with AI models.
sequenceDiagram
participant Client as AI coding<br>assistant
participant CodeGate as CodeGate<br>(local)
participant LLM as AI model<br>(remote)
Client ->> CodeGate: Prompt
activate CodeGate
CodeGate ->> LLM: Enhanced prompt
deactivate CodeGate
activate LLM
LLM -->> CodeGate: Response
deactivate LLM
activate CodeGate
CodeGate -->> Client: Response
deactivate CodeGate
CodeGate supports several development environments and AI providers.
AI coding assistants / IDEs:
-
GitHub Copilot with Visual Studio Code (JetBrains coming soon!)
-
Continue with Visual Studio Code and JetBrains IDEs
CodeGate supports the following AI model providers with Continue:
- Local / self-managed:
- Ollama
- llama.cpp
- vLLM
- Hosted:
- OpenRouter
- Anthropic
- OpenAI
- Local / self-managed:
-
Aider with Ollama and OpenAI-compatible APIs
-
Cline with Visual Studio Code
CodeGate supports Ollama, Anthropic, OpenAI-compatible APIs, and LM Studio with Cline.
As the project evolves, we plan to add support for more IDE assistants and AI model providers.
CodeGate is an open source project. To view the code, contribute, or report an issue, please visit the CodeGate GitHub repository.
We are eager to gather feedback to help shape the future direction of the
project. Please join us in the #codegate
channel on the
Stacklok community Discord server.
Follow one of the the quickstart guides to get up and running quickly:
- Quickstart guide - GitHub Copilot to integrate CodeGate with GitHub Copilot and VS Code
- Quickstart guide - Continue to integrate CodeGate with the open source Continue extension, VS Code, and a local Ollama server
Review the installation instructions.
Learn more about CodeGate's features: