Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. In agent development, when handling two-factor authentication (2FA) or one-time password scenarios, directly calling external services may cause privacy leakage or network latency risks. The dsh-otp plugin is designed to solve this problem by providing local TOTP/HOTP generation capabilities.

What Is This

dsh-otp is a one-time password generation plugin, maintained by uckkk. Its core capability is to generate TOTP and HOTP codes locally. The plugin is implemented in pure Node.js and does not depend on network connections or external services.

Installation and Enabling

  1. Install the plugin
dsh plugin add dsh-otp
  1. Configure the plugin
    After installation, add "dsh-otp" to the dsh.profile.bundles configuration item in the profile’s package.json.
{
  "dsh.profile.bundles": [
    "dsh-otp"
  ]
}

Usage

Once installation and configuration are complete, you can directly call the tool registered by the plugin in a conversation to generate a one-time password.

Applicable Scenarios and Notes

This plugin is suitable for scenarios that require securely generating verification codes locally. Keep in mind that installing the plugin means running third-party code on your local machine. Be sure to review its source code before installation to confirm that its behavior meets your security requirements.

Conclusion

dsh-otp uses pure local computation to address the trust and network dependency issues associated with TOTP/HOTP generation. To view the source code or learn more, visit its GitHub repository.