A small zsh plugin that allows you to query Perplexity's search LLM from the command-line. Results are returned with citations and code examples, formatted for the terminal.
Currently WIP and unstable, and will be until v1.0.0.
- Rich terminal formatting with colored output and structured display
- Citation support with clickable links
- Code block syntax highlighting
- Python 3.11+
- ZSH shell
- Perplexity AI API key
- Required Python packages:
- rich
- Clone the repository:
git clone https://github.com/trozzelle/perplexity-shell
cd perplexity-shell- Install dependencies:
pip install rich- Set up your Perplexity API key:
export PERPLEXITY_API_KEY="your-api-key-here"- Source the ZSH script in your
.zshrc:
source /path/to/perplexity-shell.zshpx "your query here"px --debug "your query here"python perplexity_shell.py --query "your query here" [--api_key YOUR_API_KEY] [--debug]perplexity_shell.py: Main Python implementationperplexity-shell.zsh: ZSH integration scriptlogs/: Directory for log files (automatically created)