To install Tabby self hosted AI code completion, run the official Tabby Docker image on a machine with an NVIDIA GPU, open http://localhost:8080 to create your account, then connect the Tabby extension in VS Code with your server endpoint and account token. Tabby's open-source core carries a $0 licence fee under Apache 2.0, but the ee/ enterprise directory sits under a separate licence, and you still need GPU hardware and admin time. For comparison, official GitHub Docs list Copilot Business at $19 USD per user per month, so five seats cost $1,140 a year before overage.
Quick Answer
To install Tabby self hosted AI code completion, run the official Tabby Docker image on a machine with an NVIDIA GPU, open http://localhost:8080 to create your account, then connect the Tabby extension in VS Code with your server endpoint and account token. Tabby’s open-source core carries a $0 licence fee under Apache 2.0, but the ee/ enterprise directory sits under a separate licence, and you still need GPU hardware and admin time. For comparison, official GitHub Docs list Copilot Business at $19 USD per user per month, so five seats cost $1,140 a year before overage.
In this article
- How we checked this guide
- Read this first: licence split and project status
- What Tabby replaces, and what it does not
- How Tabby, models, and IDE extensions fit together
- Routes to install Tabby
- Requirements before you install
- Step 1: prepare the host and a test scope
- Step 2: run Tabby with Docker
- Step 3: create your account and secure first login
- Step 4: choose completion and chat models
- Step 5: connect VS Code and run a first test
- Step 6: add repository context for better answers
- First-run security steps you must not skip
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save money
- The real cost maths
- When not to install Tabby
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot
- Sources
How we checked this guide
We checked this guide on December 4, 2026, against Tabby’s official GitHub repository, its LICENSE file, the latest-release page, the official documentation for Docker installation, models, configuration, and the VS Code extension, and the official Docker Hub image page. We checked Copilot Business and Enterprise prices on official GitHub Docs.
One status point matters before you install. On our check date, the TabbyML homepage presented agent-improvement services and did not list Tabby Team or Enterprise prices, while the Tabby documentation and GitHub repository remained online. Because no official Tabby paid-tier price was listed on the pages we checked, this guide leaves those prices out and tells you to confirm current commercial terms on the official site and repository before you rely on enterprise features.
Read this first: licence split and project status

