Cody Enterprise architecture
Cody Enterprise can be deployed via the Sourcegraph Cloud or on your self-hosted infrastructure. This page describes the architecture diagrams for Cody deployed in different Sourcegraph environments.
Sourcegraph Cloud deployment
This is a recommended deployment for Cody Enterprise. It uses the Sourcegraph Cloud infrastructure and Cody gateway.

Sourcegraph Enterprise Server (self-hosted) on Amazon Bedrock
This is an example of a more complex deployment that uses Sourcegraph Enterprise Server (self-hosted) and Amazon Bedrock.

Data flow
The following diagram describes the data flow between the different components of Cody Enterprise.
