AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Configure Tabnine for Air-Gapped and Private Repository Code Completion

Lara Jorge Ricart · 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

Configuring AI code completion for an air-gapped network or an isolated private repository is fundamentally different from toggling an enterprise SaaS switch. Most AI coding assistants rely on cloud-bound inference engines that stream code snippets over the public internet. Tabnine Enterprise offers a genuinely self-contained alternative: you can deploy the complete platform—including inference models, vector context databases, and administrative controls—inside your own firewall or physical perimeter with zero outbound connectivity.

At 365Finds, we evaluate developer infrastructure through both technical feasibility and operational reality. Deploying Tabnine in an air-gapped environment works, but it requires deliberate coordination across Kubernetes infrastructure, internal version control systems (VCS), and IDE client configurations. Here is the operational architecture and exact configuration workflow to lock down private repository completion without exposing proprietary intellectual property.


Architectural Overview: The Zero-Egress Perimeter

In a standard SaaS setup, local IDE extensions send prompt tokens to vendor-hosted endpoints. In a fully air-gapped Tabnine deployment, every layer runs locally on your infrastructure:

[ Developer Workstations / IDEs ]
       │  (Internal TLS)
       ▼
[ Ingress / Load Balancer ]
       │
┌──────┴───────────────────────────────────────────────────────┐
│ Tabnine Enterprise (Private Kubernetes Cluster)              │
│                                                              │
│  ┌────────────────────────┐    ┌───────────────────────────┐ │
│  │ Tabnine Core Server    │    │ Local Inference Engine    │ │
│  │ (Auth / Admin Console) │◄──►│ (On-Prem GPU Cluster /    │ │
│  └───────────┬────────────┘    │  Dedicated Models)        │ │
│              │                 └───────────────────────────┘ │
│              ▼                                               │
│  ┌────────────────────────┐    ┌───────────────────────────┐ │
│  │ Context Engine / RAG   │◄──►│ Internal Git VCS          │ │
│  │ (Local Vector Store)   │    │ (GitLab / GitHub EE /     │ │
│  └────────────────────────┘    │  Bitbucket Server)        │ │
│                                └───────────────────────────┘ │
│  ┌────────────────────────┐                                  │
│  │ Internal Telemetry     │──► [ Local Prometheus / SIEM ]   │
│  └────────────────────────┘                                  │
└──────────────────────────────────────────────────────────────┘
                       ✕ NO EXTERNAL EGRESS ✕

Three boundaries must be established:

  1. Model & Service Boundary: Tabnine Enterprise running on bare-metal or private VPC Kubernetes nodes equipped with enterprise GPUs (such as NVIDIA L40S, A100, or H100).
  2. Context Boundary: An internal indexing pipeline that reads your private Git repositories via local read-only credentials, builds vector embeddings, and stores them on-premises.
  3. Client Boundary: Developer IDEs locked to your internal Tabnine server URL, pulling plugins from internal artifact mirrors.

Step 1: Stage Artifacts and Deploy to Kubernetes

Because the target environment has no internet access, all installation assets must be mirrored across your secure transfer pipeline into an internal container registry (such as Harbor or JFrog Artifactory).

1. Transfer Container Images and Helm Charts

On an internet-connected staging host, download the official Tabnine Enterprise release artifacts provided by Tabnine support:

Verify package checksums, run security scans through your vulnerability scanner, and push the images to your internal registry:

# Example tag and push to local air-gapped registry
docker tag registry.tabnine.com/enterprise/core:vX.Y.Z harbor.internal.net/tabnine/core:vX.Y.Z
docker push harbor.internal.net/tabnine/core:vX.Y.Z

2. Configure Values and Deploy via Helm

Customize the values.yaml file to ensure all image paths, ingress hostnames, and telemetry targets point strictly to internal infrastructure. Set telemetry endpoints to local sinks rather than default cloud destinations:

global:
  imageRegistry: "harbor.internal.net/tabnine"
  serverUrl: "https://tabnine.internal.net"

telemetry:
  enabled: true
  exportToCloud: false
  localPrometheus:
    enabled: true
    path: "/metrics"

ingress:
  enabled: true
  hosts:
    - host: tabnine.internal.net
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: tabnine-internal-tls
      hosts:
        - tabnine.internal.net

Deploy the chart into your isolated Kubernetes namespace:

helm install tabnine-enterprise ./tabnine-enterprise-chart \
  --namespace tabnine \
  --create-namespace \
  -f values.yaml

Once the pods are running, verify that all outbound network traffic outside your internal CIDR blocks is dropped at the firewall or Kubernetes NetworkPolicy level.


