Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 48
  • 10 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-answering

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pxcli-question-answering in Claude Code

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

A

No 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 →

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.

pxcli-question-answering Install

Add to stack

Loading.