A configurable Generative AI gateway, protecting developers from the dangers of AI.
- Secrets exflitration prevention
- Secure Coding recommendations
- Preventing AI from recommending deprecated and / or malicious libraries
Download the installation script docker-compose.yml
Run the installation script
chmod +x install.sh && ./install.sh
The script will download the Continue VSCode extension, create a configuration file. The script will also create a docker-compose.yml file and start the services.
Tap the Continue button in the VSCode editor to start the service to bring up a chat window. The chat window will be displayed in the VSCode editor.
Start the server with default settings:
codegate serve
Start with custom settings:
codegate serve --port 8989 --host localhost --log-level DEBUG
Use a YAML configuration file:
codegate serve --config my_config.yaml
Example config.yaml
:
port: 8989
host: "localhost"
log_level: "DEBUG"
Configure using environment variables:
export CODEGATE_APP_PORT=8989
export CODEGATE_APP_HOST=localhost
export CODEGATE_APP_LOG_LEVEL=DEBUG
codegate serve
# Clone the repository
git clone https://github.com/stacklok/codegate.git
cd codegate
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
pytest