Ask AI anything from your terminal - no quotes needed!
A tiny wrapper for shell-gpt that makes chatting with AI as simple as typing q + your question.
sgpt "what is docker?" # ugh, quotes...
sgpt "how does kubernetes work?" # more quotes...
ai "explain git rebase" # QUOTES EVERYWHERE!q what is docker?
q how does kubernetes work?
q explain git rebaseThat's 4 fewer keystrokes per question! When you ask AI dozens of questions daily, this adds up to minutes saved.
- No quotes = 2 fewer keystrokes
- No shift key = faster typing
- Single letter command = instant access
- Natural typing = no mental overhead
Type your questions as naturally as you'd type them in ChatGPT, but right in your terminal!
pip install shell-gpt# q - Quick AI questions without quotes!
# Works with special characters like ? * []
alias q='noglob q_function'
q_function() {
sgpt "$*"
}
# Set your OpenAI API key (add to .env or export separately)
# export OPENAI_API_KEY="your-key-here"source ~/.zshrc # or ~/.bashrcAsk anything naturally:
q what is the meaning of life?
q how do I center a div in CSS?
q explain quantum computing in simple terms
q what's the difference between TCP and UDP?
q why is my docker container not starting?Create specialized shortcuts:
# qc = quick code
alias qc='noglob qc_function'
qc_function() {
sgpt --code "$*"
}
# qs = quick shell command
alias qs='noglob qs_function'
qs_function() {
sgpt --shell "$*"
}
# Usage
qc write a python function to sort a list
qs how to find large files in linux- ✅ Instant AI access - just type
q - ✅ No quotes needed - type naturally
- ✅ Works with special characters -
?,*,[], etc. - ✅ Ultra-minimal - one letter to AI
- ✅ Compatible with Zsh and Bash
- ✅ Preserves all sgpt features - just wrapped
OPENAI_API_KEY!
Use environment variables or .env files instead.
terminal ai command line gpt shell gpt wrapper quick ai questions terminal chatgpt cli ai assistant no quotes shell instant ai terminal
MIT
Because every keystroke counts when you're in the flow.