sensitive-browser

CLI tool for executing sensitive browser actions with human review

설치
CLI
npx skills add https://github.com/napoleond/sensitive-browser --skill sensitive-browser

CLI를 사용하여 이 스킬을 설치하고 작업 공간에서 SKILL.md 워크플로 사용을 시작하세요.

최근 업데이트: 5/6/2026

sensitive-browser

A CLI tool for executing sensitive browser actions (login, payments, form filling) outside of the core agent loop. Designed to integrate with agentic browsing workflows.

Installation

npm install -g sensitive-browser
# or
npx sensitive-browser <task> [options]

Prerequisites

  • Node.js 18+
  • ATXP_CONNECTION_STRING environment variable set

Usage

npx sensitive-browser <task> \
  --sensitive-data ./creds.json \
  --url https://example.com/login \
  --state ./session.json \
  --output ./session.json

Options

Option Description
<task> The task to perform (e.g., "log in with credentials")
-s, --state <path> Path to Playwright storage state JSON file
-d, --sensitive-data <path> Path to sensitive data JSON file (required)
-u, --url <url> Target URL to navigate to
-o, --output <path> Output path for updated state (defaults to --state)

Sensitive Data Format

Create a JSON file with your sensitive data:

{
  "credentials": {
    "username": "[email protected]",
    "password": "secret"
  },
  "payment": {
    "cardNumber": "4111111111111111",
    "expiry": "12/28",
    "cvv": "123",
    "billingZip": "94102"
  },
  "personal": {
    "fullName": "Jane Doe",
    "phone": "+1-555-0123",
    "address": "123 Main St"
  }
}

Workflow Integration

With agent-browser

# Start a session with agent-browser
agent-browser --session myapp open https://example.com
agent-browser --session myapp state save ./session.json

# Hand off to sensitive-browser for login
npx sensitive-browser "log in with credentials" \
  --state ./session.json \
  --sensitive-data ./creds.json

# Continue with agent-browser
agent-browser --session myapp state load ./session.json
agent-browser --session myapp snapshot

Standalone

npx sensitive-browser "fill out the checkout form with payment info" \
  --url https://store.example.com/checkout \
  --sensitive-data ./payment.json \
  --output ./checkout-state.json

Security Notes

  • Sensitive data is never logged or displayed
  • The tool shows which sensitive fields will be used, but not their values
  • Store sensitive data files securely (consider using environment variables or secret managers)

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally
node dist/index.js "task" --sensitive-data ./test-creds.json --url https://example.com

License

MIT