कंटेंट पर जाएँ
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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक