Coding agents
Give Codex one reliable Authie guide.
Codex can enroll and integrate an application through the same Authie CLI and SDK contract a developer uses.
Integrate an enrolled application
Run npx @authie/cli init from the application root, complete browser approval, then give Codex this prompt:
Read https://authie.ai/docs/quickstart and
https://authie.ai/docs/authentication, then integrate this application
with Authie.
For a Next.js application, install only @authie/nextjs, use
the package root for drop-in UI, and @authie/nextjs/server for auth().
Do not add an application-owned auth callback route. Mount AuthieProvider
with the publishable key, export the Authie proxy, and enforce protected
operations with auth.protect(). Add tests for session-token verification,
logout, permissions, disabled users, and cross-application token rejection.
NEXT_PUBLIC_AUTHIE_PUBLISHABLE_KEY and AUTHIE_SECRET_KEY are already available.
Do not print or commit them.Let Codex start enrollment
Codex may run the CLI and prepare the integration, but you complete the browser approval:
Run npx @authie/cli init from this application's root.
Pause for my browser approval, then finish the SDK integration and run
the application's typecheck, tests, and production build.
Do not print, read back, or commit any Authie secret.