> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Perplexity Provider

> Use Perplexity AI with PraisonAI TypeScript

# Perplexity Provider

Search-augmented AI with Perplexity.

## Environment Variables

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export PERPLEXITY_API_KEY=...
```

## Quick Start

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'PerplexityAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'perplexity/llama-3.1-sonar-large-128k-online'
});

const response = await agent.chat('What is the latest news?');
```

## Related

* [Perplexity CLI Usage](/docs/js/providers/perplexity-cli)
