Skip to main content
Add PHASEO_API_KEY to Replit Secrets, then call Phaseo with the OpenAI SDK or the Phaseo AI SDK provider. Keep the key out of your source code.

Add the secret

In your Replit workspace, open Tools → Secrets and add:
Replit exposes the secret to your app as an environment variable. See Authentication for key types.

Call Phaseo

A printed ok means the secret and base URL work.

Deploy

Add PHASEO_API_KEY to the deployment’s secrets as well as the workspace. Make sure the deployment doesn’t print environment variables or request headers to its logs.
Last modified on November 5, 2026