# Send TOTP to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "totp",
    "name": "TOTP",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/diegofcornejo/totp",
    "canonicalUrl": "https://clawhub.ai/diegofcornejo/totp",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/totp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=totp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "package.json",
      "scripts/generate-secret.js",
      "scripts/verify.js",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "totp",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T12:18:39.204Z",
      "expiresAt": "2026-05-06T12:18:39.204Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=totp",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=totp",
        "contentDisposition": "attachment; filename=\"totp-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "totp"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/totp"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/totp",
    "downloadUrl": "https://openagent3.xyz/downloads/totp",
    "agentUrl": "https://openagent3.xyz/skills/totp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/totp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/totp/agent.md"
  }
}
```
## Documentation

### TOTP Verification Skill

Secure OTP verification using TOTP (Time-based One-Time Password) for sensitive operations.

### Purpose

Protect access to:

.env variables
openclaw.json configuration
Gateway restarts
Backup deletions
Critical configuration changes
External API key operations

### Setup

Install dependencies:
npm install



Generate secret and QR:
npm run generate

Optionally pass service and account name:
node scripts/generate-secret.js MyService myuser



Send the QR image (qr.png) to the user, then delete it immediately:
rm qr.png



Set TOTP_SECRET in .env:
TOTP_SECRET=YOUR_BASE32_SECRET_HERE



Configure Google Authenticator/Authy with the generated secret or QR.

### Usage

When a sensitive operation is requested:

Agent: "Please provide your OTP"
User: Provides 6-digit code from authenticator app
Agent: Runs verification:
TOTP_SECRET=$TOTP_SECRET node scripts/verify.js 123456


If valid (exit 0): Proceed with operation
If invalid (exit 1): Deny access

### Files

scripts/generate-secret.js - Generate new TOTP secret and QR
scripts/verify.js - Verify OTP tokens (window:2 = 1 minute tolerance)
SKILL.md - This documentation

### Security Notes

Window: 2 (1 minute tolerance) for time drift
Algorithm: SHA1
Digits: 6
Period: 30 seconds
Secret: Base32 encoded, stored in .env as TOTP_SECRET

### Integration

This skill should be integrated into the agent's decision flow when:

User requests .env variables
User requests openclaw.json contents
User requests gateway restart
User requests backup deletion
Any operation marked as "critical"
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: diegofcornejo
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T12:18:39.204Z
- Expires at: 2026-05-06T12:18:39.204Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/totp)
- [Send to Agent page](https://openagent3.xyz/skills/totp/agent)
- [JSON manifest](https://openagent3.xyz/skills/totp/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/totp/agent.md)
- [Download page](https://openagent3.xyz/downloads/totp)