Tabby is a self-hosted AI coding assistant from TabbyML. The project describes itself as an open-source, on-premises alternative to GitHub Copilot: you run one server, and your team’s editors connect to it for code completion and chat.
The licence is split, and GitHub shows it as “Other” for that reason. The repository LICENSE file states that content outside the ee/ directory is available under Apache 2.0, content under ee/ is licensed under ee/LICENSE, and third-party components keep their original licences. In plain words, the open-source core is free to use commercially under Apache 2.0 terms, including the no-charge grant and the as-is warranty disclaimer. Enterprise-directory features are not covered by that grant, so read ee/LICENSE and confirm current terms before production use of those features.
Project status needs the same plain reading. GitHub’s latest-release page shows v0.32.0 as the latest release, with generic OAuth support, Mistral embedding API support, and multi-branch indexing. The repository is not archived. Release pace is part of your risk decision: pin the version you test, keep your own backup, and do not treat a self-hosted server as a vendor-supported subscription.
Tabby fits a technical owner or small team that wants code completion on infrastructure they control. It is a poor fit when nobody will own GPU capacity, updates, user access, and model choices.
What Tabby replaces, and what it does not
Tabby replaces the hosted completion seat with a server you operate. Instead of every editor sending completion requests to a vendor cloud, your IDE extensions call your Tabby server, which runs the completion model and returns suggestions. That is the right shape when code must stay on your network or when one shared GPU box should serve the whole team.
It can also replace part of a per-seat coding subscription for completion and chat. Tabby separates the completion model from the chat model, so a small fast model can handle inline suggestions while a larger instruct model answers questions.
Tabby does not replace code review, tests, or judgment. A completion that looks right can still break a billing rule or copy an insecure pattern from context. Your branch discipline, tests, and review habit remain the control.
It also does not replace a managed platform’s support desk. You own the server, the GPU, the model downloads, the backups, and the update testing. The $0 core licence removes a seat fee; it does not remove operations work.
Best for: a solo developer or small technical team with a suitable GPU that wants self-hosted completion and chat. Skip if: you need vendor support, zero-operations setup, or enterprise identity features you have not confirmed under current terms.
How Tabby, models, and IDE extensions fit together
Think of four layers. The Tabby server is the service you run. A completion model produces inline suggestions. An optional chat model powers chat and inline editing. IDE extensions connect your editor to the server.
The official models registry lists completion models, chat models, and embedding models separately, each with its own licence. That separation matters commercially: Tabby’s core licence does not change a model’s licence. For example, the registry lists StarCoder models under BigCode-OpenRAIL-M, Qwen2.5-Coder models under Apache 2.0, and Codestral-22B under the Mistral AI Non-Production License. Read the model licence before you standardize on a model for client work.
Context is the fourth layer. Tabby can index source-code repositories and developer documentation so completions and chat answers can use project context. Repositories are added through the admin UI or through ~/.tabby/config.toml; the docs note the config file is the only way to add a repository for Tabby OSS. Private GitHub or GitLab repositories need a personal access token.
Tabby says its IDE extensions use streaming and cancellation with adaptive caching for fast completion, and its model serving parses relevant code into Tree Sitter tags for prompts. Treat those as design claims to test on your own codebase, not as a guarantee for every repository.
For a per-editor assistant instead of a team server, see our Continue guide. For terminal pair programming, see our Aider guide. Tabby’s difference is one shared completion server for the team.
Routes to install Tabby
| Route | Best for | Main requirement | Watch out for |
|---|---|---|---|
| Docker with CUDA | Most self-hosted trials | Docker, NVIDIA GPU, NVIDIA Container Toolkit | Record the exact image and model you tested |
| Docker Hub image | Operators who prefer Docker Hub | Same GPU and toolkit requirements | The docs quick start uses the TabbyML registry image; keep one source |
| Homebrew or Hugging Face Space | Mac or hosted demos listed in the docs | Platform-specific setup from the docs | Follow the current docs page for that route before copying commands |
| Build from source | Contributors and auditors | Rust toolchain and build dependencies | Slowest route; you own every rebuild |
This guide uses the Docker CUDA route because the official Docker guide gives the complete command, the volume mount, and the log command in one place. Use the same route for your trial and your runbook so the test matches production.
Requirements before you install
For the Docker CUDA route, you need Docker and an NVIDIA GPU that Docker can use. The official Docker guide says to install the NVIDIA Container Toolkit for CUDA support in Docker. Confirm the toolkit works before you blame Tabby for a GPU error.
Model size decides the hardware. Tabby’s models registry advises at least NVIDIA T4, 10 Series, or 20 Series GPUs, or Apple Silicon such as M1, for 1B to 3B models. For 7B to 13B models, it recommends NVIDIA V100, A100, 30 Series, or 40 Series GPUs. Start with a 1B to 3B completion model for the trial; move up only when latency and acceptance quality justify the larger model.
Leave disk space for model files, the Tabby data directory, and repository indexes. The Docker command mounts $HOME/.tabby at /data, so that directory becomes your server’s state. Treat it as production data from day one: know where it lives, who can read it, and how you will back it up.
Decide your network rule before the first run. The official command publishes port 8080. For a trial on one machine, keep access local or on a trusted network, create your account promptly, and do not expose an unconfigured server to the public internet.
Step 1: prepare the host and a test scope
Pick one host and one small test scope. A workstation or server with a suitable NVIDIA GPU is enough for the trial. Choose one repository and one editor for the first test so a failure has one cause at a time.
Write down the test before you install. For example: start the server, create the account, connect VS Code, open a known file, and confirm that inline completion appears and that chat can explain a selected function. Record the Tabby version, the model IDs, and the editor version that pass.
Keep client secrets out of the trial repository. Repository indexing is powerful, but a token with broad access turns a convenience feature into a credential risk. Use the smallest repository access that lets the test run.
Step 2: run Tabby with Docker

