OAuth testing for the agentic era.

Test Google, Microsoft, GitHub, Apple, Discord, LinkedIn, X and Facebook sign-in in CI, without getting blocked.

One free OAuth provider for agentic development, E2E tests, and CI. No app registration, no bot checks, no fragile workarounds.

Give your agent this prompt

Install the Mockatoo skill by running npx skills add mockatoo/connectors --skill mockatoo. Then run npx -y @mockatoo/mockatoo@latest init in this app’s directory and follow the skill to set up OAuth for local development and E2E tests. Verify sign-in and consent denial end to end.

Works with Better Auth, Auth.js, and your existing OAuth flow.

#128google-login7m 25s

real OAuth provider · playwright · chromium

  1. Start headed chromium (xvfb)6s
  2. Open accounts.google.com12s
  3. Wait for #password: timeout30s
  4. Retry 2 of 34m 10s
  5. Retry 3 of 3: captcha2m 27s

Flaky: 3 of the last 10 runs failed

#131mockatoo-login2.4s

Mockatoo · playwright · headless

  1. Start headless chromium0.7s
  2. Sign in as test user0.8s
  3. Approve consent0.3s
  4. Exchange code for token0.2s
  5. Assert /dashboard0.4s

Stable: 50 of the last 50 runs passed

Automated testing

Built for E2E OAuth testing

Mockatoo was created for automated testing.

Accepts headless browsers
Real providers detect automated logins and answer with CAPTCHAs, 2FA prompts or blocks, so E2E tests can't get past the sign-in page. Mockatoo's login page accepts Playwright, Cypress and Selenium, headless or not.
  • Headless
  • Playwright
  • Cypress
  • CAPTCHA
Generous rate limiting
We don't block you because you logged in more often than a real user should. We expect bursts of OAuth requests from E2E testing.
  • 200 OK × 500
  • 429 Too Many Requests
Stable semantic HTML tags
Semantic tags are stable so your tests don't break with minor UX tweaks.
  • <form>
  • name="email"
  • type="submit"

Built for agents to log in

Agent-friendly for development

Confidently delegate your development OAuth work to an agent.

  • No reCAPTCHA
  • No proof-of-work
  • No MFA
  • No automated bot detection

Install in your agent

npx skills add mockatoo/connectors --skill mockatoo
agent session
  1. Add Google sign-in and verify the login flow end to end.

  2. browser.login(accounts.google.com)

    Blocked: “Verify you’re not a robot” reCAPTCHA

  3. Google blocks automated browsers. Swapping in mockGoogle() for development.

  4. browser.login(Mockatoo, agent@example.com)

    Redirected to /dashboard, session cookie set

  5. Login flow verified. All 3 auth e2e tests pass.

Instant integration

Select an identity provider and framework, then copy ready-to-run code.

Better AuthAuth.js

Faithful provider behavior

Mocks reproduce each provider as closely as possible — real redirects, consent screens, tokens, and edge cases.

GitHubGoogleMicrosoftAppleDiscordLinkedInXFacebookBehavior parity

Zero app registration

Skip developer apps, API credentials, and redirect URI consoles.

  • Developer app
  • Client secret
  • Redirect URI
  • Ready

Connect in minutes

Keep your app. Swap the provider.

Use your framework's normal sign-in call. Mockatoo changes the provider address outside production, so your app keeps its routes and behavior.

Read the connector docs
Identity provider
import { betterAuth } from "better-auth";import { mockGoogle } from "@mockatoo/connect-better-auth";const google = {  clientId: process.env.GOOGLE_CLIENT_ID!,  clientSecret: process.env.GOOGLE_CLIENT_SECRET!,};const isProd = process.env.NODE_ENV === "production";export const auth = betterAuth({  socialProviders: isProd ? { google } : {},  plugins: isProd ? [] : [mockGoogle(google)],});

Make the next OAuth test the easy one.

Mockatoo is designed for the messy middle of development: before production, after the first integration, and alongside your agent.

Create a free test account