Tutorial

How to Use Perplexity Pro as a Coding CLI (2026)

Use Perplexity Pro + Comet + Scavio MCP as a coding-helper CLI. $50/mo total tool spend; Q&A-shaped.

An r/perplexity_ai post asked how to use Perplexity Pro across an entire codebase like Claude Code or Codex. This walks the realistic recipe.

Prerequisites

  • Perplexity Pro subscription ($20/mo)
  • Comet desktop installed
  • Scavio API key
  • Editor of choice

Walkthrough

Step 1: Open Comet on the repo folder

Comet's local file access lets you reference code in chat.

Text
// File → Open Folder → /path/to/repo

Step 2: Attach Scavio MCP via Perplexity Pro+ MCP support

March 2026 feature: Settings → Connectors → Add MCP server.

Text
// URL: https://mcp.scavio.dev/mcp
// Auth: API key (x-api-key)

Step 3: Q&A questions referencing repo files

Comet handles file context; Scavio handles web context.

Text
// 'In src/auth.ts on line 42, why does the JWT validation fail when the role claim is missing? Search for current best practices via scavio.'

Step 4: Apply diffs manually in your editor

Honest tradeoff: Q&A-shaped, not seamless agent loop.

Text
// Copy the suggested diff from Comet → paste into Cursor → review → save.

Step 5: Re-run iteratively

Fastest with explicit file references in each query.

Text
// 'Now show me the same fix applied to src/auth.test.ts.'

Step 6: Bridge to Codex/Claude Code via Comet Skill (optional)

If you want delegated deep research from those agents.

Text
# Per github.com/ammarshah1n/comet-skill README

Python Example

Python
# Total tool spend: $50/mo (Pro $20 + Scavio $30). Cheaper than Claude Max for non-Opus-heavy users.

JavaScript Example

JavaScript
// Config-only setup; no application code.

Expected Output

JSON
Perplexity Pro answering repo-aware Q&A with live web search via Scavio MCP; manual paste-back for actual edits.

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Perplexity Pro subscription ($20/mo). Comet desktop installed. Scavio API key. Editor of choice. A Scavio API key gives you 500 free credits per month.

Yes. The free tier includes 500 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

Use Perplexity Pro + Comet + Scavio MCP as a coding-helper CLI. $50/mo total tool spend; Q&A-shaped.