{"id":22374499,"url":"https://github.com/kevcui/perplexity-cli","last_synced_at":"2025-07-30T22:31:00.802Z","repository":{"id":213839968,"uuid":"734875121","full_name":"KevCui/perplexity-cli","owner":"KevCui","description":":speech_balloon: Chat with Perplexity AI in terminal","archived":false,"fork":false,"pushed_at":"2024-05-19T12:42:19.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T13:36:12.674Z","etag":null,"topics":["cli","command-line","command-line-tool","perplexity","perplexity-ai","playwright","playwright-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KevCui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-22T22:02:21.000Z","updated_at":"2024-05-19T13:36:15.997Z","dependencies_parsed_at":"2024-03-09T12:28:28.190Z","dependency_job_id":"bc69c691-abaa-4d01-8f08-01de1eebc7ae","html_url":"https://github.com/KevCui/perplexity-cli","commit_stats":null,"previous_names":["kevcui/perplexity-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fperplexity-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fperplexity-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fperplexity-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fperplexity-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevCui","download_url":"https://codeload.github.com/KevCui/perplexity-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228192293,"owners_count":17882756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","command-line-tool","perplexity","perplexity-ai","playwright","playwright-javascript"],"created_at":"2024-12-04T21:17:18.855Z","updated_at":"2024-12-04T21:17:19.770Z","avatar_url":"https://github.com/KevCui.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/kevcui"],"categories":[],"sub_categories":[],"readme":"# perplexity-cli\n\n\u003e Chat with [Perplexity AI](https://www.perplexity.ai/) in terminal\n\n# Table of Contents\n\n- [Dependency](#dependency)\n- [Installation](#installation)\n- [How to use](#how-to-use)\n- [Want an alternative?](#want-an-alternative)\n- [Note](#note)\n\n## Dependency\n\n- [playwright-chromium](https://github.com/Microsoft/playwright)\n- [playwright-extra](https://github.com/berstend/puppeteer-extra/tree/master/packages/playwright-extra)\n- [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth#readme)\n\n## Installation\n\n```bash\nnpm i playwright-chromium playwright-extra puppeteer-extra-plugin-stealth\nnpx playwright install chromium\n```\n\n## How to use\n\n- `perplexity.js` fetches result from `https://www.perplexity.ai/`:\n\n```bash\n$ ./perplexity.js \"enter any text here\"\n```\n\n- `perplexity-labs.js` fetches result from `https://labs.perplexity.ai/`:\n\n```bash\n$ ./perplexity-labs.js \"enter any text here\"\n```\n\nLLM `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\"`.\n\n## Want an alternative?\n\nCheck out [copilot-cli](https://github.com/KevCui/copilot-cli)\n\n## Note\n\nThis 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.\n\n---\n\n\u003ca href=\"https://www.buymeacoffee.com/kevcui\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"60px\" width=\"217px\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fperplexity-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevcui%2Fperplexity-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fperplexity-cli/lists"}