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:
- 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.
- Custom Model Fine-Tuning: Training or fine-tuning dedicated model weights exclusively on your private code for highly specialized codebases.
- 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.
- Why Repository Indexing (RAG via Context Engine) is usually better: Codebases evolve continuously. If you fine-tune model weights on Monday, those weights are out of date by Friday when an API endpoint signature changes. Tabnine’s Context Engine clones your repositories to create a semantic graph and vector index, then immediately deletes the source code. It refreshes periodically, ensuring completions reflect today’s commits rather than last quarter’s snapshot.
- When True Custom Model Fine-Tuning is justified: Full weight customization makes sense if your team relies heavily on proprietary domain-specific languages (DSLs), legacy internal dialects, or highly strict architectural constraints that public pre-trained models fundamentally fail to parse.
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:
- An active Tabnine Enterprise license (SaaS, VPC, or On-Premises/Air-Gapped).
- Administrator credentials for the Tabnine Admin Console (
admin.tabnine.comor your self-hosted instance URL). - Admin or dedicated service account permissions on your organization’s Git provider (GitHub Enterprise, GitLab Self-Managed/SaaS, or Bitbucket Server/Data Center/Cloud).
- Network line-of-sight and firewall rules allowing your Tabnine deployment to pull from your Git repositories and route to custom model endpoints.
Step 1: Connect Remote Code Repositories in the Admin Console
To give Tabnine global codebase context across your engineering organization:
- Log in to the Admin Console: Navigate to your Tabnine Admin Console and log in with an administrator account.
- Access Personalization Settings: In the left sidebar, click Settings, then select Personalization (or Workspace depending on your deployment version).
- Select Your Git Provider: Tabnine supports GitHub, GitLab, and Bitbucket across cloud and on-premises instances. Choose your organization's provider.
- 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 (
reposcope for GitHub,read_repositoryfor GitLab). Paste the token into Tabnine's credentials field.
- 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.
- 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:
- Navigate to Context Engine Settings:
Go to
Admin UI > Context Engine > Settings. - Assign a Context Engine Admin User: Select an administrative user who belongs to a team with agent features activated.
- Select the Pre-Processing Model: Choose the model engine designated for semantic repository parsing and code graph relationship analysis.
- 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.
- 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:
- Open Model Configurations:
In the Tabnine Admin Console, navigate to
Settings > Models. - 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.
- 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. - 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:
- 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).
- 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).
- 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:
- Zero Source Retention: Tabnine clones connected repositories exclusively to construct indexes and immediately wipes the raw code from memory and disk.
- No Training on Customer Code by Default: Code submitted through queries and autocompletions is never ingested to train Tabnine's public models.
- Air-Gapped Deployment Support: If your security mandate strictly prohibits outbound SaaS connections, Tabnine can run entirely within an air-gapped on-premises Kubernetes cluster or private VPC, keeping both your Git repositories and the LLM inference within your security perimeter.