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 includes several key features for privacy, security, and coding efficiency, including:
- Secrets encryption and PII redaction to protect your sensitive credentials and anonymize personally identifiable information
- Dependency risk awareness to update the LLM's knowledge of malicious or deprecated open source packages
- Model muxing to quickly select the best LLM provider/model for your current task
- Workspaces to organize and customize your LLM interactions
CodeGate supports several development environments and AI providers.
AI coding assistants / IDEs:
-
Aider with Ollama and OpenAI-compatible APIs
-
avante.nvim (Neovim plugin) with OpenAI
-
Cline in Visual Studio Code
CodeGate supports Ollama, Anthropic, OpenAI and compatible APIs, OpenRouter, and LM Studio with Cline
-
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: Anthropic, OpenAI and compatible APIs, and OpenRouter
-
GitHub Copilot with Visual Studio Code (JetBrains coming soon!)
-
Kodu / Claude Coder in Visual Studio Code with OpenAI-compatible APIs
-
Open Interpreter with OpenAI-compatible APIs
We're continuing to add more AI assistants/agents and model providers based on community feedback.
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: