Authenticate to the PlanetScale API from Cursor Cloud Agents with OpenID Connect
You can now authenticate to the PlanetScale API from Cursor Cloud Agents using OpenID Connect (OIDC). An agent exchanges its Cursor OIDC token for a short-lived service token, so you no longer need to store long-lived PlanetScale credentials in your Cursor secrets.
Create a Cursor trust policy in the dashboard for your Cursor team, then give the agent instructions to request a token and exchange it with the PlanetScale API.