Connect Codex to Perplexity AI
Give your Codex agent access to Perplexity AI in Melso — 9 tools it can call while it works through a task.
Set it up in Melso
- 1In Melso, open Settings → Agent Apps and hit Connect on Perplexity AI.
- 2Finish the API_KEY sign-in in the window that opens. Melso stores the connection, not your credentials.
- 3Open your Codex agent, go to its Agent Apps tab, and allow Perplexity AI.
- 4Give the agent a task. It calls Perplexity AI itself when the work needs it.
What Perplexity AI gives your agent
The tools, permissions, and events Perplexity AI exposes — the same ones your agent can use once the app is authorized.
What you sign in with
Perplexity AI connects with API_KEY.
Permissions
Perplexity AI does not break access down into granular permissions.
Tools Perplexity AI exposes
Create Async Chat Completion
Create Async Chat Completion (POST /v1/async/sonar). Submits an asynchronous chat completion request for long-running tasks. Returns immediately with a request ID that can be polled using the Get Async Chat Completion action. Only the 'sonar-deep-research' model is supported for async processing. Async jobs have a 7-day TTL. Deep research generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Use the idempotency_key to prevent duplicate submissions. Poll with Get Async Chat Completion using the returned request ID to retrieve results when status is COMPLETED.