• AUTH
  • STATE
  • IDENTITY
  • EXIT

How to manage CMS user sessions with your AI

Connect Payload CMS to your AI client once. From then on, your agent manages your session state and identity without you leaving the chat.

Ask AI about this page

Short answer

Can my AI handle Payload CMS authentication?

Yes. Your AI uses specific tools to log you in, refresh expired tokens, and verify your user profile. You'll see how these session actions work below.

Session outcomes

Where your session state lands.

What happens when your AI takes control of your CMS session.

AUTH

Active logins

The AI logs you into Payload CMS using your credentials. You get immediate access to protected content through the chat.

STATE

Persistent sessions

When your session expires, the AI refreshes the token. You don't have to manually re-authenticate to keep working.

IDENTITY

User verification

The AI checks your current user profile. It knows exactly who you are and what permissions you have in the CMS.

EXIT

Secure logout

You can end your session through chat. This action requires you to confirm the logout to ensure your account stays secure.

The workflow

What your AI does when a session request arrives.

The AI handles the heavy lifting of authentication so you can focus on content.

  1. Establish access

    Your agent sends your credentials to Payload CMS to start a new session.

    login_user
  2. Verify identity

    The AI checks the CMS to confirm your current user details and permissions.

    get_me
  3. Maintain connection

    If the session times out, the AI requests a new token to prevent interruptions.

    refresh_token
  4. Terminate session

    The AI clears your session data when you want to sign out.

    logout_user

Try it

Copy these to start.

Use these prompts to trigger session actions in your chat.

Starting points

Replace the bracketed text with your actual Payload CMS credentials or user details.

Payload CMS Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_F9KqScjp1H2LzRfZYwHeA6WirB5M3GIYHP3k8KOt/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Payload CMS capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "payload-cms-extended-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_F9KqScjp1H2LzRfZYwHeA6WirB5M3GIYHP3k8KOt/mcp"
    }
  }
}
Copy into chat04
  • Log me into my Payload CMS account using my email and password.

  • Check my current user profile in Payload CMS.

  • Refresh my Payload CMS session token so I don't get logged out.

  • Log me out of Payload CMS now.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Payload CMS once, then ask.

Click the link to connect. Your login details stay encrypted, and you can immediately start managing your CMS through your AI client.

Connect Payload CMS to your AI

FAQ

How session management behaves

  • 01

    Can the AI change my CMS password?

    No. The AI can only manage existing sessions through login, refresh, and logout tools.

  • 02

    Does the AI store my password in plain text?

    No. Your credentials are encrypted and handled securely by Vinkius.

  • 03

    Can the AI create new users in Payload CMS?

    No. This specific set of tools is limited to managing your own user session and identity.

  • 04

    Will my session stay active forever?

    No. You can use the refresh tool to extend it, or the logout tool to end it manually.

  • 05

    How does the AI know who I am?

    It uses the get_me tool to pull your specific user profile from the CMS.

  • More questions about Payload CMS? The Connector page answers them. See everything the Payload CMS Connector can do

Connect Payload CMS to Claude, Cursor, ChatGPT & more