From browserless
Configure Browserless API authentication. Set up your API token and region for all Browserless skills. Use when the user wants to authenticate, set their token, configure their API region, or check auth status.
How this skill is triggered — by the user, by Claude, or both
Slash command
/browserless:authThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Configure authentication for all Browserless API skills. The user's request is: "$ARGUMENTS"
Configure authentication for all Browserless API skills. The user's request is: "$ARGUMENTS"
Based on $ARGUMENTS, do one of the following:
https://production-sfo.browserless.iohttps://production-lon.browserless.iohttps://production-ams.browserless.iomkdir -p ~/.browserless
cat > ~/.browserless/.env << 'ENVEOF'
BROWSERLESS_TOKEN=<their-token>
BROWSERLESS_API_URL=<their-chosen-url>
ENVEOF
chmod 600 ~/.browserless/.env
source ~/.browserless/.env
curl -s -X POST "${BROWSERLESS_API_URL}/map?token=${BROWSERLESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "limit": 1}'
If the response contains "success": true, tell the user auth is configured and working. If it fails (401, 403, or connection error), tell them the token may be invalid and offer to retry.
Check if authentication is configured:
if [ -n "$BROWSERLESS_TOKEN" ]; then
echo "Token set via environment variable"
echo "Token: ${BROWSERLESS_TOKEN:0:8}..."
elif [ -f ~/.browserless/.env ]; then
source ~/.browserless/.env
echo "Token loaded from ~/.browserless/.env"
echo "Token: ${BROWSERLESS_TOKEN:0:8}..."
echo "API URL: ${BROWSERLESS_API_URL:-https://production-sfo.browserless.io}"
else
echo "Not configured"
fi
Report the status to the user. If configured, show the first 8 characters of the token (masked) and the API URL. If not configured, suggest running /browserless:auth to set up.
Remove the saved config:
rm -f ~/.browserless/.env
echo "Browserless credentials removed."
Confirm to the user that credentials have been cleared.
Update just the API URL in the existing config:
BROWSERLESS_API_URL line in ~/.browserless/.envGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub browserless/claude-plugin --plugin browserless