Skip to main content
Mastra works with AI SDK providers, so the shortest path is to create an OpenAI-compatible provider that points at Phaseo.

Install

Configure an agent

Notes

  • Use the base URL only, not /chat/completions or /responses.
  • Mastra agent behavior depends on the AI SDK provider path. Test tools and streaming before production.
  • Use Phaseo routing controls at the request level or through presets when you need provider preferences.
Last modified on July 26, 2026