AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Connect an Enterprise Repository and Custom Model to Tabnine

Eli Kent-Daggett · 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

Connecting private code repositories or custom models to Tabnine is the fastest way to turn a generic autocomplete tool into an engineer that understands your company’s internal APIs, architecture, and coding idioms. At 365Finds, our research indicates that generic AI models fail engineering teams in subtle, frustrating ways: they hallucinate deprecated methods, recommend external libraries when proprietary internal modules already exist, and fail to match company architectural standards.

Tabnine solves this through three complementary layers in Tabnine Enterprise:

  1. Global Codebase Awareness (Connection & Context Engine): Connecting remote Git repositories (GitHub, GitLab, Bitbucket) so Tabnine indexes your private codebases dynamically using a zero-retention semantic index.
  2. Custom Model Fine-Tuning: Training or fine-tuning dedicated model weights exclusively on your private code for highly specialized codebases.
  3. Private Model Endpoints (BYOM): Pointing Tabnine Chat and agents to your self-hosted LLM instances on Amazon Bedrock, Google Cloud Vertex AI, Azure AI Foundry, or internal OpenAI-compatible gateways.

Here is the step-by-step enterprise guide to configuring both repository connections and custom model endpoints, along with 365Finds’ technical recommendations on when to index versus when to fine-tune.


The Architectural Choice: Repository Indexing vs. Custom Model Fine-Tuning

Before configuring a single token, engineering leaders must decide whether their teams actually need full model fine-tuning or repository-level retrieval.

At 365Finds, we regularly see enterprise teams assume they must immediately fine-tune an LLM on their multi-gigabyte monolithic repository. That is usually an expensive mistake.

For the vast majority of enterprise use cases, connecting repositories via the Context Engine delivers immediate accuracy improvements without retraining overhead.


Prerequisites for Enterprise Integration

To connect private repositories or custom models, ensure you have:


Step 1: Connect Remote Code Repositories in the Admin Console

To give Tabnine global codebase context across your engineering organization:

  1. Log in to the Admin Console: Navigate to your Tabnine Admin Console and log in with an administrator account.
  2. Access Personalization Settings: In the left sidebar, click Settings, then select Personalization (or Workspace depending on your deployment version).
  3. Select Your Git Provider: Tabnine supports GitHub, GitLab, and Bitbucket across cloud and on-premises instances. Choose your organization's provider.
  4. Configure Authentication:
    • Method A — SSH Key (Recommended for Enterprise): Tabnine generates a unique public SSH key in the console. Copy this key, navigate to your Git provider's administrative settings (or service account profile), and add it as a Global Deploy Key or Read-Only Access Key.
    • Method B — Personal Access Token (PAT) / Service Token: Generate a personal access token from your Git service account with read-only repository permissions (repo scope for GitHub, read_repository for GitLab). Paste the token into Tabnine's credentials field.
  5. Add Target Repositories: Select the specific repositories that represent your core shared libraries, utility services, and microservices. Avoid indexing repositories that contain heavy binary assets, auto-generated code, or obsolete legacy projects, as noisy context reduces suggestion quality.
  6. Save and Initiate Indexing: Confirm your settings. Tabnine initiates a secure ingestion pipeline.

Step 2: Configure the Tabnine Context Engine

Repository connection provides the raw code, but the Context Engine turns that code into semantic intelligence:

  1. Navigate to Context Engine Settings: Go to Admin UI > Context Engine > Settings.
  2. Assign a Context Engine Admin User: Select an administrative user who belongs to a team with agent features activated.
  3. Select the Pre-Processing Model: Choose the model engine designated for semantic repository parsing and code graph relationship analysis.
  4. Establish the Processing Schedule: Configure automatic re-indexing intervals (daily or weekly schedules aligned with your sprint merge cadences) so newly introduced internal functions and classes are factored into suggestions.
  5. Enable Context Engine Tools for Developers: Toggle on the Context Engine developer tools. This exposes cross-repository scoping (@repo) and deep symbol resolution in Tabnine Chat and IDE completions.

Step 3: Connect Custom Model Endpoints (BYOM)

If your enterprise runs a private, fine-tuned, or compliance-mandated LLM inside your own cloud infrastructure, you can route Tabnine Chat and agent requests through your private endpoint:

  1. Open Model Configurations: In the Tabnine Admin Console, navigate to Settings > Models.
  2. Add a Custom / Private Endpoint: Tabnine supports major enterprise LLM hosting providers:
    • Amazon Bedrock: Provide the IAM role ARN, Region, and model identifier.
    • Azure AI Foundry: Input your Azure OpenAI deployment name, endpoint URL, and API key.
    • Google Cloud Vertex AI: Configure Workload Identity Federation or provide the project credentials and model endpoint.
    • OpenAI-Compatible Private Gateway: Enter your base URL (e.g., https://llm.internal.company.com/v1) and Bearer authentication token.
  3. Set Governance and Cost Controls: Under Settings > Cost Control, set monthly spending caps and token allowances per team or per user to prevent runaway inference costs on proprietary endpoints.
  4. Deploy Dedicated Fine-Tuned Weights (Optional Bespoke Models): If your organization has contracted Tabnine for custom model training on proprietary weights, coordinate deployment through Tabnine Customer Engineering. Once published to your enterprise tenant cluster, the custom model will appear in this menu as an selectable engine.

Step 4: Verification and Developer IDE Setup

Once the administrator finishes server-side configuration, end developers do not need to manually configure repository URLs or model keys:

  1. Sign In via SSO: Developers install the Tabnine extension in their IDE (VS Code, JetBrains IDEs, Eclipse, Neovim) and authenticate through corporate Single Sign-On (SSO).
  2. Automatic Context Activation: The IDE extension pulls organizational policies down automatically. As developers write code, Tabnine blends:
    • Local workspace context (open tabs, local git diffs, adjacent symbols).
    • Global repository context (internal framework methods indexed via Context Engine).
  3. Testing Completion Quality:
    • Begin typing a function signature that calls an internal proprietary utility library. Tabnine should suggest private methods and parameter structures that do not exist in public open-source libraries.
    • Open Tabnine Chat and prompt: "How does our auth middleware handle JWT validation?" Tabnine should reference your connected private auth repository and cite the exact file path.

Security and IP Considerations

At 365Finds, what we value most about Tabnine Enterprise is its strict security posture:

References