Perplexity-Code
AI-Powered
v1.0.0
$

AI-Driven Code Assistant — Built for Cursor, VSCode & CLI

The power of Perplexity, reimagined for developers. Ask questions, generate code, debug, and refactor—all from your favorite terminal or editor.

npm install -g perplexity-code

Why Perplexity-Code?

Terminal Native
Works seamlessly in any terminal, tmux, iTerm, or Warp. No GUI required.
Editor Integration
Native support for Cursor and VSCode with slash commands and inline queries.
Lightning Fast
Instant responses with context-aware answers and proper code formatting.
Multi-Model
Support for Perplexity, OpenAI, Gemini, and other LLM providers.

Usage Examples

Ask Questions

pxc "How do I write a GraphQL resolver in Node.js?"

One-off Usage

npx perplexity-code "What is the difference between var, let and const?"

Installation

Global Installation
Install once, use everywhere
npm install -g perplexity-code

You can now run the CLI using perplexity-code or pxc.

One-off Usage
No installation required
npx perplexity-code "Your question here"

Editor Integrations

Cursor
Available

Native integration with slash commands and inline queries.

Setup:

  1. Open Cursor → Settings → Plugins
  2. Add path to perplexity-code binary
  3. Use inline queries like /explain or /debug
VSCode
Coming Soon

Native extension with chat-style interface and syntax-aware suggestions.

Features:

  • Slash commands integration
  • Inline code explanations
  • Context-aware suggestions

Roadmap

VSCode extension release
planned
Git diff-aware prompts (/review)
planned
Multi-language translation mode
planned
Plugins: /test, /doc, /summarize
planned
Local LLM fallback (offline mode)
planned

Contributing

We'd love your input, ideas, and PRs. Start contributing today!

git clone https://github.com/holasoymalva/perplexity-code.git
cd perplexity-code
npm install
npm link # for local CLI testing
Built with v0