Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevcui/perplexity-cli
:speech_balloon: Chat with Perplexity AI in terminal
https://github.com/kevcui/perplexity-cli
cli command-line command-line-tool perplexity perplexity-ai playwright playwright-javascript
Last synced: about 2 months ago
JSON representation
:speech_balloon: Chat with Perplexity AI in terminal
- Host: GitHub
- URL: https://github.com/kevcui/perplexity-cli
- Owner: KevCui
- Created: 2023-12-22T22:02:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-19T12:42:19.000Z (9 months ago)
- Last Synced: 2024-05-19T13:36:12.674Z (9 months ago)
- Topics: cli, command-line, command-line-tool, perplexity, perplexity-ai, playwright, playwright-javascript
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# perplexity-cli
> Chat with [Perplexity AI](https://www.perplexity.ai/) in terminal
# Table of Contents
- [Dependency](#dependency)
- [Installation](#installation)
- [How to use](#how-to-use)
- [Want an alternative?](#want-an-alternative)
- [Note](#note)## Dependency
- [playwright-chromium](https://github.com/Microsoft/playwright)
- [playwright-extra](https://github.com/berstend/puppeteer-extra/tree/master/packages/playwright-extra)
- [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth#readme)## Installation
```bash
npm i playwright-chromium playwright-extra puppeteer-extra-plugin-stealth
npx playwright install chromium
```## How to use
- `perplexity.js` fetches result from `https://www.perplexity.ai/`:
```bash
$ ./perplexity.js "enter any text here"
```- `perplexity-labs.js` fetches result from `https://labs.perplexity.ai/`:
```bash
$ ./perplexity-labs.js "enter any text here"
```LLM `sonar-medium-online` is selected by default. Set the second argument as model name to select another model, for example: `./perplexity-labs.js "text" "codellama-70b-instruct"`.
## Want an alternative?
Check out [copilot-cli](https://github.com/KevCui/copilot-cli)
## Note
This script is designed to handle only one question and one answer at a time. The response is provided in plain text format, making it well-suited for quick answer in the terminal. It is not designed for a polished conversational experience, but rather for efficient command line usage with Perplexity AI.
---