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:39
0:001:39
Read transcript
Perplexity’s Agent API can now connect to GitHub once at the API Group level, instead of requiring GitHub credentials in every request. The biggest consequence is that, with Sandbox enabled, an agent can use Git and the gh command-line interface to clone private repositories, inspect or modify code, commit changes, push a branch, and create or update a pull request. The access is still bounded by the connected GitHub account. Managed authorization does not give the agent new repository rights; it simply reuses the permissions that account already has. An API Group administrator sets up the connection in Perplexity’s API Portal, then an application selects the connector by ID and supplies a request-local server label. GitHub credentials can reach Sandbox commands, but credentials passed to a remote MCP server cannot be used inside Sandbox. The preview also covers Slack, Google Drive, and Datadog. Perplexity positions these managed connectors as an alternative for integrations it administers centrally, while remote MCP, or Model Context Protocol, servers remain available for custom or third-party tools with request-specific authentication. There is an operational catch. Connector tools use deferred discovery: the agent searches for tools and loads their schemas only when needed, so requests need enough steps to complete that process. And a request can appear successful even when a connector fails—or returns an empty tool list. Teams will need to monitor authorization, outages, and tool availability closely. The key constraint is that these connectors remain in preview, so both supported services and behavior may change.

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