CLI Tool

LocalGPT for your terminal.

Run AI models, chat, generate images, and manage everything from the command line. Like Ollama, but with built-in cloud support.

Instant SetupOpen Source30+ Models
bash
curl -fsSL https://raw.githubusercontent.com/localgpt/localgpt/main/cli/install.sh | bash

Installation

Choose your method

Recommended for macOS users. Easy updates with brew upgrade.

bash
brew tap localgpt/tap
brew install localgpt

After installing

bash
# Pull your first model
localgpt pull llama3.2

# Start chatting
localgpt run llama3.2

Command Reference

Everything at your fingertips

localgpt run llama3.2
localgpt pull mistral
localgpt models
localgpt models --local
localgpt models --cloud
localgpt ask "What is Rust?"
localgpt image "sunset mountains"
localgpt config set-key openai sk-...
localgpt run gpt-4o
localgpt run claude-sonnet-4-20250514
localgpt list
localgpt ps
localgpt show llama3.2
localgpt rm llama3.2
localgpt config show
localgpt features
localgpt providers
localgpt serve
localgpt version

Ready to start?

Install LocalGPT CLI in seconds and start running AI models from your terminal.