Authdog
Log In

Authdog CLI

Put your agent in control.

Ask your agent to use the Authdog CLI to add auth to your app. Stay in the terminal with no dashboard copy-paste for keys, links, or SDK wiring.

curl https://cli.auth.dog/install -fsS | bash

Read the docs

Terminal
david@dev ~/my-app %
$curl https://cli.auth.dog/install -fsS | bash
$authdog login
◇Opening browser for sign-in…
✓Logged in · credentials stored
$authdog init
✓Next.js SDK wired · run npm run dev

Terminal workflows

Set up and manage authentication from your terminal.

authdog init

Start in the repo you already have. Authdog detects the framework, links tenant, project, and environment, installs the right SDK, writes env vars, and applies integration snippets.

Watch the flow

Same commands your agent will run, with stable --json output when you need CI or automation.

$ authdog init
◇ Detecting framework
◇ Logging in if needed
◇ Linking this repo to your Authdog project
◇ Installing @authdog/nextjs-app
◇ Writing .env.local and .authdog/project.json
✓ Authdog has been set up in your project

Agent-native

Let your agent handle the setup.

From prompt to production

Give your agent the Authdog CLI, a linked .authdog/project.json, and MCP when you want live platform context. It can bootstrap auth, test webhooks locally, and walk go-live checks without leaving your editor.

  1. 1authdog init

    Use the Authdog CLI (authdog init) to add authentication to this repo. Detect the framework, link the Authdog project, install the SDK, and write env vars. Use --non-interactive and --json if you cannot prompt me.

  2. 2authdog config

    Pull environment settings with authdog config pull into .authdog/config.json, show me a diff against live with authdog config diff, and explain what would change before we patch.

  3. 3authdog webhooks listen

    Test Authdog webhooks locally: run authdog webhooks listen --forward http://127.0.0.1:3000/webhooks/authdog and show me how to verify a captured delivery with authdog webhooks verify.

  4. 4authdog impersonate

    Use authdog impersonate --user-id usr_8f3k --reason "debugging checkout" to mint a short-lived sign-in URL for that user so I can reproduce their session.

  5. 5authdog deploy status

    Run authdog deploy status --json and summarize security posture, vanity domain DNS, OAuth connections, and webhook coverage for go-live.

  6. 6authdog mcp install

    Run authdog mcp install --client cursor --non-interactive and confirm the Authdog MCP server is registered at https://api.authdog.com/mcp.

Authdog MCP · Quickstarts

Free trial

Request a free trial

Tell us what you're building and we'll get you set up with a trial, plus someone who can answer questions as you evaluate.

  • Full access to the platform while you evaluate it
  • Help wiring it into your stack from someone who knows it
  • Answers on SSO, SCIM, residency, and compliance requirements

We'll only use this to contact you about Authdog.

Install the CLI and link your repo

One curl to install, browser login, then `authdog init` in the project you already ship.

Get started