Getting Started#
This guide will help you get started with gptme.
Installation#
The quickest way to install gptme is with the one-line installer:
curl -sSf https://gptme.ai/install.sh | sh
This auto-detects uv or pipx and installs gptme with browser support.
Pass --help for options (--dev, --extras, --no-extras, --yes).
Alternatively, install directly with pipx or uv:
pipx install gptme
# or
uv tool install gptme
If pipx is not installed, you can install it using pip:
pip install --user pipx
If uv is not installed, you can install it using pip, pipx, or your system package manager.
Note
Windows is not directly supported, but you can run gptme using WSL or Docker.
Tip
Some gptme tools require additional system dependencies (playwright, tmux, gh, etc.). For extras, source installation, and system dependencies, see System Dependencies.
Usage#
To start your first chat, simply run:
gptme
This will start an interactive chat session with the AI assistant.
If you haven’t set a LLM provider API key in the environment or configuration, you will be prompted for one which will be saved in the configuration file.
For detailed usage instructions, see Usage.
You can also try the Examples.
Quick Examples#
Here are some compelling examples to get you started:
# Create applications and games
gptme 'write a web app to particles.html which shows off an impressive and colorful particle effect using three.js'
gptme 'create a performant n-body simulation in rust'
# Work with files and code
gptme 'summarize this' README.md
gptme 'refactor this' main.py
gptme 'what do you see?' image.png # vision
# Development workflows
git status -vv | gptme 'commit'
make test | gptme 'fix the failing tests'
gptme 'implement this' https://github.com/gptme/gptme/issues/286
# Chain multiple tasks
gptme 'make a change' - 'test it' - 'commit it'
# Resume conversations
gptme -r
Local Models (No API Key Required)#
To run gptme without an API key, use a local model via Ollama:
# Install Ollama (see https://ollama.com), then pull a model
ollama pull llama3.2:1b
ollama serve # run in background or separate terminal
# Check that gptme can see the local server (probes /v1/models)
gptme providers list
# Use with gptme (OPENAI_BASE_URL is required by the local provider)
export OPENAI_BASE_URL="http://127.0.0.1:11434/v1"
gptme "hello" -m local/llama3.2:1b
For better results on coding tasks, use a larger model:
ollama pull llama3.1:8b
export OPENAI_BASE_URL="http://127.0.0.1:11434/v1"
gptme -m local/llama3.1:8b
Tip
Local models work well for simple tasks and private workflows. For complex multi-step coding work, API-based models (Claude, GPT-4o) give better results.
If gptme shows an error about the summary model, configure model.summary in
Configuration to point to a local model, or pass -m local/MODEL_NAME to use the
same model for both chat and summaries.
See Providers for Groq and all other built-in provider options, or Custom and Local Providers for Ollama, vLLM, and custom server setup.
Free Cloud Providers (No Credit Card Required)#
Several cloud providers offer free tiers that work with gptme out of the box:
OpenRouter (recommended: largest free model catalog)
OpenRouter aggregates free model tiers from Google, Meta, Mistral, and others behind one API key:
# Sign in with browser — no credit card required
gptme '/account setup openrouter'
# Then use any :free-tagged model
gptme "hello" -m openrouter/google/gemini-2.5-flash:free
gptme "hello" -m openrouter/meta-llama/llama-3.3-70b-instruct:free
Free OpenRouter models are rate-limited but sufficient for personal use. The :free suffix selects
the free tier; omitting it routes to paid inference.
Google Gemini (generous free quota, 1 M token context)
# Get a free API key at https://aistudio.google.com/apikey (no credit card)
export GEMINI_API_KEY="your-key"
gptme "hello" -m gemini/gemini-2.5-flash
Groq (fast inference, free tier)
# Get a free API key at https://console.groq.com (no credit card)
export GROQ_API_KEY="your-key"
gptme "hello" -m groq/llama-3.3-70b-versatile
Tip
Free cloud tiers give better results than local small models for most tasks, while still
requiring zero spend. OpenRouter’s /account setup is the fastest path — one browser
sign-in configures everything.
For truly private workflows, prefer local models or a self-hosted server. Cloud providers receive your prompts on their infrastructure.
Next Steps#
Support#
For any issues, please visit our issue tracker.