Install the NVIDIA Container Toolkit first, as the official Docker guide directs. Then run Tabby with the official command:
docker run -d \
--name tabby \
--gpus all \
-p 8080:8080 \
-v $HOME/.tabby:/data \
registry.tabbyml.com/tabbyml/tabby \
serve \
--model StarCoder-1B \
--chat-model Qwen2-1.5B-Instruct \
--device cudaThe command names the container tabby, passes all GPUs, publishes port 8080, mounts $HOME/.tabby as /data, and starts the server with StarCoder-1B for completion and Qwen2-1.5B-Instruct for chat on CUDA. On systems with SELinux enabled, the guide says you may need the :Z option on the volume mount, giving -v $HOME/.tabby:/data:Z.
After Tabby is running, open http://localhost:8080. If the page does not load, read the container logs before changing models or ports:
docker logs -f tabbyLogs separate three different failures: Docker cannot see the GPU, the model cannot start, or the server started but your browser cannot reach port 8080. Fix the layer the log names.
Step 3: create your account and secure first login
Open the Tabby web interface at http://localhost:8080 and create your account following the setup flow. The VS Code extension guide describes the same order: set up the self-hosted server and create your account first, then connect the editor with the server endpoint and account token.
Treat the first account as an administrator credential. Use a strong unique password, store it in your password manager, and record who owns the server. Do not share one account across the team; each person should connect with their own account token so access can be revoked per person.
Keep the server reachable only where it should be. A completion server indexes code and answers questions about it, so network placement is a security decision, not a convenience setting. Put team access behind your normal private network controls, and review who can reach port 8080 before you invite the second user.
Step 4: choose completion and chat models

