How CodeScene Is Deployed: Architecture & Options for Enterprise Teams
Who this is for
This article is for platform, security and engineering leaders who are planning a CodeScene deployment for hundreds of developers. It explains what the components are, where they run, what data goes where, and how to size and secure an installation. For the people and process side of a rollout, see Rolling Out CodeScene Alongside AI Adoption: An Enterprise Onboarding Guide.
1. The components at a glance
A CodeScene deployment has two layers: A central analysis platform and developer tooling that runs where developers work.
2. Choose your platform: Cloud or On-Prem
Both options are used by large enterprises. CodeScene is ISO/IEC 27001 certified. If you're unsure which one fits, your CodeScene contact can help you decide.
3. Security and data flow
Source code. On Cloud, code is cloned for each analysis and the clone is deleted afterwards. On On-Prem, it never leaves your network. You can delete an analysis project at any time, and its data is removed.
Developer tooling. The CodeHealth MCP Server and CLI analyse code locally, against the developer's own repository. No source code or analysis data is sent to LLM vendors or any other external service. The only outbound calls are REST calls to your own CodeScene instance (Cloud or On-Prem) to fetch results such as hotspots and goals. Developers authenticate through a browser sign-in, or with a personal access token as a fallback.
Pull requests. CodeScene uses your Git provider's API to post review comments and statuses. Some providers (for example GitHub) require read/write scopes for this, but CodeScene never writes to the repository itself.
Telemetry (On-Prem). Limited to licence and utilisation data plus anonymised usage data. No personal identifiers or code are collected.
Network. CodeScene serves HTTP, so put HTTPS in front of it with a reverse proxy (such as nginx) or your cloud provider's certificate service. Proxy servers and self-signed certificates are supported. For allow-listing, see What IP Addresses Are Used by CodeScene?
Access control (On-Prem). Use LDAP/Active Directory or OAuth2/OIDC single sign-on, and map directory groups to roles: Admin, Architect, Manager, Technical Lead, Developer, Full Read-only Access, Bot and others. Project-level access can be granted per team.
4. Sizing On-Prem for hundreds of developers
Recommended setup: A plain Linux VM running the official codescene/codescene Docker image. Kubernetes is also supported: Mount a persistent volume at /codescene, expose port 3003 and use /health for probes.
Starting point for millions of lines of code and/or hundreds of developers: 8 vCPUs and 16+ GB RAM, with the Java heap tuned via -XX:MaxRAMPercentage or -Xmx. Needs grow with the size and history of the codebase.
Storage: Fast local SSD. Don't use shared or distributed file storage such as NFS, Azure Files or Amazon EFS which cause serious performance and stability problems.
Avoid: Serverless or managed container platforms that depend on distributed storage, such as Azure App Service, Azure Containers and AWS Lambda.
Single instance: CodeScene On-Prem doesn't run as multiple instances. Scale up rather than out and configure concurrent analyses to increase throughput.
Database: An embedded H2 database is the default. For enterprise installations, consider an external MySQL or MariaDB database ideally a managed service such as AWS RDS, so that backups and patching are handled for you.
Backups: Back up the database regularly. Cloned repositories and analysis results can be regenerated by re-running analyses.
5. Connect your toolchain
Git provider: Connect your repositories and enable the Pull Request integration (see Which Git Hosting Providers Does CodeScene Support?).
Project management: Connect Jira, Azure DevOps, Trello or ClickUp Boards to get delivery metrics such as planned vs unplanned work, lead times and defect trends.
Project creation at scale: Use the REST API to create projects and assign team owners from a developer portal or script (see Automating Project Creation for Frictionless Team Onboarding).
Developer tooling: Roll out the MCP Server, CLI and IDE extension with the 3-Step Developer Onboarding Guide. Point them at your instance (On-Prem uses CS_ONPREM_URL).
6. A typical enterprise deployment timeline
Week 0:
Decide and prepare. Choose Cloud or On-Prem. Complete the security review. For On-Prem, provision the VM, storage, database and HTTPS.
Week 1:
Install and connect. Activate the licence, configure SSO and roles, connect your Git provider and PM tool and create the first projects for your core systems.
First analyses. Configure teams and mark former developers, then record your baselines. This is also where the AI readiness assessment from the rollout guide starts.
Weeks 2-6:
Pilot. Enable the PR integration and developer tooling for one or two pilot teams.
Month 2 onwards:
Scale. Automate project creation and roll out team by team.
Related articles
Planning a large deployment? Your CodeScene contact can run a deployment planning session with your platform and security teams.
Was this helpful?
More in Getting Started
3-Step Developer Onboarding GuideSafeguarding AI Generated Code: CodeScene Rollout Steps that WorkHow to Evaluate CodeScene: A Practical Evaluation GuideGuided Workflow for Paying Down Technical DebtStill need help? Ask the team