pxcli-question-answering
Skill by jamiemills
Query Perplexity.ai from the terminal and get answers with source citations as structured JSON. It suits developers and agents that need current information or want to parse Perplexity answers in scripts.
Install pxcli-question-answering
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jamiemills/perplexity-cli /tmp/perplexity-cli && mkdir -p ~/.claude/skills && cp -r /tmp/perplexity-cli/src/perplexity_cli/resources ~/.claude/skills/pxcli-question-answeringRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install pxcli-question-answering in Claude Code
git clone --depth 1 https://github.com/jamiemills/perplexity-cli /tmp/perplexity-cli && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/perplexity-cli/src/perplexity_cli/resources ~/.gemini/antigravity-cli/skills/pxcli-question-answeringAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install pxcli-question-answering in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
pxcli is a command-line interface for querying Perplexity.ai. It returns answers with source citations in the terminal, and it can wrap each response in a JSON envelope that includes the answer, references, metadata, and suggested next actions. Authentication runs through Chrome for Testing started with remote debugging enabled, and credentials are stored encrypted on the machine until you log out.
The skill covers the query command and its options, including plain output, streaming, stdin input, file attachments, and style prompts. It also documents JSON and NDJSON output, error codes, exit codes, and how scripts and agents can parse results with jq or Python. It is aimed at people who need current information with citations, or who want to bring Perplexity answers into scripts and workflows.
Written from the project's SKILL.md and checked against it.
What it can do
- pxcli queryAsks Perplexity.ai a question and returns an answer with source references.
- pxcli query --json --streamStreams the answer as newline-delimited JSON events.
- pxcli query --attachAttaches a file, such as a PDF, to provide context for a question.
- pxcli style setSets a style prompt that applies to all queries.
- pxcli threads exportExports conversation threads.
- pxcli schemaOutputs the JSON schema for the response envelopes.
- pxcli doctor securityChecks token storage permissions and security configuration.
- next_actionsSuggests follow-up commands in each JSON envelope.
What you need
- pxcli installed
- Chrome for Testing with remote debugging on port 9222
- Node.js for the npx Chrome install step
- Perplexity.ai authentication through pxcli auth login
- Active internet connection
Try asking
- Ask Perplexity for the latest developments in quantum computing, with sources.
- Run pxcli query in JSON mode and list the reference URLs for the answer.
- Stream a pxcli answer as NDJSON and print the text as it arrives.
Good to know
- Authentication requires the Chrome DevTools Protocol setup.
- The token is bound to one machine and cannot be transferred.
- Requests are rate limited by Perplexity.ai.
- Requires an active internet connection.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/perplexity_cli/resources/skill.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pxcli-question-answering
All alternatives →Box lets an AI assistant search, read, upload, download, move, rename, delete, restore and share Box content. It also manages comments and metadata. It suits people who work with files stored in Box.
Guides AI assistants in using n8n-mcp MCP tools to search nodes, validate configs, browse templates and manage n8n workflows. Aimed at people building n8n workflows through MCP.
Manages citations across the research and writing process. It covers searching Google Scholar and PubMed, converting DOIs, PMIDs and arXiv IDs to BibTeX, and validating bibliographies. It is for researchers building bibliographies for manuscripts or theses.
Exa Search is a skill that guides an AI assistant to use the Exa MCP server for neural search. It covers web pages, code, companies, and people, and is for users who need current information or research during development tasks.
Runs recent community and social trend research over the last 30 days. It suits teams who need to know what people are saying now about a topic or launch.
seo-flow adds the FLOW SEO framework to Claude SEO. It surfaces stage-specific AI prompts from the FLOW knowledge base across the Find, Leverage, Optimize and Win stages. It is for SEO practitioners who want evidence-led prompts.
Compare with box, n8n-mcp-tools-expert or citation-management
pxcli-question-answering: common questions
How does pxcli authenticate with Perplexity.ai?
You start Chrome for Testing with remote debugging on port 9222, then run pxcli auth login. Credentials persist until you run pxcli auth logout.
Can scripts parse pxcli output?
Yes. The --json flag wraps responses in an envelope with ok, result, error, fix, and next_actions fields. Combining --json with --stream outputs NDJSON events.
Can the stored token be moved to another computer?
No. The source says the encryption key is derived from system identifiers, so the token is not portable between machines.
How do I install pxcli-question-answering?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pxcli-question-answering free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pxcli-question-answering safe to use?
It scores 48 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pxcli-question-answering?
Similar skills: box, n8n-mcp-tools-expert, citation-management, exa-search.