Step 2: Connect Private Repositories for Local Context (RAG)

Generic code completion is useful, but developer productivity hinges on context awareness—understanding your internal frameworks, custom SDKs, and proprietary data structures. Tabnine handles this through its Connection and Global Codebase Awareness engine, which performs local Retrieval-Augmented Generation (RAG).

To connect private repositories without compromising source code security:

1. Generate Access Credentials in Your Internal VCS

Create a dedicated read-only service account in your private Git host (GitLab Self-Managed, GitHub Enterprise Server, or Bitbucket Data Center).

2. Register Repositories in the Tabnine Admin Console

  1. Log in to the internal Tabnine Admin Console (https://tabnine.internal.net) as an administrator.
  2. Go to Settings > Personalization > Repositories.
  3. Add the internal Git endpoints (e.g., git@git.internal.net:platform/core-services.git or https://git.internal.net/platform/core-services.git).
  4. Select the authentication credential created in the previous step.
  5. Define the indexing schedule and branch targeting (typically main or master).

3. Verify Local Vector Indexing

Once connected, the Tabnine Context Engine clones the designated repositories into isolated internal persistent volumes, parses the syntax trees, and builds local vector embeddings.

[!IMPORTANT] At 365Finds, we strongly recommend auditing your team mapping rules before indexing sensitive repositories. If your engineering organization separates access across projects (e.g., core cryptography vs. frontend applications), ensure you configure Tabnine Team Scoping. Unrestricted global indexing allows any developer querying Tabnine Chat to retrieve structural context and code snippets from any indexed repository.


Step 3: IDE Distribution and Client Configuration

Developers in an air-gapped network cannot download extensions from the public Visual Studio Marketplace or JetBrains Marketplace. Client distribution must be handled internally.

1. Mirror and Distribute Extension Packages

2. Enforce the Internal Server URL

For Tabnine to function, the client plugin must connect to your internal server rather than console.tabnine.com.

In Visual Studio Code:

Configure user or workspace settings (settings.json):

{
  "tabnine.cloudHost": "https://tabnine.internal.net"
}

Alternatively, developers can press Ctrl+Shift+P (or Cmd+Shift+P), run Preferences: Open User Settings, search for Tabnine: Cloud Host, and enter https://tabnine.internal.net.

In JetBrains IDEs (IntelliJ, PyCharm, WebStorm, etc.):

  1. Navigate to Settings / Preferences > Tools > Tabnine.
  2. Locate the Engine section.
  3. Paste https://tabnine.internal.net into the Enterprise Server URL field.
  4. Click Apply and OK, then restart the IDE.

In Visual Studio (2022):

  1. Navigate to Tools > Options > Tabnine.
  2. Open settings and update the Server URL to https://tabnine.internal.net.
  3. Restart Visual Studio.

3. Internal SSO / Identity Provider Authentication

Once restarted, the IDE extension prompts the developer to sign in. Clicking the sign-in prompt redirects to your internal Tabnine server, which should be federated with your corporate IdP (SAML 2.0 or OIDC via Keycloak, Okta, or Active Directory). Once authenticated, the IDE receives an authorization token and begins serving inline completions and contextual chat backed by your local models.


Operational Governance & Trade-Offs

Deploying an air-gapped AI platform introduces distinct maintenance and hardware realities that teams must budget for.

ConsiderationAir-Gapped Tabnine EnterpriseStandard Public SaaS AI Assistant
Data Privacy & EgressZero outbound traffic; code never leaves network perimeterCode fragments and metadata transit vendor servers
Model HostingSelf-hosted on local GPUs (e.g. L40S, A100) or local CPU clustersFully managed in vendor public cloud
Context IndexingLocal RAG across internal GitLab, GitHub EE, BitbucketCloud RAG or workspace-only local context
Update MechanismManual offline bundles; staged registry syncAutomatic, seamless vendor rollouts
Infrastructure OverheadHigh (Kubernetes management, GPU orchestration, storage)Minimal (IDE extension install only)

365Finds Research Verdict

At 365Finds, we admire Tabnine's architectural commitment to true enterprise self-hosting. In an AI market dominated by vendors pushing centralized SaaS lock-in, Tabnine remains one of the few production-grade solutions that genuinely respects air-gapped physical isolation.

However, do not underestimate the maintenance commitment:

For defense contractors, banking institutions, and regulated healthcare platforms where external code leakage is an existential compliance violation, Tabnine Enterprise's air-gapped configuration is our primary recommendation.


References