LinuxCommandLibrary

tgpt

Terminal AI chatbot client

TLDR

Ask question

$ tgpt "[What is Linux?]"
copy
Interactive mode
$ tgpt -i
copy
Code mode
$ tgpt -c "[Write a Python hello world]"
copy
Multiline input
$ tgpt -m
copy
With specific provider
$ tgpt --provider [openai] "[question]"
copy
Generate image
$ tgpt -img "[A sunset over mountains]"
copy

SYNOPSIS

tgpt [-i] [-c] [--provider name] [options] [prompt]

DESCRIPTION

tgpt is a terminal-based client for interacting with AI language models from multiple providers including OpenAI, Anthropic, and others. It supports one-shot prompts, interactive conversation mode (-i), and specialized code generation mode (-c).
The tool can also generate images using models like DALL-E via the -img flag. Some providers work without requiring API keys, while others need keys configured for authentication. Multiline input mode (-m) allows composing longer prompts directly in the terminal.

PARAMETERS

-i

Interactive mode.
-c
Code generation.
-m
Multiline input.
--provider NAME
AI provider.
-img
Image generation.
-s
Silent mode.

CAVEATS

API key may be needed. Network required. Provider-specific features.

HISTORY

tgpt was created as a terminal-based interface to various AI language models without requiring API keys for some providers.

SEE ALSO

chatgpt-cli(1), sgpt(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community