Tabby CLI Cheatsheet - Self-hosted AI Coding Assistant Full Reference

Tabby is an open-source, self-hosted AI coding assistant for code completion, inline chat, and an answer engine, with no external DB or cloud required. tabby is its binary: serve starts an OpenAI-compatible server, download manages models, scheduler triggers repo indexing. This sheet covers launch, models, and API calls so you can self-host a private completion backend.

AI CLI·20 commands·Last updated 2026-09-10
tabbytabbymlaicode-completionself-hostedcliopenai-compatible

Install and Start 6

./tabby serve --model StarCoder-1B
Start with a model (CPU)
./tabby serve --model StarCoder-1B --device cuda
Start with NVIDIA GPU
./tabby serve --model StarCoder-1B --device metal
Start with Apple Silicon
./tabby serve --model StarCoder-1B --device cpu
Force CPU inference
./tabby serve --model StarCoder-1B --port 8080
Set the server port
./tabby --help
List all commands

Models and Indexing 6

./tabby download --model StarCoder-1B
Pre-download a model
./tabby scheduler --now
Trigger repo indexing now
curl http://localhost:8080/health
Check server health
docker run -p 8080:8080 tabbyml/tabby serve --model StarCoder-1B
Run via Docker
./tabby serve --chat-model Qwen2-1.5B-Instruct
Set a chat model
./tabby serve --model StarCoder-1B --chat-model Qwen2-1.5B-Instruct --device cuda
Completion plus chat together

Config and API 8

cat ~/.tabby/config.toml
View the config file
curl -X POST http://localhost:8080/v1/completions -d '{"language":"python","segments":{"prefix":"def "}}'
Call code completion
curl -X POST http://localhost:8080/v1/chat/completions -d '{"messages":[{"role":"user","content":"hi"}]}'
Call chat completion
./tabby serve --model TabbyML/DeepseekCoder-6.7B --device cuda
Use a larger completion model
./tabby serve --help
serve flags
./tabby download --help
download flags
./tabby scheduler --help
scheduler flags
curl http://localhost:8080/v1/models
List available models

Tips

  • Tabby exposes an OpenAI-compatible endpoint; point the IDE plugin at port 8080 to go private.
  • --device picks acceleration: cuda for NVIDIA, metal for Apple, cpu as fallback.
  • scheduler --now triggers code repo indexing so the answer engine gets project context.

FAQ

How is Tabby different from Continue?

Tabby is a self-hosted completion engine with its own server and a standard API; Continue is an IDE extension that can use many backends including Tabby, Ollama, or cloud.

Is a GPU required?

Not required. --device cpu works, just slower; cuda for NVIDIA and metal for Apple give a better experience.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Sep 10, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us