⚠️ DEPRECATED ⚠️ CodeGate was an experimental project and is no longer maintained. Website | Documentation | YouTube Discord CodeGate: Security, Workspaces and Muxing for AI Applications, coding assistants, and agentic frameworks. By Stacklok CodeGate is an agent designed to make AI applications, coding assistants and agentic frameworks, safer and easier to consume and manage. It provides a centralized, abstracted…
CodeGate is an agent designed to make AI applications, coding assistants and agentic frameworks, safer and easier to consume and manage. It provides a centralized, abstracted environment for managing prompts, model provider configurations, model muxing, and more. Additionally, CodeGate offers security analysis of AI-generated code, ensuring that recommendations follow best practices and safeguard your code’s integrity.
With CodeGate, you can configure all your AI coding assistants and agents to use a single workspace
and benefit from a unified view of all the interactions between your AI coding assistants and your
models.
Why choose CodeGate?
AI coding assistants are powerful, but they can inadvertently introduce risks and configurations
can sprawl across multiple IDE extensions, plugins and agent systems. CodeGate simplifies the management of AI model and provider configurations and provides additional features to help you keep your development process safe.
Centralize and manage all your AI coding assistants in one place
Mux / Route prompts to different AI models based on workspaces or file types
Centrally configure and manage your provider credentials and API keys
Protect your development process from accidental exposure of secrets and sensitive personal data to the cloud
Ensure that the recommendations provided by your AI coding assistants follow secure coding practices
Prevent malicious or deprecated libraries from being recommended to you by an LLM
Quickstart
Prerequisites
CodeGate is distributed as a Docker container. You need a container runtime like
Docker Desktop or Docker Engine. Podman and Podman Desktop are also supported.
CodeGate works on Windows, macOS, and Linux operating systems with x86_64 and
arm64 (ARM and Apple Silicon) CPU architectures.
These instructions assume the docker CLI is available. If you use Podman,
replace docker with podman in all commands.
CodeGate allows you to create workspaces, each with its own set of AI
models, configurations, prompts and chat history to help you manage your AI application
and development environment more effectively. Learn more
Model Muxing
CodeGate lets you route traffic between multiple AI models using a configurable
model muxer. This feature is useful when you want to use different models for
different purposes, such as code generation, summarization, documentation, etc.
Learn more
Secrets Redaction
CodeGate helps you protect sensitive information from being accidentally exposed
to AI models and third-party AI provider systems by redacting detected secrets
from your prompts.
Learn more
Personal Identifiable Information (PII) detection and redaction
CodeGate helps you protect personal data from being accidentally exposed to AI
models and third-party AI provider systems by redacting detected PII from your prompts.
Should CodeGate sense that a prompt contains PII, such as credit card numbers, social security numbers, or other sensitive information, it will automatically redact the PII from the prompt before sending it to the AI model, to then unredact the response before sending it back to the client.
Dependency risk awareness
LLMs’ knowledge cutoff date is often months or even years in the past. They
might suggest outdated, vulnerable, or non-existent packages (hallucinations),
exposing you and your users to security risks.
CodeGate scans direct, transitive, and development dependencies in your package
definition files, installation scripts, and source code imports that you supply
as context to an LLM.
Learn more
Security reviews
CodeGate performs security-centric code reviews, identifying insecure patterns
or potential vulnerabilities to help you adopt more secure coding practices.
Learn more
CodeGate is licensed under the terms specified in the
LICENSE file.
Support us
Love CodeGate? Starring this repository and sharing it with others helps
CodeGate grow 🌱
Contributing
We welcome contributions! Whether you’re submitting bug reports, feature
requests, or code contributions, your input makes CodeGate better for everyone.
We thank you ❤️!
评论