A fast, minimalistc, and powerful command-line AI assistant that brings the power of LLMs directly to your terminal. Just BYOK (Bring Your Own Key) and get started.
- Fast & Lightweight: Minimal dependencies, quick responses
- Beautiful Output: Rich markdown rendering with syntax highlighting
- Multiple AI Providers: Support for Google Gemini and OpenAI models
- Flexible Configuration: Easy setup with interactive wizard
- Response Control: Choose response length (tiny, medium, large)
- Cross-Platform: Works on Linux, macOS, and Windows
curl -fsSL https://raw.githubusercontent.com/atharva-again/q/main/install.sh | bashirm https://raw.githubusercontent.com/atharva-again/q/main/install.ps1 | iexThis will:
- Download the appropriate binary for your system if none exists
- Install it to your PATH
- If an installation exists, it will ask you whether to update or uninstall
- Download the latest release from GitHub Releases
- Extract the archive
- Move the binary to a directory in your PATH
- Run
q -Sto configure
Run setup to configure your AI provider and preferences:
q -SThis will guide you through:
- Choosing your AI provider (Gemini/OpenAI)
- Selecting a model
- Setting default response length
- Entering your API key
You can find API keys here:
- Google AI Studio (for Gemini models)
- OpenAI API Keys
git clone https://github.com/atharva-again/q.git
cd q
go build -o q .
sudo mv q /usr/local/bin/
q -Sq What is the capital of India?# Short responses
q Explain quantum computing -t
# Medium responses (default)
q -m How does photosynthesis work? -m
# Detailed responses
q Write a comprehensive guide to Docker -lq -h # Show help
q -S # Run setupConfiguration is stored in:
- Linux/macOS:
~/.config/q/config.json - Windows:
%APPDATA%\q\config.json
Example config:
{
"provider": "gemini",
"model": "gemini-2.0-flash",
"api_key": "your-api-key-here",
"default_length": "medium"
}gemini-2.5-flashgemini-2.5-progemini-2.0-flashgemini-2.5-flash-litegemini-2.0-flash-lite
gpt-5gpt-5-minigpt-5-nanogpt-4.1
- Go 1.25.4 or later
- Git
# Build for current platform
go build -o q .
# Build for multiple platforms
./build.shgo test ./...Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Atharva Verma - [email protected]



