본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

totp

diegofcornejo 제작

CLI Utilities
272clawskills.sh가 보고한 다운로드 수
1조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

TOTP-based OTP verification for sensitive operations (env vars, gateway restarts, backup deletions, critical config.

설명

이 스킬이 하는 일

Adds TOTP-based two-factor verification before an agent executes sensitive operations. Uses otplib with a 2-window tolerance (±1 minute) to handle clock drift. Requires a one-time setup with any TOTP authenticator app.

Enforces a hardware-independent second factor at the agent level without modifying the underlying service or infrastructure.

사용 시점

  • Gating access to .env file contents
  • Requiring OTP before restarting a gateway service
  • Confirming identity before deleting backups
  • Protecting critical config file reads
  • Blocking external API key operations without verification

예시 워크플로

입력

User asks: delete the staging backup

에이전트
  1. 1

    Agent prompts user for a 6-digit OTP from their authenticator app

  2. 2

    User provides the code

  3. 3

    Agent runs: TOTP_SECRET=$TOTP_SECRET node scripts/verify.js 123456

  4. 4

    Script exits 0 if valid, 1 if invalid or expired

  5. 5

    Agent proceeds with deletion on exit 0, denies on exit 1

출력

Backup deleted after successful OTP verification, or access denied with no action taken

요구 사항

  • TOTP_SECRET environment variable (Base32 secret generated during setup)
  • Google Authenticator, Authy, or any TOTP-compatible authenticator app

설치

clawhub install diegofcornejo/totp

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크