← 返回
安全合规 中文

Max Auth

Security authentication gate for OpenClaw sensitive actions. Deploys a local Node.js auth server with biometric passkeys (WebAuthn/Touch ID/Face ID) and mast...
用于 OpenClaw 敏感操作的安全认证网关。部署本地 Node.js 认证服务器,支持生物识别通行密钥(WebAuthn/Touch ID/Face ID)和主密钥。
felipematos felipematos 来源
安全合规 clawhub v2.2.0 2 版本 99876.5 Key: 无需
★ 1
Stars
📥 789
下载
💾 14
安装
2
版本
#latest

概述

Max Auth

A lightweight self-hosted authentication server for OpenClaw. It protects sensitive agent actions with biometric passkeys and a master password, supports independent auth per session/channel, and can collect secrets via one-time HTTPS forms so credentials never need to appear in chat.

Features

  • 🔑 Biometric passkeys via WebAuthn
  • 🔐 Master password using PBKDF2 + salt
  • ⏱ 2-hour session tokens
  • 🔒 Session-scoped auth per sessionKey (telegram:6314900956, discord:channel:123, etc.)
  • 🔗 Delegated grants between sessions
  • 🧾 Audit log at ~/.max-auth/audit.log
  • 🌍 Browser UI localized in Portuguese, English, and Spanish
  • 🕳️ One-time secure secret forms (request_secret / retrieve_secret)
  • 🔌 OpenClaw plugin tools: check_auth, require_auth, request_secret, retrieve_secret

Requirements

  • Node.js 18+
  • HTTPS reverse proxy in front of the local auth server for WebAuthn browser flows

Quick Setup

mkdir -p ~/.max-auth && cd ~/.max-auth
cp <skill-path>/assets/auth-server.js .
cp <skill-path>/assets/package.json .
npm install

node auth-server.js set-password 'your_strong_password'
node auth-server.js

By default the server runs on 127.0.0.1:8456.

Use references/api.md for systemd, proxying, and HTTP API details.

Session-scoped auth

Each channel/session has its own auth state.

Examples:

  • telegram:6314900956
  • discord:channel:1488653811185881133
  • global

Typical check:

curl -s "http://127.0.0.1:8456/status?session=telegram%3A6314900956"

If auth is missing, direct the user to:

https://your-host/auth?session=telegram%3A6314900956

Secure secret handoff

Use this when the user needs to give a password/token/API key without leaking it into chat.

Flow:

  1. Agent calls request_secret with a label + field definitions
  2. User opens the returned HTTPS URL and submits the form in the browser
  3. Agent polls with retrieve_secret
  4. Values are returned once and then consumed/deleted from memory

The values are stored in memory only, expire automatically, and are not written to the chat transcript.

When to require auth

Require auth before:

  • deleting files/data
  • package installs
  • system configuration changes
  • sending messages/emails to third parties
  • mutating external APIs

Do not require auth for ordinary read/search/list/fetch operations.

References

  • references/api.md — setup + HTTP API
  • references/integration.md — agent integration patterns

版本历史

共 2 个版本

  • v2.2.0 当前
    2026-05-01 03:33 安全 安全
  • v2.1.0
    2026-03-30 07:18 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,506
ai-intelligence

AIN - AI Node Plugin

felipematos
将AIN提供者集成到OpenClaw,实现智能模型路由、提示执行和任务分类工具。
★ 0 📥 716
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,607