@agentlayer.tech/wallet 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/.openclaw/AGENTS.md +0 -7
  2. package/.openclaw/extensions/agent-wallet/README.md +3 -2
  3. package/.openclaw/extensions/agent-wallet/package.json +1 -1
  4. package/README.md +111 -3
  5. package/RELEASING.md +5 -15
  6. package/agent-wallet/README.md +3 -0
  7. package/agent-wallet/agent_wallet/config.py +11 -0
  8. package/agent-wallet/agent_wallet/evm_user_wallets.py +310 -2
  9. package/agent-wallet/agent_wallet/openclaw_runtime.py +10 -41
  10. package/agent-wallet/agent_wallet/providers/wdk_evm_local.py +52 -0
  11. package/agent-wallet/pyproject.toml +1 -1
  12. package/agent-wallet/scripts/build_release_bundle.py +1 -0
  13. package/agent-wallet/scripts/flash-sdk-bridge/bridge.mjs +21 -11
  14. package/agent-wallet/scripts/install_agent_wallet.py +250 -14
  15. package/agent-wallet/scripts/install_openclaw_local_config.py +20 -51
  16. package/agent-wallet/scripts/install_openclaw_sealed_keys.py +9 -1
  17. package/bin/openclaw-agent-wallet.mjs +282 -24
  18. package/package.json +1 -2
  19. package/.openclaw/extensions/pay-bridge/README.md +0 -38
  20. package/.openclaw/extensions/pay-bridge/core.mjs +0 -287
  21. package/.openclaw/extensions/pay-bridge/dist/core.mjs +0 -287
  22. package/.openclaw/extensions/pay-bridge/dist/index.js +0 -196
  23. package/.openclaw/extensions/pay-bridge/index.ts +0 -196
  24. package/.openclaw/extensions/pay-bridge/openclaw.plugin.json +0 -34
  25. package/.openclaw/extensions/pay-bridge/package.json +0 -49
  26. package/.openclaw/extensions/pay-bridge/skills/pay-operator/SKILL.md +0 -20
  27. package/.openclaw/extensions/pay-bridge/smoke_pay_bridge.mjs +0 -38
@@ -7,22 +7,16 @@ These instructions apply to the entire `.openclaw/` tree.
7
7
  This tree contains local OpenClaw host-side workspace assets. In the current repo, its main responsibilities are:
8
8
 
9
9
  - the `agent-wallet` extension that bridges OpenClaw to the authoritative Python `agent-wallet` backend
10
- - the `pay-bridge` extension that bridges OpenClaw to the local `pay` CLI for paid API discovery and execution
11
10
 
12
11
  ## Current structure
13
12
  - `.openclaw/extensions/agent-wallet/index.ts` — TypeScript extension entrypoint registered by OpenClaw.
14
13
  - `.openclaw/extensions/agent-wallet/openclaw.plugin.json` — plugin manifest and config schema.
15
14
  - `.openclaw/extensions/agent-wallet/package.json` — extension package metadata.
16
15
  - `.openclaw/extensions/agent-wallet/skills/wallet-operator/SKILL.md` — user-facing operational wallet safety guidance.
17
- - `.openclaw/extensions/pay-bridge/index.ts` — TypeScript entrypoint for the local `pay` CLI bridge.
18
- - `.openclaw/extensions/pay-bridge/openclaw.plugin.json` — plugin manifest and config schema for pay tools.
19
- - `.openclaw/extensions/pay-bridge/core.mjs` — local `pay` command execution and output shaping.
20
- - `.openclaw/extensions/pay-bridge/skills/pay-operator/SKILL.md` — user-facing operational guidance for paid API usage.
21
16
 
22
17
  ## Design intent
23
18
  - Keep the TypeScript extension thin and host-oriented.
24
19
  - Let Python own wallet logic, policy, approvals, signing rules, and Solana implementation details.
25
- - Let `pay` remain the source of truth for paid API wallet/account behavior.
26
20
  - Let the extension focus on:
27
21
  - resolving config
28
22
  - locating the Python package
@@ -35,7 +29,6 @@ This tree contains local OpenClaw host-side workspace assets. In the current rep
35
29
 
36
30
  ### Keep bridge logic thin
37
31
  - Do not duplicate business logic from Python unless OpenClaw requires it at registration time.
38
- - Do not duplicate payment protocol logic from `pay`; prefer invoking the local CLI and shaping its output.
39
32
  - Do not reimplement approval validation, transaction policy, wallet derivation, or Solana-specific rules in TypeScript.
40
33
  - Prefer forwarding config into the CLI bridge and letting Python decide runtime behavior.
41
34
  - Treat this layer as a transport and schema bridge, not an execution authority.
@@ -77,7 +77,7 @@ The ClawHub plugin package only installs the native OpenClaw plugin. It expects
77
77
 
78
78
  If that runtime is not present, set `plugins.entries.agent-wallet.config.packageRoot` explicitly.
79
79
 
80
- That installs the Python backend, Node dependencies for the local BTC/EVM runtimes, and patches the OpenClaw plugin config. Wallet creation, unlock, and local service start stay as separate host-side steps.
80
+ That installs the Python backend, Node dependencies for the local BTC/EVM runtimes, and patches the OpenClaw plugin config. Solana stays ready immediately; EVM readiness can now be auto-healed during normal wallet switching when the runtime has sealed local vault credentials.
81
81
 
82
82
  For self-hosted installs, prefer `SOLANA_RPC_URL` / `SOLANA_RPC_URLS` in local env and treat the plugin `rpcUrl` / `rpcUrls` fields as fallback only. If the local runtime exposes `ALCHEMY_API_KEY` or `HELIUS_API_KEY`, the wallet can derive the Solana RPC URL automatically for `mainnet` or `devnet`. Local env always takes precedence over `openclaw.json`.
83
83
 
@@ -88,12 +88,13 @@ Important:
88
88
  - For a local official OpenClaw install, `userId` should represent the wallet owner for that agent install.
89
89
  - The public OpenClaw plugin docs do not document a per-request end-user identifier in `registerTool(...).execute(...)`, so dynamic multi-user wallet selection is intentionally kept in the Python/runtime layer, not inside the TypeScript plugin itself.
90
90
  - Helper scripts in `agent-wallet/scripts/` are generic patch/finalize utilities and no longer assume a specific local username, path, or temporary master key.
91
- - The OpenClaw plugin API in this repo exposes tool registration, not host password prompts, so BTC and EVM wallet create/unlock remain host-shell or CLI flows outside the agent tool surface.
91
+ - The OpenClaw plugin API in this repo exposes tool registration, not host password prompts. EVM wallet create/unlock still is not a public agent tool, but the runtime can now auto-create or auto-unlock the local EVM wallet during `set_wallet_backend` or EVM tool calls when `sealed_keys.json` contains the local EVM vault password.
92
92
  - For a one-command local BTC onboarding path, use `agent-wallet/scripts/bootstrap_openclaw_btc.py`, which both sets up the BTC wallet binding and patches local OpenClaw config for `backend=wdk_btc_local`.
93
93
  - The BTC flow now only supports local service URLs (`127.0.0.1` / `localhost` / `::1`).
94
94
  - The local BTC service is protected with a bearer token loaded from `~/.openclaw/wdk-btc-wallet/local-auth-token`, not from plugin config JSON.
95
95
  - When the BTC service URL is local, that bootstrap script can also auto-start `wdk-btc-wallet` before patching OpenClaw config.
96
96
  - The EVM flow also only supports local service URLs (`127.0.0.1` / `localhost` / `::1`) and uses a bearer token loaded from `~/.openclaw/wdk-evm-wallet/local-auth-token`.
97
+ - The installer now provisions a sealed local EVM vault password under `sealed_keys.json` by default, and host-side EVM setup helpers refresh that sealed value whenever the operator enters a new password.
97
98
  - The EVM tool surface is intentionally narrow: Velora swap quote/execute, Aave V3 account/reserve/position flows, native transfers, ERC-20 transfers, fee quotes, and receipt lookup only. No arbitrary calldata, standalone approvals, or generic contract execution are exposed to the agent.
98
99
  - Velora swap and Aave V3 support are currently limited to `ethereum` and `base`. Test carefully because the upstream WDK protocol packages are still beta.
99
100
  - Agents can call `set_wallet_backend` to switch the active wallet for the current OpenClaw plugin session between Solana, EVM, and Bitcoin. This does not edit `openclaw.json`; plugin config remains the startup default.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlayertech/agent-wallet-plugin",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "OpenClaw plugin bridge for the AgentLayer wallet runtime.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN ../../../LICENSE",
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  [![npm version](https://img.shields.io/npm/v/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet)
5
5
  [![npm downloads](https://img.shields.io/npm/dm/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet)
6
+ [![docs](https://img.shields.io/badge/docs-agent--layer.tech-blue)](https://docs.agent-layer.tech/)
6
7
  [![license](https://img.shields.io/github/license/lopushok9/Agent-Layer)](https://github.com/lopushok9/Agent-Layer/blob/main/LICENSE)
7
8
 
8
9
  ```bash
@@ -18,7 +19,7 @@ AgentLayer is a beta local-first wallet and finance stack for agents.
18
19
  The repository includes:
19
20
 
20
21
  - `agent-wallet/` - the main wallet backend for AgentLayer
21
- - `.openclaw/` - the local AgentLayer bridge layer, including the OpenClaw wallet bridge and the `pay.sh` API-payments bridge
22
+ - `.openclaw/` - the local AgentLayer bridge layer for the OpenClaw wallet integration
22
23
  - `hermes/` - optional Hermes Agent plugin bridge for the same wallet backend
23
24
  - `wdk-btc-wallet/` - the local Bitcoin wallet service
24
25
  - `wdk-evm-wallet/` - the local EVM wallet service
@@ -55,7 +56,6 @@ Install the native OpenClaw plugins from ClawHub:
55
56
 
56
57
  ```bash
57
58
  openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
58
- openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
59
59
  ```
60
60
 
61
61
  Those ClawHub packages do not replace the npm installer. Keep `npx @agentlayer.tech/wallet install --yes` for laying down the local wallet runtime, Python backend, and helper services. The ClawHub packages only install the OpenClaw plugin surfaces that point at that runtime.
@@ -83,16 +83,19 @@ wallet status
83
83
  wallet doctor
84
84
  wallet hermes install --yes
85
85
  wallet update --yes
86
+ wallet update --yes --dry-run
86
87
  wallet rollback
87
88
  ```
88
89
 
90
+ `wallet update --yes` now delegates to the latest published npm package and reuses shared Python and Node dependency snapshots when they have not changed, so frequent upgrades do not need to rebuild every runtime dependency from scratch.
91
+ Use `wallet update --yes --dry-run` to inspect the target runtime version and whether Python/Node dependency snapshots will be reused or rebuilt before switching `current`.
92
+
89
93
  ## Native OpenClaw plugin installs
90
94
 
91
95
  Use ClawHub when you want the plugin itself to be installed through OpenClaw:
92
96
 
93
97
  ```bash
94
98
  openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
95
- openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
96
99
  ```
97
100
 
98
101
  Recommended order:
@@ -117,6 +120,111 @@ sh ./setup.sh
117
120
 
118
121
  If you want the installer to finish the OpenClaw plugin wiring in the same pass, provide the runtime secrets before running it:
119
122
 
123
+ ## Wallet capabilities through external services
124
+
125
+ AgentLayer keeps keys, approvals, and signing local, but the wallet can still operate through a set of registered provider-backed tools. These tools are exposed through the OpenClaw wallet plugin as explicit service integrations rather than raw shell access, config editing, or backend switching.
126
+
127
+ ### x402 paid APIs
128
+
129
+ The x402 bundle turns the wallet into a buyer for metered APIs and paid HTTP endpoints:
130
+
131
+ - `x402_search_services` - search x402-paid services through discovery providers such as CDP Bazaar and Agentic Market without spending funds.
132
+ - `x402_get_service_details` - resolve one discovered service or resource into a normalized detail payload before attempting payment.
133
+ - `x402_preview_request` - make an unpaid request, detect `402 Payment Required`, and summarize payment terms and supported payment options.
134
+ - `x402_pay_request` - prepare or execute the paid retry through the active wallet backend. The current flow executes the Solana exact-buyer path and keeps EVM as prepare-only.
135
+
136
+ This gives the wallet a direct bridge from service discovery to paid API consumption while preserving approval-token checks before execution.
137
+
138
+ ### LI.FI cross-chain routing
139
+
140
+ The LI.FI bundle covers discovery, quote inspection, transfer tracking, and routed execution across Solana, Ethereum, and Base:
141
+
142
+ - `get_lifi_supported_chains` - list the chains currently allowed for LI.FI routing in the wallet surface.
143
+ - `get_lifi_quote` - fetch a read-only cross-chain quote before any execution planning.
144
+ - `get_lifi_transfer_status` - inspect a routed transfer by transaction hash or LI.FI step id.
145
+ - `swap_solana_lifi_cross_chain_tokens` - preview, prepare, or execute a Solana-origin cross-chain route into Ethereum or Base.
146
+ - `swap_evm_lifi_cross_chain_tokens` - preview, prepare, or execute an EVM-origin cross-chain route across Ethereum, Base, and Solana when LI.FI returns a route.
147
+
148
+ ### Jupiter trading and yield
149
+
150
+ On Solana, Jupiter-backed tools cover market pricing, swaps, and Jupiter Earn vault flows:
151
+
152
+ - `get_solana_token_prices` - fetch current Solana token pricing through Jupiter.
153
+ - `swap_solana_tokens` - preview, prepare, or execute a Jupiter-routed Solana token swap.
154
+ - `get_jupiter_earn_tokens` - list Jupiter Earn vault assets currently supported on mainnet.
155
+ - `get_jupiter_earn_positions` - inspect wallet positions in Jupiter Earn vaults.
156
+ - `get_jupiter_earn_earnings` - fetch earnings for one or more Jupiter Earn positions.
157
+ - `jupiter_earn_deposit` - preview, prepare, or execute a Jupiter Earn deposit.
158
+ - `jupiter_earn_withdraw` - preview, prepare, or execute a Jupiter Earn withdrawal.
159
+
160
+ ### Houdini private payouts
161
+
162
+ For privacy-preserving Solana payout flows, the wallet exposes a Houdini-backed bundle:
163
+
164
+ - `swap_solana_privately` - create a preview or approved private payout through Houdini routing. The current MVP supports same-token flows such as `SOL -> SOL` and `USDC -> USDC`.
165
+ - `continue_solana_private_swap` - continue a previously created Houdini order and submit the local funding transfer to the returned deposit address.
166
+ - `get_solana_private_swap_status` - check Houdini status for an existing private payout.
167
+ - `list_pending_solana_private_swaps` - list cached pending Houdini orders for the current OpenClaw session.
168
+
169
+ This flow is intentionally optimized for `preview -> execute` rather than adding a no-op prepare step.
170
+
171
+ ### Kamino lending
172
+
173
+ Kamino integration gives the wallet a structured Solana lending surface:
174
+
175
+ - `get_kamino_lend_markets` - list Kamino lending markets available on Solana mainnet.
176
+ - `get_kamino_lend_market_reserves` - inspect reserve metrics for one Kamino market.
177
+ - `get_kamino_lend_user_obligations` - inspect the wallet's obligations inside a Kamino market.
178
+ - `get_kamino_lend_user_rewards` - fetch the wallet's Kamino rewards summary.
179
+ - `kamino_lend_deposit` - preview, prepare, or execute a lending deposit.
180
+ - `kamino_lend_withdraw` - preview, prepare, or execute a lending withdrawal.
181
+ - `kamino_lend_borrow` - preview, prepare, or execute a borrow.
182
+ - `kamino_lend_repay` - preview, prepare, or execute a repay.
183
+
184
+ ### Flash Trade perps
185
+
186
+ Flash Trade integration adds a managed perpetuals surface on Solana mainnet:
187
+
188
+ - `get_flash_trade_markets` - list currently available Flash Trade markets.
189
+ - `get_flash_trade_positions` - inspect the wallet's open Flash Trade positions.
190
+ - `flash_trade_open_position` - preview, prepare, or execute a perp position open.
191
+ - `flash_trade_close_position` - preview, prepare, or execute a perp position close.
192
+
193
+ ### Bags launch and fee-share
194
+
195
+ Bags-backed tools cover token launch and post-launch fee analytics:
196
+
197
+ - `get_bags_claimable_positions` - inspect claimable Bags fee-share positions for a Solana wallet.
198
+ - `get_bags_fee_analytics` - fetch analytics and optional claim history for a launched token.
199
+ - `claim_bags_fees` - preview, prepare, or execute a Bags fee-share claim.
200
+ - `launch_bags_token` - preview, prepare, or execute a Bags token launch with fee-share configuration.
201
+
202
+ ### EVM DeFi integrations
203
+
204
+ The EVM wallet surface includes named DeFi integrations on `ethereum` and `base`, without exposing arbitrary calldata execution.
205
+
206
+ Velora swap routing:
207
+
208
+ - `get_evm_swap_quote` - fetch a read-only EVM swap quote.
209
+ - `swap_evm_tokens` - preview, prepare, or execute a routed EVM token swap.
210
+
211
+ Aave V3:
212
+
213
+ - `get_evm_aave_account` - inspect the wallet's Aave account state.
214
+ - `get_evm_aave_reserves` - fetch reserve data for supported Aave markets.
215
+ - `get_evm_aave_positions` - inspect the wallet's open Aave positions.
216
+ - `manage_evm_aave_position` - preview, prepare, or execute Aave position changes through the managed wallet flow.
217
+
218
+ Lido:
219
+
220
+ - `get_evm_lido_overview` - fetch Lido protocol overview data relevant to the wallet surface.
221
+ - `get_evm_lido_positions` - inspect the wallet's Lido positions.
222
+ - `get_evm_lido_withdrawal_requests` - inspect outstanding Lido withdrawal requests.
223
+ - `manage_evm_lido_position` - preview, prepare, or execute a Lido staking position change.
224
+ - `manage_evm_lido_withdrawal` - preview, prepare, or execute a Lido withdrawal management action.
225
+
226
+ Across these service-backed flows, read operations remain directly callable, while write operations stay behind preview, explicit intent, and host-issued approval tokens before execution.
227
+
120
228
  Solana:
121
229
 
122
230
  ```bash
package/RELEASING.md CHANGED
@@ -12,11 +12,10 @@ The public install command is:
12
12
  npx @agentlayer.tech/wallet install --yes
13
13
  ```
14
14
 
15
- The repo also ships two native OpenClaw plugin packages for ClawHub:
15
+ The repo also ships a native OpenClaw plugin package for ClawHub:
16
16
 
17
17
  ```text
18
18
  @agentlayertech/agent-wallet-plugin
19
- @agentlayertech/pay-bridge-plugin
20
19
  ```
21
20
 
22
21
  ## When npm Publishes
@@ -200,7 +199,6 @@ Dry-run the package contents from each plugin directory:
200
199
 
201
200
  ```bash
202
201
  (cd .openclaw/extensions/agent-wallet && npm pack --dry-run)
203
- (cd .openclaw/extensions/pay-bridge && npm pack --dry-run)
204
202
  ```
205
203
 
206
204
  Publish to ClawHub with the package-specific command documented by OpenClaw:
@@ -208,16 +206,12 @@ Publish to ClawHub with the package-specific command documented by OpenClaw:
208
206
  ```bash
209
207
  clawhub package publish .openclaw/extensions/agent-wallet --dry-run
210
208
  clawhub package publish .openclaw/extensions/agent-wallet
211
-
212
- clawhub package publish .openclaw/extensions/pay-bridge --dry-run
213
- clawhub package publish .openclaw/extensions/pay-bridge
214
209
  ```
215
210
 
216
211
  Users then install them natively through OpenClaw:
217
212
 
218
213
  ```bash
219
214
  openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
220
- openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
221
215
  ```
222
216
 
223
217
  GitHub Actions can publish the same packages automatically from tags and manual
@@ -231,14 +225,13 @@ CLAWHUB_TOKEN
231
225
 
232
226
  Workflow behavior:
233
227
 
234
- - `pull_request`: packs both plugins and runs ClawHub `--dry-run`
228
+ - `pull_request`: packs the plugin and runs ClawHub `--dry-run`
235
229
  - `workflow_dispatch`: publishes or dry-runs based on the `dry_run` input
236
- - `push` on `v*` tags: publishes both plugins automatically
230
+ - `push` on `v*` tags: publishes the plugin automatically
237
231
 
238
232
  The workflow currently publishes:
239
233
 
240
234
  - `.openclaw/extensions/agent-wallet` as `bundle-plugin`
241
- - `.openclaw/extensions/pay-bridge` as `code-plugin`
242
235
 
243
236
  `agent-wallet` stays on `bundle-plugin` because that package name was first
244
237
  published to ClawHub with that family, and ClawHub does not allow family
@@ -298,17 +291,16 @@ It publishes these ClawHub packages:
298
291
 
299
292
  ```text
300
293
  @agentlayertech/agent-wallet-plugin
301
- @agentlayertech/pay-bridge-plugin
302
294
  ```
303
295
 
304
296
  ### Triggers
305
297
 
306
298
  - `pull_request`
307
- - runs ClawHub publish in `--dry-run` mode for both plugin packages
299
+ - runs ClawHub publish in `--dry-run` mode for the plugin package
308
300
  - `workflow_dispatch`
309
301
  - supports manual runs with a `dry_run` boolean input
310
302
  - `push` on git tags matching `v*`
311
- - publishes both plugin packages to ClawHub
303
+ - publishes the plugin package to ClawHub
312
304
 
313
305
  ### Required secret
314
306
 
@@ -330,7 +322,6 @@ publisher access to:
330
322
  The workflow currently publishes:
331
323
 
332
324
  - `.openclaw/extensions/agent-wallet` as `bundle-plugin`
333
- - `.openclaw/extensions/pay-bridge` as `code-plugin`
334
325
 
335
326
  `agent-wallet` remains on `bundle-plugin` because the package
336
327
  `@agentlayertech/agent-wallet-plugin` was first created in ClawHub with that
@@ -346,7 +337,6 @@ If you want one git tag to publish both npm and ClawHub surfaces together:
346
337
  package.json
347
338
  agent-wallet/pyproject.toml
348
339
  .openclaw/extensions/agent-wallet/package.json
349
- .openclaw/extensions/pay-bridge/package.json
350
340
  ```
351
341
 
352
342
  2. Commit the release version bump.
@@ -405,6 +405,7 @@ For the local EVM backend (`backend=wdk_evm_local`), the lifecycle mirrors the B
405
405
  - the EVM service is localhost-only and no longer accepts remote service URLs through the OpenClaw EVM flow
406
406
  - `agent-wallet` talks to it through a local bearer token loaded from `~/.openclaw/wdk-evm-wallet/local-auth-token`
407
407
  - `agent-wallet` stores only a per-user EVM wallet binding under `~/.openclaw/users/<normalized-user-id>/wallets/evm-<network>-agent.json`
408
+ - the runtime can auto-create missing EVM bindings or auto-unlock the local vault during ordinary OpenClaw switching/tool calls when `sealed_keys.json` contains `wdk_evm_wallet_password`
408
409
  - supported EVM networks are `ethereum`, `sepolia`, `base`, and `base-sepolia`
409
410
  - OpenClaw-facing EVM tools accept an optional per-call `network` override for `ethereum` or `base`, so the agent can switch between the two mainnet EVM paths without editing host config
410
411
  - EVM `get_wallet_balance` now returns an enriched portfolio-style payload with native balance, discovered ERC-20 balances, and USD values when token discovery and pricing are available
@@ -429,6 +430,7 @@ That wrapper:
429
430
  - can auto-start `wdk-evm-wallet/run-local.sh` if the local service is not already healthy
430
431
  - creates or unlocks the local EVM wallet binding
431
432
  - also binds the paired EVM network by default: `ethereum <-> base`, `sepolia <-> base-sepolia`
433
+ - stores the entered EVM vault password into `sealed_keys.json` when `AGENT_WALLET_BOOT_KEY` is available, so later OpenClaw wallet switching can auto-raise the EVM backend without another password prompt
432
434
  - patches OpenClaw config to `backend=wdk_evm_local`
433
435
 
434
436
  Example host-side EVM wallet creation:
@@ -453,6 +455,7 @@ Per-user wallets are now encrypted at rest in one hardened mode:
453
455
 
454
456
  Do not store `masterKey`, `privateKey`, or approval secrets in plugin config JSON or direct runtime environment variables.
455
457
  `AGENT_WALLET_MASTER_KEY`, `AGENT_WALLET_APPROVAL_SECRET`, and `SOLANA_AGENT_PRIVATE_KEY` are now provisioning-only inputs for installer/admin scripts and are rejected by the runtime.
458
+ The installer also provisions a sealed `wdk_evm_wallet_password` by default so greenfield EVM wallet setup can happen automatically on first switch.
456
459
  Create or update that sealed file with:
457
460
 
458
461
  ```bash
@@ -368,6 +368,17 @@ def resolve_solana_private_key() -> str:
368
368
  )
369
369
 
370
370
 
371
+ def resolve_evm_wallet_password() -> str:
372
+ """Resolve the local EVM vault password from env or the sealed secret store."""
373
+ direct = os.getenv("WDK_EVM_WALLET_PASSWORD", "").strip()
374
+ if direct:
375
+ return direct
376
+ return _resolve_sealed_secret(
377
+ "wdk_evm_wallet_password",
378
+ "evm_wallet_password",
379
+ )
380
+
381
+
371
382
  def use_encrypted_user_wallets() -> bool:
372
383
  """Per-user wallet files are always encrypted in the hardened runtime."""
373
384
  return True