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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# AIsa Perplexity Deep Research

> Generate citation-backed research answers with Perplexity Sonar.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/search-research/perplexity-research)

**Citation-backed research answers.** Use Perplexity Sonar through AIsa when an agent needs synthesized answers, not just links.

## Install

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill perplexity-research
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install perplexity-research
```

Start a new agent session after installing so the skill loads.

## What can agents do with it?

> [card] Deep research
>
> Generate longer answers with cited sources.

> [card] Fast answers
>
> Use Sonar for concise grounded responses.

> [card] Reasoning research
>
> Route complex questions to reasoning-capable Sonar models.

> [card] Source-backed summaries
>
> Keep links and citations attached to claims.

## Setup

This skill requires the `AISA_API_KEY` environment variable. When installed as a Claude plugin, the key is configured via the plugin's `userConfig`.

## Usage

Run the search client with the `sonar` subcommand:

```bash theme={null}
python3 ${CLAUDE_PLUGIN_ROOT}/skills/perplexity-research/scripts/search_client.py sonar --query "<research question>" --model <model_name>
```

### Arguments

| Argument | Required | Default | Description |
| - | - | - | - |
| `--query` / `-q` | Yes | — | Research question or query |
| `--model` / `-m` | No | sonar | Model to use (see below) |

### Available Models

| Model | Speed | Depth | Best For |
| - | - | - | - |
| `sonar` | Fast | Standard | Quick factual lookups |
| `sonar-pro` | Medium | Detailed | In-depth topic exploration |
| `sonar-reasoning-pro` | Slower | Deep | Complex reasoning and analysis |
| `sonar-deep-research` | Slowest | Exhaustive | Comprehensive research reports |

### Examples

```bash theme={null}
# Quick factual lookup
python3 ${CLAUDE_PLUGIN_ROOT}/skills/perplexity-research/scripts/search_client.py sonar --query "What is the current state of quantum computing?"

# Detailed research
python3 ${CLAUDE_PLUGIN_ROOT}/skills/perplexity-research/scripts/search_client.py sonar --query "Compare transformer and state-space model architectures" --model sonar-pro

# Complex reasoning
python3 ${CLAUDE_PLUGIN_ROOT}/skills/perplexity-research/scripts/search_client.py sonar --query "Will AGI be achieved by 2030? Analyze arguments for and against." --model sonar-reasoning-pro

# Exhaustive deep research
python3 ${CLAUDE_PLUGIN_ROOT}/skills/perplexity-research/scripts/search_client.py sonar --query "Comprehensive analysis of AI regulation frameworks worldwide" --model sonar-deep-research
```

## Output

The script prints:

* **Synthesized answer** — A coherent, well-structured response
* **Citations** — Source URLs backing the answer
* **Cost** — API usage cost (when available)

## When to Use

Use this skill when the user needs a synthesized, well-researched answer rather than raw search results. Best for complex questions, comparative analyses, trend reports, and any query where a thoughtful, citation-backed response is more valuable than a list of links.

## Get started

1. Sign up at [aisa.one](https://aisa.one) and create an API key in the console.
2. Set it in your shell: `export AISA_API_KEY="your-key"`.
3. Install the skill with one of the commands under [Install](#install), then start a new agent session.

## Related

> [card] [Perplexity Search](https://aisa.one/docs/agent-skills/perplexity-search.md)
>
> Existing Perplexity Sonar skill.

> [card] [Perplexity API reference](https://aisa.one/docs/api-reference/perplexity/post_perplexity-sonar.md)
>
> Sonar endpoint documentation.

> [card] [Multi-source Search](https://aisa.one/docs/agent-skills/multi-source-search.md)
>
> Combine Perplexity with other search sources.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.