AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Configuring Codeium in Air-Gapped Environments: Network Rules and Self-Hosted Proxy Architecture

Zhou Jiajia · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Running Codeium inside an air-gapped developer enclave is fundamentally different from configuring an enterprise SaaS assistant. At 365Finds, we often see platform security teams make the same critical mistake: they assume that standing up the self-hosted Codeium backend in a private Kubernetes cluster completes the security isolation. It does not.

In a strict air-gap—where developer workstations and inference nodes have zero outbound route to *.codeium.com or GitHub—the primary operational hurdle shifts to the network boundary and the developer workstation bootstrap. If your internal reverse proxy buffers streaming tokens, or if corporate proxy environment variables hijack internal requests, Codeium becomes completely unusable.

Here is the exact network configuration, self-hosted reverse proxy profile, and workstation routing architecture required to make Codeium function reliably in fully disconnected environments.


1. Network Topology and Port Matrix

In an air-gapped perimeter, all public egress is blocked at the firewall. The entire Codeium ecosystem—inference models, vector indexers, license server, and web dashboard—runs on-premises.

Developer workstations communicate exclusively with an internal ingress controller or reverse proxy. The internal traffic pathways must accommodate three distinct flows:

SourceDestinationProtocol / PortPurpose
Developer IDEIngress Proxy (Gateway)HTTPS / 443Autocomplete, Chat, and Context Indexing
Ingress ProxyCodeium API GatewayHTTP/2 & gRPC / 8080 or 443High-throughput bi-directional token streaming
Ingress ProxyCodeium Portal / Web UIHTTP/1.1 / 80 or 443Enterprise admin dashboard and user management
Codeium CoreInternal GPU Workers (vLLM / Triton)gRPC / Internal Cluster PortsModel inference execution
Codeium CoreInternal LDAP / OIDC Identity ProviderLDAPS (636) / HTTPS (443)User authentication and RBAC

Firewall Egress Baseline


2. Self-Hosted Reverse Proxy Configuration

At 365Finds, we strongly recommend terminating TLS at an internal enterprise reverse proxy (such as NGINX, Envoy, or Traefik) placed directly in front of the Codeium cluster. Standard web proxy configurations will break Codeium. Real-time autocomplete relies on persistent HTTP/2 gRPC connections and WebSockets, while code indexing pushes substantial repository payloads.

Crucial Proxy Constraints

  1. Disable Response Buffering: Standard proxies buffer HTTP responses until the payload completes or reaches a buffer limit. For an AI code assistant, response buffering is disastrous: it turns a fluid, token-by-token autocomplete suggestion into a delayed five-second burst. You must turn buffering off.
  2. Support HTTP/2 and gRPC Trailers: Codeium's language server uses gRPC over HTTP/2. The proxy must support trailing metadata headers (trailers), which signal completion statuses.
  3. Expand Client Payload Limits: Indexing multi-file repository context produces large request payloads. Set your request body limit to at least 100M.
  4. Extend Read/Write Timeouts: Long context retrieval or intensive multi-turn chat prompts can take several seconds to compute. Standard 30-second proxy timeouts will cause intermittent dropped connections.

Production NGINX Reverse Proxy Configuration

Below is a battle-tested NGINX configuration tailored for Codeium inside an isolated network:

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen 443 ssl http2;
    server_name codeium.internal.corp;

    # Internal Corporate PKI Certificates
    ssl_certificate /etc/ssl/certs/internal-codeium.crt;
    ssl_certificate_key /etc/ssl/private/internal-codeium.key;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;

    # Payload and Timeout Tuning
    client_max_body_size 100M;
    proxy_read_timeout 300s;
    proxy_send_timeout 300s;
    proxy_connect_timeout 60s;

    location / {
        # Forward traffic to the internal Codeium cluster service
        proxy_pass http://codeium-backend-service.internal:8080;

        # Mandatory Protocol and Header Pass-through
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # WebSocket Streaming Support
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;

        # Disable Buffering for Real-time Token Generation
        proxy_buffering off;
        proxy_cache off;
        chunked_transfer_encoding on;
    }
}