Keep the official starter pair for the first test: StarCoder-1B for completion and Qwen2-1.5B-Instruct for chat. That pair proves the server, the account, and the editor connection without mixing in a model-size problem.
Then choose by job and licence. Completion needs speed and a suitable fill-in-the-middle format. Chat needs instruction quality and enough context for codebase questions. The registry lists Qwen2.5-Coder completion models under Apache 2.0 and StarCoder models under BigCode-OpenRAIL-M; Codestral-22B is listed under the Mistral AI Non-Production License, which should stop a production rollout until you have read its terms.
Change one model at a time. Record the model ID, the GPU, the first completion latency you observe, and whether suggestions are accepted in real work. A larger model that doubles latency for a small quality gain can make developers disable the tool, which is the most expensive outcome of all.
Step 5: connect VS Code and run a first test
Install the Tabby extension from the Visual Studio Marketplace or Open VSX. In VS Code or VSCodium, open Quick Open with Ctrl/Cmd+P, paste the official command, and press Enter:
ext install TabbyML.vscode-tabbyConnect the editor to your server with the Tabby: Connect to Server... command in the command palette. Enter your Tabby server endpoint URL and account token. For a local trial, the endpoint is the same server you opened at http://localhost:8080.
Run three tests in order. First, type code in a test file and confirm a multi-line completion appears. Second, select a function and run Tabby: Explain This. Third, select a small block and start inline editing with Tabby: Start Inline Editing (Ctrl/Cmd+I), then review the proposed change before accepting it. The extension guide lists all three capabilities; your job is to prove them on your code, with your model, on your GPU.
Step 6: add repository context for better answers
Repository context helps Tabby answer with project knowledge instead of only the open file. Tabby fetches codebase, pull or merge requests, issues, and commits, parses them into an index, and uses that context during completion, chat, and search.
For Tabby OSS, add repositories in ~/.tabby/config.toml. The structure follows the official example:
[[repositories]]
name = "my-repo"
git_url = "https://github.com/your-org/your-repo.git"Replace the example name and URL with your repository. Git URLs can use HTTPS or SSH, and local directories are supported through the file:// protocol; in Docker, a local path must be made accessible with a volume mount and referenced by its internal container path. For private GitHub or GitLab repositories, create a personal access token with the smallest scope that can read the repository.
After adding a repository, an indexing job fetches the information and builds the index. Check the job on the Jobs page, then open the Code Browser to confirm the connected repository appears. Index one repository first. A failed token or wrong path is easier to fix before five repositories share the same mistake.
Developer documentation can be added as context too, but keep the trial narrow. Prove code completion on one repository before you add documentation crawling to the same change window.
First-run security steps you must not skip
Create accounts before you widen access. The editor connects with an endpoint and an account token, so token handling is part of installation, not a later cleanup. Store tokens like passwords, rotate them when people leave, and never paste a token into a shared screenshot or issue.
Limit repository tokens. A personal access token for indexing should read only the repositories Tabby needs. Broad tokens turn a self-hosted convenience into a standing credential for your codebase.
Control the network path. Port 8080 serves the web interface and API surface your editors call. Keep it on localhost for a solo trial or behind your private network controls for a team. Do not publish the port to the internet to solve a connection problem.
Review model licences separately from Tabby’s licence. The registry is explicit that models carry different licences. A model that is fine for a private trial may be wrong for production client work.
Keep human review in the loop. Completions and inline edits are suggestions. Run tests, read diffs, and reject code you cannot explain. Self-hosting controls where inference runs; it does not certify the output.
Backup and update routine
Back up the Tabby data directory and your configuration. The Docker command mounts $HOME/.tabby at /data, and ~/.tabby/config.toml holds repository configuration for OSS installs. Copy both before model changes, image updates, or host moves. Keep the backup somewhere that survives the host, and test that you can find the files again.
Record the working set. Write down the Tabby release, the Docker image you pulled, the completion model, the chat model, the GPU, and the editor extension version that passed your test. GitHub’s latest-release page showed v0.32.0 on our check date; your runbook should name the exact release you actually run.
Update in a test window. Pull the new image, start it against a copy of your data or a non-critical host, and repeat the same three editor tests: completion, explain, and inline edit. Check the indexing job after the update. Roll back by returning to the recorded image and data backup if completions degrade.
Review access monthly. Remove departed users, rotate repository tokens, and re-read model licences when you change models. Self-hosting stays cheap only when ownership stays current.
Common errors and fixes
Docker cannot use the GPU. Confirm the NVIDIA Container Toolkit is installed for CUDA support in Docker, then check docker logs -f tabby. Fix GPU passthrough before changing Tabby models.
The web interface does not load. Confirm the container is running and port 8080 is published as -p 8080:8080. Read the logs to separate a server failure from a network reachability failure.
Volume errors on SELinux systems. The official guide says SELinux systems may need :Z on the volume mount. Use -v $HOME/.tabby:/data:Z when that is the error you see.
VS Code cannot connect. Re-run Tabby: Connect to Server... and check the endpoint URL and account token character by character. Confirm the server page loads in a browser before debugging the extension.
No completion appears. Confirm the server is running the completion model you expect, the extension is connected to the right endpoint, and you are testing in a supported editor view. Try the starter StarCoder-1B model to remove model size as a variable.
Repository indexing fails. Check the [[repositories]] name and git_url in ~/.tabby/config.toml, confirm the token can read a private repository, and read the indexing job log on the Jobs page. For file:// repositories in Docker, confirm the volume mount and internal path.
Completions are slow. Move down the registry ladder before buying hardware: a 1B to 3B completion model fits smaller GPUs, while 7B to 13B models need stronger GPUs. Measure acceptance, not only speed; a fast suggestion nobody accepts is still waste.
Tips and tricks that save money
Start small and earn the upgrade. A 1B completion model on hardware you own can prove value before a GPU purchase. Upgrade when measured acceptance and latency justify it.
Separate completion from chat. Inline completion runs constantly, so latency dominates. Chat runs occasionally, so quality can matter more. Tabby’s separate --model and --chat-model choices let you spend GPU capacity where each job needs it.
Index only what the team uses. Every indexed repository adds storage, indexing time, and access risk. Add repositories in priority order and remove stale ones.
Measure one week of real use. Count active users, accepted completions, and admin minutes. Compare that record with the per-seat subscription maths below. If Tabby wins only by ignoring admin time, the subscription may be cheaper.
The real cost maths

