In short.
This page is Perplexity's guide for developers who want an AI agent to use Perplexity's Agent, Search and Embeddings APIs through Composio, a third-party tool gateway. The main catch is that it depends on two accounts and API keys (Composio and Perplexity) and gives no pricing or version information. According to the page, the Composio Perplexity toolkit exposes five actions: Execute Agent (POST /v1/agent), Perplexity Search raw results (POST /search), Create Embeddings (POST /v1/embeddings), Create Contextualized Embeddings (POST /v1/contextualizedembeddings) and List Models (GET /v1/models). An agent can reach them in two ways: through an MCP URL created by Composio's Tool Router, or through direct calls such as composio.tools.execute with the slug PERPLEXITYAI_EXECUTE_AGENT. The page shows Python examples only, including one that wires the MCP URL into the Claude Agent SDK. Everything here comes from the documentation text. Nothing was executed, so none of the described behaviour is confirmed by testing.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the complete documentation page at [https://docs.perplexity.ai/docs/getting-started/integrations/composio.md], captured in full as a single 5,112-byte file. Pages it links to (the Composio toolkit page and docs, the Perplexity API reference, the Agent API Models page, the FAQ and the API key portal) were excluded and not read. No licence or notice file was captured. The Composio package, the toolkit's code and the live services were not inspected. None of the sample code, endpoints, model names or claims about credential handling was executed or tested.
The overview
What this resource is
This is a single documentation page on docs.perplexity.ai titled Perplexity with Composio. It explains how to use the Composio Perplexity toolkit, which exposes Perplexity's Agent, Search and Embeddings APIs as tools that an AI agent framework can call through one MCP URL or through direct API integration.
Two vendors are involved. Perplexity publishes the page and the underlying APIs. Composio, which the page calls a universal tool gateway for AI agents, supplies the toolkit, authentication handling and tool routing. The page does not say who maintains the toolkit code itself, and the toolkit's source was not part of the captured page.
Overall assessment
For a developer who already uses Composio, or is willing to adopt it, as the layer between agents and external services, the page gives a short and concrete route to Perplexity's search, agent and embedding endpoints. It names the actions, shows the install command and gives two quick starts, which makes it a usable starting point.
It is thin on the things a careful adopter would want to check: costs, rate limits, error handling, how the gateway handles data, whether and how the MCP session can be limited, and how to supply the Perplexity key programmatically. The limitations section lists these gaps. Because nothing was run, this assessment rests on the written documentation only.
Who it is for
The page is aimed at developers building AI agents who want web search, Perplexity's agent responses or embeddings available as agent tools without writing their own client for each Perplexity endpoint. It assumes you can run Python, install a package with pip and read an MCP client configuration.
It suits people already working with one of the frameworks the page lists: ChatGPT, OpenAI Agents SDK, Codex, Claude Agents SDK, Claude Code, Cursor, VS Code, OpenCode, Google ADK, LangChain, AI SDK, Mastra AI, LlamaIndex, CrewAI, Pydantic AI and AutoGen. It is less suited to someone who only wants to call Perplexity's API directly, because the gateway adds a second vendor and account. The page does not explain the basics of APIs or MCP, so complete beginners will need to learn those elsewhere.
What it can do
The page lists five Perplexity actions in the Composio toolkit. Execute Agent maps to POST /v1/agent and returns Agent API responses. Perplexity Search (Raw Results) maps to POST /search. Create Embeddings maps to POST /v1/embeddings. Create Contextualized Embeddings maps to POST /v1/contextualizedembeddings. List Models maps to GET /v1/models.
There are two ways to reach them. The Tool Router creates a session for a user and returns an MCP URL that any MCP-compatible client can connect to; the page names Claude Code, Cursor and OpenCode. The direct route calls composio.tools.execute with a slug and arguments. The page's example runs PERPLEXITYAI_EXECUTE_AGENT with a model name, a web_search tool entry and an input question, then prints result["data"].
The page also says Composio handles authentication, secure credential storage, OAuth flows and tool routing for 1000+ apps. That describes Composio in general. The page does not show how those other apps relate to this toolkit.
Using it
What you need
The page lists two prerequisites: a Composio account with an API key, and a Perplexity API key, which you generate in Perplexity's API portal. The install step is pip install composio. To use an agent framework, you also install that framework's SDK; the Claude Agent SDK example imports claude_agent_sdk.
The page does not state supported Python versions, the version of the composio package or of any framework SDK, operating system support, or whether any other runtime (such as Node.js) is supported. All the examples are in Python.
How it works
Composio sits between your agent and Perplexity. You give Composio your Perplexity API key once. According to the page, Composio stores the key securely, injects it into every request, and also handles token refresh, scope management and request signing. Your agent talks to Composio, and Composio calls Perplexity's endpoints for you.
In the Tool Router path, composio.create(user_id=...) returns a session whose mcp.url is an MCP endpoint. The Claude Agent SDK example passes that URL as an http-type MCP server, with an x-api-key header holding the Composio API key. In the direct path, composio.toolkits.authorize connects the user's Perplexity account to the toolkit named perplexityai, and composio.tools.execute runs a named action for that user.
The page does not describe Composio's internals, where credentials are stored, how requests are logged or what Composio keeps. The claims above are the vendors' own statements and are not verified here.
Setup steps
The page gives these steps. First, create a Composio account and API key. Second, create a Perplexity API key in the Perplexity API portal. Third, run pip install composio and install your agent framework's SDK. Then choose a route. For the MCP route, create a Composio client with your Composio API key, call create with a user id, read session.mcp.url and add that URL to your agent's MCP configuration. For the direct route, call composio.toolkits.authorize once with your user id and the toolkit perplexityai, then call composio.tools.execute for the action you want.
The setup description has gaps. The page says you provide the Perplexity key during the authorization flow, either in the Composio dashboard or through composio.toolkits.authorize, but the example does not show how the key itself is passed or what the authorize call returns. The Tool Router example creates the session with only a user id. The page does not say whether the resulting MCP URL exposes only Perplexity tools, or whether it can be restricted to them.
Worked example from the page
The page's MCP example builds ClaudeAgentOptions with an http MCP server named tool_router, the URL from the session, an x-api-key header, a system prompt saying the assistant has access to Perplexity tools, and max_turns set to 10. It then opens a ClaudeSDKClient, sends the query Summarize the latest AI research papers, and prints the text blocks from the streamed response.
The direct example runs PERPLEXITYAI_EXECUTE_AGENT with the model openai/gpt-5.6-sol, a tools list containing a web_search entry, and the input What are the latest fusion-energy headlines?, then prints result["data"]. The model identifier is copied from the page. The page does not establish whether that model is available or what it costs, and the example was not run.
The example sets bypassPermissions; its effects and available approval controls are not explained on this page. Consult the Claude Agent SDK documentation before using it.
Assessment & evidence
Limitations and risks
Third-party gateway: your Perplexity API key, your requests and the responses all pass through Composio. The page says the key is stored securely but gives no details on retention, logging, regions or compliance. Anyone handling sensitive data should check Composio's own documentation first.
Scope of the MCP session: the page describes Composio as a gateway to 1000+ apps and shows a session created with only a user id. It does not say whether the resulting MCP URL is limited to Perplexity, so it is unclear how many tools an agent would receive. The example sets bypassPermissions; its effects and available approval controls are not explained on this page. Consult the Claude Agent SDK documentation before using it.
Missing detail: the page gives no versions, pricing, rate limits or error handling. It does not explain the arguments each action takes, apart from the one Agent example, and it has no examples for Search, Embeddings, Contextualized Embeddings or List Models. Python is the only language shown. Some claims are worded for OAuth-style handling (token refresh, scope management, request signing) even though the credential described is an API key, and the page does not explain how they apply here.
Nothing on the page was executed or tested for this report, including the sample code, the model name and the endpoints.
Why this reading
The assessment follows only what the page states. The five actions, endpoints, prerequisites, install command, example code, framework list and authentication description all come directly from the page text. They reliably show what the documentation says, but not what the software does today, because no code was run and the toolkit itself was not inspected.
Where the page is silent, as on cost, licence, versions, data handling and how far the MCP session extends, this report says unknown instead of filling the gap. The example sets bypassPermissions; its effects and available approval controls are not explained on this page. Consult the Claude Agent SDK documentation before using it. Pointing out the setting is not a finding that the integration is unsafe.
Alternatives
The page itself points to the main alternative, which is calling Perplexity's APIs directly using the Perplexity API reference it links to. Calling Perplexity directly would avoid the Composio gateway; available SDKs and setup requirements are not established by this page.
The page does not discuss other options, such as a different tool gateway, a different search API or a self-hosted MCP server, and they were not evaluated, so no comparison is made. If you only need web search for an agent, check whether your framework already ships a search tool before adding a gateway.
Evidence base
The only evidence is the complete text of the selected documentation page at [https://docs.perplexity.ai/docs/getting-started/integrations/composio.md], about 5 KB. It contains an overview, the list of five actions, prerequisites, the install command, the two quick starts, the framework list, an authentication paragraph and a links and support section.
Linked pages (the Composio toolkit page, the Composio docs, the Perplexity API reference, the Agent API Models page and the FAQ) were not read, so claims that depend on them, including pricing and framework-specific guides, are unverified. No toolkit source code, package metadata or licence file was examined.
Access & freshness
Costs
The page gives no prices. It does not say whether Composio's toolkit, Tool Router or API access is free or paid, or what limits apply. It also gives no Perplexity API pricing. It only links to an Agent API Models page described as listing available models and pricing, and that linked page was not captured. Costs are therefore unknown.
In practice you will need at least two separate accounts, one with Composio and one with the Perplexity API. The page does not show how either is billed.
Rights and licence
The captured page contains no licence statement for the documentation, the Composio toolkit or the example code. The licences of the composio Python package and of the toolkit are not stated, so they are unknown from this evidence. The page tells you to use your own Composio and Perplexity accounts, so use of either service is presumably governed by that vendor's terms, which were not captured.
Because no licence text was captured, no file from this page is offered for redistribution.
Freshness
The page was captured on 14 November 2026. It shows no publication date, last-updated date, changelog, or version numbers for the composio package or the toolkit, so its currency cannot be judged from the text. The example uses a specific model identifier, openai/gpt-5.6-sol. This page does not show whether that model is currently available, so check before using it. Nothing on the page says the integration is deprecated or replaced.
What to do next
If you want to try it, use non-sensitive inputs. Start with a single simple action such as List Models or a small Search request before building an agent loop. Check current pricing with both Composio and Perplexity first, because this page gives none.
Check whether Composio and Perplexity offer suitable ways to restrict credentials and to limit what an MCP session exposes. The example sets bypassPermissions; its effects and available approval controls are not explained on this page. Consult the Claude Agent SDK documentation before using it. Review Composio's data-handling terms before sending sensitive prompts or documents. Pin the composio package version in your own project, because the page does not state one.