If your platform team relies on Traefik, ensure your websecure entrypoint has HTTP/2 enabled and that no intermediate middleware alters gRPC binary framing.


3. Developer Workstation and IDE Network Setup

Securing the server gateway is only half the battle. Developer machines in enterprise environments frequently carry corporate forward proxy configurations designed to route internet traffic through secure web gateways (SWG).

If unmanaged, workstation network variables will redirect internal Codeium calls toward external corporate egress points, resulting in instant connection timeouts.

1. Bypass Corporate Proxies (NO_PROXY)

If developer machines export HTTP_PROXY or HTTPS_PROXY in their shell profiles or system environments, you must explicitly exclude the internal Codeium domain.

Add the following to system-wide environment files (/etc/environment on Linux or System Environment Variables on Windows):

export HTTP_PROXY="http://corp-proxy.internal:8080"
export HTTPS_PROXY="http://corp-proxy.internal:8080"
export NO_PROXY="localhost,127.0.0.1,.internal.corp,codeium.internal.corp"
export no_proxy="localhost,127.0.0.1,.internal.corp,codeium.internal.corp"

2. Configure IDE Extension Endpoints

In VS Code, JetBrains, or Neovim, configure the Codeium extension to target the internal gateway instead of the default public cloud endpoint.

In VS Code's settings.json (deployed globally or per workspace):

{
  "codeium.enterpriseUrl": "https://codeium.internal.corp",
  "http.proxySupport": "override"
}

3. Private CA Certificate Trust

Because the internal ingress uses an enterprise private Certificate Authority (CA), developer tools running under Node.js or embedded Electron runtimes will reject the self-signed or internal root certificate by default.


4. The "Binary Bootstrap Trap": Handling the Language Server Offline

Here is the operational friction point that catches almost every air-gapped engineering team off guard:

When a developer installs the Codeium IDE extension (e.g., via an offline .vsix package in VS Code), the extension itself is merely a client wrapper. Upon its first activation, the extension attempts to make an outbound network call to GitHub Releases (https://github.com/Exafunction/codeium/releases/...) to download a pre-compiled language server binary (language_server_<os>_<arch>).

In an air-gapped environment with no internet access, this download fails silently or crashes the language server client.

How to Resolve the Binary Gap

Do not ask developers to manually download and unpack language server binaries. At 365Finds, we advocate automating this via your workstation configuration management system (Ansible, Puppet, Microsoft Intune, or Golden VDI desktop templates).

  1. Obtain the Matching Binary: On an internet-connected staging machine, download the Codeium language server binary corresponding exactly to your deployed IDE extension version.
  2. Identify the Hash Directory: Codeium checks for binaries in a version-specific hash directory inside the user's home path:
    • Linux / macOS: ~/.codeium/<version-hash>/language_server_<os>_<arch>
    • Windows: %USERPROFILE%\.codeium\<version-hash>\language_server_windows_x64.exe
  3. Pre-populate the Workstation Image: Write a deployment script that drops the executable binary into ~/.codeium/<version-hash>/ and sets executable permissions (chmod +x).
  4. Internal Mirror Hosting: Alternatively, host the binary files on an internal artifact repository (such as JFrog Artifactory or Harbor) accessible via internal HTTPS, and configure internal build pipelines to package pre-bundled extensions.

365Finds Technical Takeaway

Codeium is one of the few generative AI coding platforms with genuine on-premises, air-gapped viability. However, running it without internet connectivity demands zero tolerance for lazy proxy configurations.

Our explicit recommendation: do not treat Codeium like a traditional REST microservice. Lock down your DNS, disable all response buffering on your edge reverse proxy to preserve gRPC streaming performance, aggressively exclude your internal domain in developer NO_PROXY lists, and pre-bake the language server binary into workstation images before rolling the extension out to developers.

References