# Agent Sign-in (OAuth) for WordPress

> Let AI apps like Claude and ChatGPT connect to your site the standard, safe way: you sign in, approve the app, and it gets a short-lived key with your own…

TW-AI-02 AI*New*


Let AI apps like Claude and ChatGPT connect to your site the standard, safe way: you sign in, approve the app, and it gets a short-lived key with your own permissions. Publishes the OAuth discovery files and auth.md that AI-readiness scanners look for.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Agent Sign-in (OAuth)

**Part number**
: TW-AI-02
**Section**
: [AI](https://togglework.app/features/ai/)
**Settings**
: 3 (1 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

AI apps such as Claude and ChatGPT increasingly connect to websites to do work for a person. The safe way to allow that is OAuth: the person signs in on your site, approves the app, and the app gets a short-lived key with that person’s permissions, never their password.

### What it does

- An OAuth 2.1 sign-in and approval screen for AI apps, with PKCE.
- Optional self-registration for apps, as Claude, ChatGPT and most MCP clients expect; registering alone grants nothing.
- Short-lived access keys (default 60 minutes) and connections that expire if unused (default 30 days).
- Publishes the OAuth discovery files and auth.md that agent-readiness scanners look for.

![Agent Sign-in (OAuth) settings screen in the Toggleworks WordPress plugin, showing Let AI apps register themselves, Access keys last, Stay connected for](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/ai-agent-auth.webp?v=1795524115)

The Agent Sign-in (OAuth) screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch it on together with [MCP Server](https://togglework.app/features/ai/mcp-server/).
2. Connect an MCP client, sign in when asked, and approve it.

## What you can set

Switch Agent Sign-in (OAuth) on in Toggleworks → AI, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Let AI apps register themselves
- Access keys last
- Stay connected for

## Good to know

- An approved app can do what the approving account can do. Approve apps from an account with only the permissions they need.

## Comes with 187 more parts

Agent Sign-in (OAuth) is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 22 AI parts](https://togglework.app/features/ai/)

### People also look for it as

- oauth
- oauth 2.1
- mcp auth
- auth.md
- agent sign in
- protected resource
- rfc 8414
- rfc 9728
- dynamic client registration
- pkce
- isitagentready

## Often switched on with it

- [Agent Discovery](https://togglework.app/features/ai/agent-discovery/) — TW-AI-03 New · Publishes the files AI agents check to learn what your site offers: an API catalog, agent skills (how to search and read the… · 8 settings
- [Agent Readiness Check](https://togglework.app/features/ai/agent-readiness/) — TW-AI-04 New · Scores how ready your site is for AI agents — the same checks as isitagentready.com and the Markdown (AEO) standard behind… · 1 setting
- [AI Agent (with approval)](https://togglework.app/features/ai/agent/) — TW-AI-01 · Ask in plain English — “draft an FAQ page”, “fix missing meta descriptions on our service pages”, “redirect /old-offer to… · Own screen in wp-admin
- [AI Alt Text](https://togglework.app/features/ai/alt-text/) — TW-AI-05 · Write descriptive alt text for images automatically on upload, with a one-click button in the media library and a bulk tool for… · 4 settings
- [AI Assistant](https://togglework.app/features/ai/assistant/) — TW-AI-06 · A chat panel in the admin bar that knows your WordPress setup — plugins, theme, Toggleworks modules — and helps with how-tos… · 3 settings
- [AI Chatbot](https://togglework.app/features/ai/chatbot/) — TW-AI-08 · A chat bubble that answers visitors’ questions using your own pages, posts and products — with links to the source — and hands… · 10 settings

## Questions

**Is Agent Sign-in (OAuth) included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Agent Sign-in (OAuth) among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Agent Sign-in (OAuth) slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Agent Sign-in (OAuth) only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Agent Sign-in (OAuth) before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/ai/agent-auth/
