Make great videos

Logins and secrets

With an AI agent

When a flow needs a login, your agent asks:

❓ I need a login for http://localhost:3000 to record the dashboard.
Reply with: email, password
  • The login is used for that run only.
  • Your agent passes it only to the run that needs it. CursorCam never writes it to a file, a log or the output.
  • Password fields show dots in the video. Any other secret, like an email, is blurred.
  • Use a demo account, not a real one with customer data.

In a steps file

Never put a password in the steps file. Use a placeholder:

{ "type": "$secret:PASSWORD", "into": "label=Password" }

Pass the value to that one command:

CURSORCAM_SECRET_PASSWORD='…' npx cursorcam run steps.json
  • $secret:NAME reads CURSORCAM_SECRET_NAME.
  • $env:NAME reads a variable you already keep, like $env:DEMO_EMAIL.
  • Secret values never reach a file, a log or the terminal output.
  • They work in type and in httpCredentials.
  • cursorcam capture writes these placeholders for the passwords you type, and never saves the passwords.

To blur other things on screen, like the signed-in email, add "mask": [".user-email"] at the top of the steps file.

2FA and email codes

Add an ask step where the code goes:

{ "ask": "2FA code", "into": "label=Code" }

The run stops there and waits up to 5 minutes. Your agent asks you for the code. On the CLI, send it to the waiting run:

printf %s "123456" | npx cursorcam answer cursorcam-output/<run>

HTTP basic auth

{
  "url": "https://staging.example.com",
  "httpCredentials": { "username": "$secret:USER", "password": "$secret:PASS" },
  "steps": [{ "pause": 600 }]
}

Captchas and bot checks

CursorCam never tries to solve a captcha. Such a page stops the run with exit code 10. Log in once by hand instead:

npx cursorcam login https://app.example.com/login --profile acme

A browser window opens. Log in, then close the window. From then on, add --profile acme to inspect, check, record and run.

  • The saved login holds the site's cookies, not your password, in a file only you can read.
  • When the site logs you out, run login again with the same name.
  • Delete it with npx cursorcam login --profile acme --forget.