This page provides answers to common questions and solutions to frequent problems encountered while using Perplexity CLI.
This error indicates that you have exceeded your API request limit. The Perplexity API has rate limits to prevent abuse and ensure fair usage.
To resolve this, you can:
- Check your usage: Review your API usage in your Perplexity account dashboard.
- Optimize your prompts: If you are making many requests in a short period, try to batch your prompts or introduce delays between requests.
- Request a quota increase: If you consistently need a higher limit, contact Perplexity support to request a quota increase.
This error typically occurs in Node.js projects when there is a mismatch between CommonJS and ES Modules.
This is often due to a misconfiguration in your package.json or
tsconfig.json. Ensure that:
- Your
package.jsonhas"type": "module". - Your
tsconfig.jsonhas"module": "NodeNext"or a compatible setting in thecompilerOptions.
If the problem persists, try deleting your node_modules directory and
package-lock.json file, and then run npm install again.
Cached token information is only displayed when cached tokens are being used.
Token caching availability depends on your Perplexity API plan and the model
you're using. You can view your total token usage using the /stats command in
Perplexity CLI.
If you installed it globally via npm, update it using the command
npm install -g @perplexity-cli/perplexity-cli@latest. If you compiled it from source, pull
the latest changes from the repository, and then rebuild using the command
npm run build.
Commands like chmod are specific to Unix-like operating systems (Linux,
macOS). They are not available on Windows by default.
To resolve this, you can:
- Use Windows-equivalent commands: Instead of
chmod, you can useicaclsto modify file permissions on Windows. - Use a compatibility layer: Tools like Git Bash or Windows Subsystem for Linux (WSL) provide a Unix-like environment on Windows where these commands will work.
Exposing API keys in scripts or checking them into source control is a security risk.
To store your API keys securely, you can:
- Use a
.envfile: Create a.envfile in your project's.perplexitydirectory (.perplexity/.env) and store your keys there. Perplexity CLI will automatically load these variables. - Use your system's keyring: For the most secure storage, use your operating system's secret management tool (like macOS Keychain, Windows Credential Manager, or a secret manager on Linux). You can then have your scripts or environment load the key from the secure storage at runtime.
The Perplexity CLI configuration is stored in two settings.json files:
- In your home directory:
~/.perplexity/settings.json. - In your project's root directory:
./.perplexity/settings.json.
Refer to Perplexity CLI Configuration for more details.
To learn more about your Perplexity API usage, quotas, and limits, visit your Perplexity account settings.
If you're subscribed to Perplexity Pro, you may have higher rate limits for API requests. You can confirm your current limits in your API settings.
To learn more about Perplexity's privacy policy and terms of service, visit Perplexity Privacy Policy.
Rate limits depend on your specific API plan and are shared across all your API usage. If you continue to experience issues after upgrading, contact Perplexity support for assistance.
Perplexity's data usage policies vary by plan. Review the Perplexity Privacy Policy for detailed information about how your data is used.
Search the Perplexity CLI discussions on GitHub or start a new discussion on GitHub