Toolspublished

Perplexity’s Agent API Adds Managed Connectors for GitHub Code and PR Workflows

The preview feature moves service setup out of individual requests; paired with Sandbox, GitHub access can reach repository edits and pull requests, within the connected account’s permissions.

By 3 min read
Perplexity’s Agent API Adds Managed Connectors for GitHub Code and PR Workflows

Listen to this story

The audio brief

About 1:34
0:001:34
Read transcript
Perplexity’s Agent API can now connect to GitHub once at the API Group level, then reuse that authorization across requests. The important part is what GitHub can do when paired with Perplexity’s Sandbox: an agent can clone a private repository, inspect and change code, commit, push a branch, and create or update a pull request using the git and gh command-line tools. This does not give the agent extra access. It remains limited to whatever the connected GitHub account is already allowed to do. The setup also changes who controls access. Only an API Group administrator can connect a service in the API Portal. Each request then names the connector by its ID and supplies a local server label, instead of sending a GitHub URL and token every time. Preview connectors also cover Slack, Google Drive, and Datadog. Perplexity describes them as a managed alternative for integrations, while remote MCP servers remain available for custom or third-party tools, with their authentication supplied per request. There is an operational catch: connector tools use deferred discovery. The agent first searches for tools and loads their schemas, so it needs enough steps to finish that process. And a request can succeed even when a connector fails. Authorization problems, outages, and even an empty tool list may appear inside the response. The near-term constraint is clear: centralized GitHub access simplifies code-changing workflows, but teams must monitor authorization health and tool availability while the connectors remain in preview.

Story brief

3 key points

Perplexity is moving connector authorization from individual Agent API calls to the API Group level, with preview support for four services. The practical payoff is largest for GitHub: with Sandbox enabled, an agent can work on private code and open or update pull requests using the connected account’s existing permissions. This also introduces operational dependencies: deferred tool discovery needs enough agent...

  1. 01

    GitHub credentials can reach Sandbox commands; credentials passed to remote MCP servers cannot.

  2. 02

    Only API Group administrators connect services; each request selects a connector ID and local server label.

  3. 03

    Connector authorization does not expand repository permissions; actions remain bounded by the connected GitHub account.

Perplexity’s Agent API now offers preview managed connectors for GitHub, Slack, Google Drive and Datadog. The feature lets an API Group administrator connect a service once, then lets agents use its tools by connector ID rather than sending a server URL and access token with every request.

GitHub is the consequential connector

GitHub is the differentiator because its connector can work with Perplexity’s Sandbox environment. An agent with both tools enabled can use the git and gh command-line interfaces to clone private repositories, inspect and modify code, commit changes, push a branch, and create or update a pull request.

That does not grant an agent new repository rights. Its access and permitted actions remain bounded by the permissions of the GitHub account connected to the API Group.

What changes for an Agent API request

  • An API Group administrator connects a supported service in the API Portal and obtains its connector ID.
  • The application adds that ID and a request-local server label to its tools configuration; the connection’s authentication is reused from the API Group.
  • GitHub can supply credentials to Sandbox commands, while credentials supplied to a remote MCP server are not available inside Sandbox.

A managed alternative to remote MCP

Connectors and Model Context Protocol, or MCP, servers both give an agent external tools. Perplexity positions connectors for integrations already managed by an API Group; remote MCP servers remain the route for a developer’s own or third-party server, with its URL and request-specific authentication provided in each request.

Centralizing setup changes the control point as well as the request format. Only an API Group administrator can connect a supported service, so service authorization is administered at the group level before an agent run selects the connector by ID.

Tool schemas arrive only when needed

Connector tools use deferred discovery by default. Rather than loading every available tool schema into the model’s context, the model receives a connector namespace, searches its catalog, loads the schemas it needs, and then calls them.

The approach is designed for integrations that may expose many tools. Developers add the connector to the request, but must set a sufficiently high maximum step count for the agent to discover and use those tools.

A successful request can still lose its connection

Connector failures are returned inside the response rather than failing the overall request. Documented errors include AUTH_REQUIRED when authorization has lapsed or been revoked, INVALID_ARGUMENTS, POLICY_DENIED, service-unavailable conditions, internal connector errors and other tool errors.

That behavior makes observability part of the integration work. Perplexity advises developers to detect connector errors in their application harness and alert an operator to reconnect a stale authorization. A connector that is not connected can also return an empty tool list without an error, creating a second condition to monitor.

The connectors remain in preview, and Perplexity says supported services and behavior may change. For teams considering code-changing agents, the practical tradeoff is clear: centralized access can simplify workflows, but authorization health and tool availability need to be treated as runtime controls.

Sources

  1. docs.perplexity.aiConnectors - Perplexity