authenticate
Log in to YesWeHack to start a session before using other tools. Provide an access token, email/password with optional TOTP, or open a browser when access is required.
Instructions
Authenticate with YesWeHack and store the session token locally. Call this first before using any other tool, or when a tool reports that authentication is required.
Option 1 — Direct token: provide access_token to skip credential login entirely. Option 2 — API login: provide email + password for a fast, browser-free login. If your account has 2FA enabled, the first call will ask for a TOTP code; call again with the same email/password and add the totp argument. Option 3 — Browser: call with no arguments to open a browser window instead.
You can also set the YWH_TOKEN environment variable to avoid calling this tool at all; it takes precedence over stored credentials.
Args: access_token: A pre-obtained YesWeHack JWT/bearer token (highest priority). email: Your YesWeHack account email. password: Your YesWeHack account password. totp: 6-digit TOTP code (only needed when 2FA is enabled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totp | No | ||
| No | |||
| password | No | ||
| access_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |