# @agentlayer\.tech/wallet 中文文档

规范地址：https://npmcn.com/package/%40agentlayer.tech/wallet/

版本：0\.1\.143
npm 元数据更新时间：2026-11-07T10:21:41.764Z
中文译文更新时间：2026-11-06T19:54:03.338Z
软件包许可：SEE LICENSE IN LICENSE

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40agentlayer.tech/wallet
原文对照：https://npmcn.com/package/%40agentlayer.tech/wallet/?lang=original
项目主页：https://www.agent-layer.tech/
源码仓库：https://github.com/lopushok9/Agent-Layer

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：3.2 MB，239 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2026-05-01T12:00:03.098Z
- 最新版本发布：2026-11-07T10:21:41.406Z
- 近 30 天下载量：2420（2026-10-05 至 2026-11-03，npm 官方下载统计）
- 已发布版本数：100（近 12 个月 100 个）

## 中文简介

通用代理Layer钱包安装器,用于OpenClaw, Codex, Cursor, Claude Code, 和Hermes.

## 安装

```sh
npm install @agentlayer.tech/wallet
```

也可以使用：`pnpm add @agentlayer.tech/wallet`、`yarn add @agentlayer.tech/wallet`、`bun add @agentlayer.tech/wallet`

## README

![AgentLayer](https://npmcn.com/package/%40agentlayer.tech/wallet/logo+name.png)

[![npm version](https://img.shields.io/npm/v/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet) [![npm downloads](https://img.shields.io/npm/dm/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet) [![Node 24.x](https://img.shields.io/badge/node-24.x-339933?logo=node.js&logoColor=white)](https://nodejs.org/) [![docs](https://img.shields.io/badge/docs-agent--layer.tech-blue)](https://docs.agent-layer.tech/)

尝试 AgentLayer——一个代理本地的,本地的密码钱包,里面有主协议的内置工具:用x402支付,交换,赚取收益,并发行有马厩的fiat卡.

## 安装

```bash
npx --yes @agentlayer.tech/wallet@latest install --yes
```

它与:

-   代码
-   光标
-   克劳德代码
-   打开Claw
-   赫尔墨斯

你需要的就是: 爱丽丝

-   节点.js 24
-   无
-   Py 3

安装后重新启动您的代理 .

### 仅支付 (无安装, MCP)

如果您只需要在基数上支付x402, 请连接这个远程 MCP :

```text
https://x402.agent-layer.tech/mcp
```

这只是一个MCP服务器。 它提供x402付款(已支付搜索费) 服务、预览和按基地支付美元)加基本美元委员会收发 在Arc上,它不是完整的代理Layer钱包:没有索拉纳,互换,或DeFi. 添加为自定义 任何支持远程服务器的 MCP 主机中的连接器(用于) 例如克洛德),并与Google或GitHub签约.

**梅塔·缪斯:** 打开 [https://x402. agent-layer.tech/muse (英语)](https://x402.agent-layer.tech/muse)并创建 个人访问标志。 页面为您提供了Muse的备忘提示; 输入 只在Muse的安全证书即时,而不是在聊天中表示。 见 [托管的 x402 付款 MCP](https://npmcn.com/package/%40agentlayer.tech/wallet/#readme-hosted-x402-payment-mcp) 详细情况.

### 明确选择框架

```bash
npx --yes @agentlayer.tech/wallet@latest install --yes --hosts codex,claude-code
```

支持的主机名称为:

```text
codex
cursor
claude-code
openclaw
hermes
```

看Layer探员发现什么

```bash
npx --yes @agentlayer.tech/wallet@latest detect --json
```

## 更新

如果 `wallet` 命令可用 :

```bash
wallet update --yes
```

如果缺少或已过时的《国家综合指数》:

```bash
npx --yes @agentlayer.tech/wallet@latest update --yes
```

更新更新共享运行时间和已经连接到的框架 莱尔探员 它不添加新安装的框架, 您没有选择 .

只更新选定的框架:

```bash
npx --yes @agentlayer.tech/wallet@latest update --yes --hosts codex,claude-code
```

在不应用的情况下预览更新 :

```bash
wallet update --yes --dry-run
```

## 检查安装

```bash
wallet status
wallet doctor
```

## 当地通用的 MCP

支持本地标准的任何 MCP 客户端 `stdio` 运输可以使用 同样的钱包运行时间,没有安装 Codex, Cursor, Claude Code, OpenClaw, 或 Hermes 插件。 安装运行时间, 然后打印一个现成的 MCP 配置 :

```bash
npx --yes @agentlayer.tech/wallet@latest install --yes --runtime-only
npx --yes @agentlayer.tech/wallet@latest mcp config
```

生成的配置在马厩开始本地进程 `agent-wallet-runtime/current` 路径。 它暴露了与The 密码,克塞尔,还有克洛德密码桥 交易政策、预览/预览/执行, 而批准检查仍由共享 Python 钱包运行时间执行.

对于请求执行路径而不是JSON的客户端,使用:

```bash
npx --yes @agentlayer.tech/wallet@latest mcp path
```

如果不安装全球CLI:

```bash
npx --yes @agentlayer.tech/wallet@latest status
npx --yes @agentlayer.tech/wallet@latest doctor
```

安装或更新后,当 `wallet status` 显示 `restart_required: true`。 。 。 .

## 托管的 x402 付款 MCP

连接 URL: `https://x402.agent-layer.tech/mcp`

云代理用户和移动主机用户可分别使用 [`x402-payment-mcp/`](https://npmcn.com/package/%40agentlayer.tech/wallet/x402-payment-mcp/README.md)它是远程MCP与 第一党OAuth(Google/GitHub登录),每个用户一个CDP管理的Base钱包,以及Base USDC x402支付. 它不取代或 与本地钱包运行时间共享监管假设 .

## 常见命令

```bash
wallet detect --json
wallet status
wallet doctor
wallet update --yes
wallet rollback
```

## 可选连接器

连接器添加可选第三方加密和DeFi 不移动读取工具 已存在的集成,例如Aave、Kamino或钱包核心中的Morpho.

```bash
wallet connectors inspect ./connector.json
wallet connectors install ./connector.json --enable --yes
wallet connectors list
wallet connectors disable com.example.protocol
wallet connectors doctor
```

在主机后 OpenClaw 和 Codex 中出现已启用的只读连接器 重新启动 。 有写能力的连接器在经过核实之前仍然无法使用, 代理Layer托管的执行路径已完全启用 。 见 [`connectors/README.md`](https://npmcn.com/package/%40agentlayer.tech/wallet/connectors/README.md) 信任模式和协议.

## 莱尔探员提供的东西

代理Layer将支持的代理连接到一个本地钱包运行时间. 代理人可以:

-   视图余额和组合职位
-   发送和接收支持资产
-   互换令牌
-   使用支持的 DeFi 服务
-   通过x402获得的API
-   与索拉纳、伊特鲁姆和基地合作

阅读操作可直接使用. 仍有转移资金的业务 通过钱包政策和批准检查加以保护.

## 克劳德代码市场

Claude代码用户也可以从它的市场安装插件:

```text
/plugin marketplace add lopushok9/Agent-Layer
/plugin install agent-wallet@agentlayer
```

安装后重新启动克洛德代码.

## ChatGPT 桌面和编码市场

作为npm安装器的替代品,添加公共代理Layer Git 市场化并安装本地钱包插件 :

```bash
codex plugin marketplace add lopushok9/Agent-Layer
codex plugin add agent-wallet@agentlayer
```

重新启动 ChatGPT 桌面或编码程序,然后从代理Layer 中选择代理钱包 源在插件目录中。 在第一次 MCP 启动时,插件会安装 共享钱包运行时间通过 `@agentlayer.tech/wallet` 如果它不见了。 这个 需要节点24、npm和python 3。 钱包和签名政策继续使用 诀竟 上面的 npm 安装器仍然是主要安装路径; 它也可以更新和修复通过这个市场安装的运行时间.

市场插件使用与npm安装相同的本地钱包. 若为 您已经安装 `agent-wallet@local`,使用两个插件条目中的一个 用于避免重复钱包工具的会话.

## OpenClaw 插件

OpenClaw 用户也可以从 ClawHub 安装本地插件 :

```bash
openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
```

需要通用 npm 安装器来准备本地钱包 运行时间.

## 警卫

代理接收钱包能力,而不是钱包密钥.

-   钥匙和签名留在用户的机器上.
-   钱包秘密在当地加密.
-   更新保存已存在的钱包和身份 .
-   交易仍须遵守钱包政策和批准.

在macOS上,AgentLayer默认使用登录键链. macOS 可能会请求 安装或更新时的密钥链访问 。 只有在你开始的时候才批准 莱尔探员的命令.

保存你的复原钥匙的离线安全副本.

## 许可证

该存放处可使用PolyForm小企业许可证1.0. 个人、研究人员、学生、安全审查员、爱好者、 小企业可以根据该许可证的规定使用和修改该许可证.

## 常见问题

### @agentlayer\.tech/wallet 是什么？

通用代理Layer钱包安装器,用于OpenClaw, Codex, Cursor, Claude Code, 和Hermes\.

### 如何安装 @agentlayer\.tech/wallet？

在项目目录运行 npm install @agentlayer\.tech/wallet，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 wallet，可以用 npx wallet 直接运行。

### @agentlayer\.tech/wallet 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/agentlayer\.tech\_\_wallet 是否存在。

### @agentlayer\.tech/wallet 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @agentlayer\.tech/wallet 可以商用吗？

@agentlayer\.tech/wallet 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中，请阅读该文件确认可否商用。以上为概括，不构成法律意见，请以许可原文为准。

### @agentlayer\.tech/wallet 的下载量有多少？

根据 npm 官方下载统计，@agentlayer\.tech/wallet 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,420 次，日均约 81 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @agentlayer\.tech/wallet 还在维护吗？

最新版本 0\.1\.143 发布于 2026/11/07（今天）；至今共发布 100 个版本，其中过去 12 个月发布了 100 个；首次发布于 2026/05/01。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

