An open-source AI agent from Google that brings Gemini into your terminal to query, edit, and automate code.
aandrew-me/tgpt
A cross-platform command-line tool for chatting with various free AI providers directly from your terminal.
Open-source alternative to:ChatGPT
- Stars
- 3,281
- Forks
- 348
- Open issues
- 6
- Last commit
- 20 hours ago
What is it?
tgpt is a command-line interface that lets you use AI chatbots from your terminal without opening a browser. It runs on GNU/Linux, macOS, Windows and FreeBSD, and can be installed through an install script, Homebrew, pacman, Scoop, Chocolatey, Go, or as a standalone release binary.
The tool connects to a list of AI providers, which are documented separately in the project's provider list. It includes a self-update command (tgpt -u) for installations made with the install script, and supports routing traffic through an HTTP or SOCKS5 proxy via environment variables or a proxy configuration file.
The project is written in Go and is aimed at developers and sysadmins who want quick AI answers, code help or shell-based queries without leaving the terminal.
Key features
- 01Chat with AI models directly from the terminal
- 02Runs on GNU/Linux, macOS, Windows and FreeBSD
- 03Multiple install routes including Homebrew, pacman, Scoop, Chocolatey and Go
- 04Built-in self-update command for script-based installs
- 05HTTP and SOCKS5 proxy support via environment variables or config file
Use cases
- Asking quick coding or shell questions without leaving the terminal
- Using AI chat on remote servers accessed over SSH
- Routing AI requests through a corporate or personal proxy
Quick start
- 1
Install with Homebrew
brew install tgpt - 2
Or install with Go
go install github.com/aandrew-me/tgpt/v2@latest - 3
Or install on Arch Linux with pacman
pacman -S tgpt
Things to know
- Uses free AI providers, which may have rate limits or availability changes.
Topics
FAQ
- What is tgpt?
- A cross-platform command-line tool for chatting with various free AI providers directly from your terminal. tgpt is a command-line interface that lets you use AI chatbots from your terminal without opening a browser. It runs on GNU/Linux, macOS, Windows and FreeBSD, and can be installed through an install script, Homebrew, pacman, Scoop, Chocolatey, Go, or as a standalone release binary.
- Is tgpt free to use? What license does it have?
- tgpt is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is tgpt still maintained?
- Actively maintained. The last commit to tgpt was on Oct 20, 2026.
- What can I use tgpt for?
- Asking quick coding or shell questions without leaving the terminal Using AI chat on remote servers accessed over SSH Routing AI requests through a corporate or personal proxy
- How do I install tgpt?
- Install with Homebrew: brew install tgpt Or install with Go: go install github.com/aandrew-me/tgpt/v2@latest Or install on Arch Linux with pacman: pacman -S tgpt
- Where can I get tgpt?
- The source code and installation instructions are on GitHub: https://github.com/aandrew-me/tgpt
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An open-source Go framework that organizes reusable AI prompts (called Patterns) by task and runs them from the command line or a REST API.
An open-source coding-agent CLI that runs in the terminal and works with cloud APIs and local model backends like Ollama.
An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
A CLI and web dashboard that benchmarks free coding LLM models across providers and installs the chosen one into your coding tool.
Fast, native, feature-rich terminal emulator with platform-native UIs and GPU rendering, plus a libghostty library for embedding terminals.