Discover and explore top open-source AI tools and projects—updated daily.
tbckrCLI tool for interacting with OpenAI models from the terminal
Top 73.7% on SourcePulse
SGPT is a Go-based command-line interface for interacting with OpenAI and other LLM APIs, designed to streamline terminal-based workflows for developers and power users. It allows users to query models, generate shell commands, write code, and process images directly from the command line, enhancing productivity and simplifying complex tasks.
How It Works
SGPT leverages OpenAI's API (including GPT-4o and Vision) and supports integrations with OpenRouter, enabling access to a variety of LLMs. It processes natural language prompts to generate shell commands, code snippets, or textual responses. The tool can execute generated commands, maintain chat sessions for contextual conversations, and integrate with shell environments via aliases and functions for automated workflows.
Quick Start & Requirements
brew install tbckr/tap/sgptscoop bucket add tbckr https://github.com/tbckr/scoop-bucket.git && scoop install tbckr/sgptgo install github.com/tbckr/sgpt/v2/cmd/sgpt@latestdocker pull ghcr.io/tbckr/sgpt:latestOPENAI_API_KEY environment variable). For OpenRouter, set OPENAI_API_BASE and OPENAI_API_KEY.Highlighted Details
Maintenance & Community
The project is actively maintained, with v2 still supported during the refactoring for v3. The original inspiration is shell-gpt.
Licensing & Compatibility
The repository does not explicitly state a license in the provided README. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
SGPT is currently undergoing heavy refactoring for v3, though v2 remains maintained. The project notes that it does not natively support interactive shell sessions, but provides a workaround using rlwrap. GPT-4o and GPT-4 Vision API integration is noted as being in beta.
5 days ago
1 day