Everyday usage

Combine prompts with files, clipboard contents, saved conversations, and output controls.

Conversation modes

Interactive mode keeps asking for input until you submit an empty line or press Ctrl+C. Query mode prints one response and exits. Piped input automatically selects query mode.

Terminal
sengpt --interactive
sengpt --query "Explain eventual consistency"
cat notes.md | sengpt --query "Summarize these notes"

Keep or remove conversations

One-off queries are removed from ChatGPT history by default. Keep one with --save, then reopen the most recently saved conversation:

Terminal
sengpt --query --save "Plan a release checklist"
sengpt --recent_conversation

Use --delete to remove an interactive conversation when it ends.

Clipboard and output

--paste appends clipboard text to the prompt. --copy copies the final response. --no_glow prints Markdown without Glow.

Terminal
sengpt --query --paste --copy "Improve this text"

Useful options

--loginOpen ChatGPT and refresh the saved login
--model NAMERequest a ChatGPT web model slug
--timeout MINUTESSet the maximum response wait
--headedShow Chromium for troubleshooting
--saveKeep a query-mode conversation
--recent_conversationContinue the latest saved conversation
--config_filePrint configuration and profile paths