Tabby’s open-source core licence fee is $0. The LICENSE file grants Apache 2.0 rights, including a no-charge copyright licence, for content outside the ee/ directory. Real cost sits elsewhere: GPU hardware if you do not already own it, electricity, storage, setup time, update testing, and the admin work of accounts, tokens, and backups.
Use official GitHub Docs for the subscription anchor. Copilot Business is $19 USD per user per month with 1,900 AI credits per user, and Copilot Enterprise is $39 USD per user per month with 3,900 AI credits per user. Credits are pooled, and GitHub says usage can continue beyond the pool with additional charges by default, with budget controls available to govern spending.
Five-seat maths is simple. Copilot Business costs 5 × $19 = $95 a month, or $1,140 a year before overage. Copilot Enterprise costs 5 × $39 = $195 a month, or $2,340 a year before overage. One Business seat costs $228 a year.
Tabby on a GPU workstation you already own costs $0 in core licence fees and $0 in new hardware for that scenario. The honest comparison is therefore $1,140 a year in five-seat Business fees against your electricity and admin time. If you must buy a GPU, divide its purchase price by $95 to get the payback period in months against five Business seats, then add admin time before deciding. A GPU that pays back in licence fees but consumes a day of admin work every month may still lose.
Two cost traps need naming. First, ee/ enterprise features sit under a separate licence, and the official homepage did not list Tabby paid-tier prices on our check date, so confirm current terms before budgeting around SSO or other enterprise needs. Second, model licences differ: an Apache 2.0 model such as Qwen2.5-Coder keeps the licence story simple, while a non-production model licence can block the rollout you just paid to set up.
When not to install Tabby
Skip Tabby when you have no suitable GPU and no budget to buy one. The registry guidance is clear that model size needs matching hardware; a weak host produces slow completions that developers will disable.
Skip it when nobody will own operations. Accounts, tokens, indexing jobs, backups, and update tests are recurring work. A hosted subscription is better when that work has no owner.
Skip it when your requirement is an enterprise feature you have not confirmed under current ee/ terms. Do not build a rollout on a feature whose licence and price you cannot verify on official pages.
Skip it when you need vendor support with response-time commitments. Self-hosting gives you control and source access; it does not give you a support desk.
Install Tabby when code control, one shared GPU server, and a $0 core licence are worth owning the operations. That is a strong fit for a technical team. It is the wrong fit for a team buying convenience.
Pros and cons
Pros: $0 Apache 2.0 core licence fee outside the ee/ directory; one self-hosted server for team code completion and chat; separate completion, chat, and embedding model choices; official Docker CUDA install with a persistent data volume; VS Code extension on Marketplace and Open VSX; repository and documentation context through config or admin UI; self-contained design with no external DBMS or cloud service required by the core server.
Cons: ee/ enterprise features sit under a separate licence with no paid-tier price listed on the official homepage at our check; GPU hardware is required for a good experience; you own updates, backups, tokens, and support; model licences vary and must be checked per model; release pace must be monitored because self-hosting makes you the maintainer; network exposure of port 8080 must be controlled by you.
Our verdict
Install Tabby self-hosted AI code completion when your team has a suitable GPU and a named owner for the server. Use the official Docker CUDA command, create the account at http://localhost:8080, connect VS Code with the endpoint and token, and prove completion, explain, and inline editing on one repository before rollout.
The maths favors Tabby when hardware already exists: $0 in core licence fees against $1,140 a year for five Copilot Business seats before overage. The maths flips when a GPU purchase plus admin time exceeds the subscription, or when unconfirmed enterprise terms block a required feature. Choose Copilot Business when managed seats, pooled credits, and vendor operations matter more. Choose Tabby when code control and a shared self-hosted server matter more, and when your team will actually maintain it.
FAQ
Is Tabby free to use for a business?
The open-source core is free under Apache 2.0 for content outside the ee/ directory, with commercial use allowed under the licence terms. The ee/ directory is licensed separately, models carry their own licences, and you still pay for hardware, electricity, and admin time. Confirm current enterprise terms on official pages before production use of ee/ features.
What GPU do I need for Tabby?
Tabby’s models registry advises at least NVIDIA T4, 10 Series, or 20 Series GPUs, or Apple Silicon such as M1, for 1B to 3B models. For 7B to 13B models, it recommends NVIDIA V100, A100, 30 Series, or 40 Series GPUs. Start with a 1B to 3B completion model and upgrade only when measured quality justifies it.
Does my code leave my network with Tabby?
Tabby is self-hosted, so editor requests go to your Tabby server instead of a vendor completion cloud. Repository indexing fetches only the repositories you configure, using tokens you provide. Your network placement still matters: keep port 8080 on localhost or behind private network controls, and limit token scope.
How do I connect VS Code to Tabby?
Install the extension with ext install TabbyML.vscode-tabby from the Marketplace or Open VSX route, then run Tabby: Connect to Server... and enter your server endpoint URL and account token. Create the server account first at http://localhost:8080 for a local trial.
When should a small business skip Tabby?
Skip it when there is no suitable GPU, no owner for updates and backups, a support or SLA requirement, or an enterprise feature need you cannot confirm under current official terms. In those cases, a managed per-seat subscription is the safer purchase.
Strategic Pivot
Before you buy seats or a GPU, run your own numbers. Use our free AI Cost Calculator to compare a $0-licence self-hosted server against per-seat subscription fees for your actual team size, then add admin time honestly. If a per-editor assistant fits better than a team server, read our Continue guide. If local models are the next step, read our Ollama guide. The right tool is the one whose licence, hardware, and maintenance owner you can name in one minute.
Price note — updated December 4, 2026: Prices in this post were checked on December 4, 2026. When you are reading this, the price may be lower or higher. Check the official pricing page before buying.
Sources
- Tabby GitHub repository — self-hosted positioning, licence display, releases, Docker command
- Tabby LICENSE file — Apache 2.0 outside
ee/, separateee/LICENSE - Tabby latest release — v0.32.0 latest-release status and features
- Tabby Docker installation guide — NVIDIA Container Toolkit, Docker command, SELinux note, logs
- Tabby models registry — GPU guidance and model licences
- Tabby configuration and context providers —
config.toml, repositories, tokens, indexing jobs - Tabby VS Code extension guide — extension install, connect command, chat and inline editing
- What’s Tabby — self-hosted code completion server and deployment routes
- Tabby Docker Hub image — official image page and quick-start command
- TabbyML homepage — official homepage checked for current Tabby pricing presence
- GitHub Docs: Choosing your enterprise’s plan for GitHub Copilot — Copilot Business and Enterprise prices and pooled credits
Pros
- $0 Apache 2.0 core licence fee outside the ee/ directory
- one self-hosted server for team code completion and chat
- separate completion, chat, and embedding model choices
- official Docker CUDA install with a persistent data volume
- VS Code extension on Marketplace and Open VSX
- repository and documentation context through config or admin UI
- self-contained design with no external DBMS or cloud service required by the core server
Cons
- ee/ enterprise features sit under a separate licence with no paid-tier price listed on the official homepage at our check
- GPU hardware is required for a good experience
- you own updates, backups, tokens, and support
- model licences vary and must be checked per model
- release pace must be monitored because self-hosting makes you the maintainer
- network exposure of port 8080 must be controlled by you
Install Tabby self-hosted AI code completion when your team has a suitable GPU and a named owner for the server. Use the official Docker CUDA command, create the account at http://localhost:8080, connect VS Code with the endpoint and token, and prove completion, explain, and inline editing on one repository before rollout. The maths favors Tabby when hardware already exists: $0 in core licence fees against $1,140 a year for five Copilot Business seats before overage. The maths flips when a GPU purchase plus admin time exceeds the subscription, or when unconfirmed enterprise terms block a required feature. Choose Copilot Business when managed seats, pooled credits, and vendor operations matter more. Choose Tabby when code control and a shared self-hosted server matter more, and when your team will actually maintain it.

1 thought on “How to Install Tabby Self-Hosted AI Code Completion (2026)”