This feature is available exclusively to customers using self-hosted agents
Supported VCS
- Plan on Pull Request
- Continuous Deployment
- PR Comments Commands
- Module Registry
- Project-level Custom Flow
- Approval Policies
Add New VCS Connection
You can create a new connection in two ways; when creating a new template or through centralized management.Option 1 - Create VCS Connection from Template Creation
- When configuring the VCS type, select one of the self-hosted supported VCS options.
- Click the Repository dropdown and select “Add VCS Connection”.

Option 2 - Create VCS Connection from VCS Settings
- Go to “Organization Settings,” select the “VCS” tab, and scroll down.
- Click “Create Connection”

Create VCS Connection
- Choose Self-Hosted in the picker
-
Choose the VCS type and click Add for Deployment access.
- Enter Self-Hosted VCS URL
-
Select the “Agent Key” to which all requests will be forwarded (VCS Agent - Running Proxy).
- To create a new agent key, please contact support.
- The dropdown is available only to users with the “Edit Organization Settings” permission.
-
- Click “Save Connection”
Forward requests to this VCS AgentThe intention behind forwarding requests refers to all the requests the platform needs to support the features mentioned above. It does not refer to where the deployment actually runs; it will continue to run based on the project to which it is assigned.
Configure VCS agent (Proxy)
Running a proxy can be achieved in two ways; as part of the agent’s Kubernetes helm chart deployment or as a standalone Docker instance.Agent’s Kubernetes Helm Chart
- The installation is included as part of the agent’s Kubernetes Helm chart deployment.
- By default, the proxy runs when the agent is installed without any special configuration.
- Proxy Configuration: Configure it in the values.yml file
-
Refer to the Self Hosted Kubernetes Agent specifications for additional configuration details.
-
Standalone VCS Agent Docker Instance
- Run the VCS agent Docker image with the following command:
- For more details, see Standalone Docker Agent - Running a VCS Agent.
env zero communication with VCS AgentThe communication is one-way: the VCS agent connects to the env zero platform. This means that when the env zero platform forwards a request to the VCS agent, we cannot immediately determine if the communication was successful or if the proxy is alive until the timeout period (~25s).If something isn’t working as expected, check the VCS agent logs to see if the requests are being received
Configure Webhook Integration
This section outlines the steps required to configure webhook integration for your VCS. Follow the instructions to set up the webhook and ensure it works seamlessly with your system.-
When you Create VCS connection you will find the Webhook Settings button.
-
- At the bottom of the window, you will see this section. From here, you need to obtain the webhook URL and webhook secret.
- Configure Webhook Integration per Self-Hosted VCS:
Please ensure that only one entry is created for Webhook Integration. Creating multiple entries may result in duplicate events and cause multiple deployments for the same change.