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.
Install and Start 6
./tabby serve --model StarCoder-1B./tabby serve --model StarCoder-1B --device cuda./tabby serve --model StarCoder-1B --device metal./tabby serve --model StarCoder-1B --device cpu./tabby serve --model StarCoder-1B --port 8080./tabby --helpModels and Indexing 6
./tabby download --model StarCoder-1B./tabby scheduler --nowcurl http://localhost:8080/healthdocker run -p 8080:8080 tabbyml/tabby serve --model StarCoder-1B./tabby serve --chat-model Qwen2-1.5B-Instruct./tabby serve --model StarCoder-1B --chat-model Qwen2-1.5B-Instruct --device cudaConfig and API 8
cat ~/.tabby/config.tomlcurl -X POST http://localhost:8080/v1/completions -d '{"language":"python","segments":{"prefix":"def "}}'curl -X POST http://localhost:8080/v1/chat/completions -d '{"messages":[{"role":"user","content":"hi"}]}'./tabby serve --model TabbyML/DeepseekCoder-6.7B --device cuda./tabby serve --help./tabby download --help./tabby scheduler --helpcurl http://localhost:8080/v1/modelsTips
- 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