@agentlayer.tech/wallet 0.1.90 → 0.1.92

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.
package/README.md CHANGED
@@ -1,554 +1,173 @@
1
1
  ![AgentLayer](logo+name.png)
2
2
 
3
-
4
3
  [![npm version](https://img.shields.io/npm/v/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet)
5
4
  [![npm downloads](https://img.shields.io/npm/dm/%40agentlayer.tech%2Fwallet)](https://www.npmjs.com/package/@agentlayer.tech/wallet)
6
5
  [![Node 24.x](https://img.shields.io/badge/node-24.x-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
7
6
  [![docs](https://img.shields.io/badge/docs-agent--layer.tech-blue)](https://docs.agent-layer.tech/)
8
7
 
9
- For Openclaw:
10
-
11
- ```bash
12
- npx @agentlayer.tech/wallet install --yes
13
- ```
14
-
15
- For Codex:
16
-
17
- ```bash
18
- npx @agentlayer.tech/wallet install --yes && npx @agentlayer.tech/wallet codex install --yes
19
- ```
20
-
21
- For Claude Code:
22
-
23
- ```bash
24
- npx @agentlayer.tech/wallet install --yes && npx @agentlayer.tech/wallet claude-code install --yes
25
- ```
26
-
27
- Or install entirely from inside the Claude Code CLI, via the plugin marketplace
28
- (no terminal/npx needed) — two commands, then restart:
29
-
30
- ```text
31
- /plugin marketplace add lopushok9/Agent-Layer
32
- /plugin install agent-wallet@agentlayer
33
- ```
34
-
35
- For Hermes:
8
+ ## Install
9
+ Run one command:
36
10
 
37
11
  ```bash
38
- npx @agentlayer.tech/wallet install --yes && npx @agentlayer.tech/wallet hermes install --yes
12
+ npx --yes @agentlayer.tech/wallet@latest install
39
13
  ```
14
+ It works with:
40
15
 
16
+ - Codex
17
+ - Claude Code
18
+ - OpenClaw
19
+ - Hermes
41
20
 
42
- AgentLayer is a beta local-first wallet and finance stack for agents.
43
-
44
- The repository includes:
45
-
46
- - `agent-wallet/` - the main wallet backend for AgentLayer
47
- - `.openclaw/` - the local AgentLayer bridge layer for the OpenClaw wallet integration
48
- - `hermes/` - optional Hermes Agent plugin bridge for the same wallet backend
49
- - `codex/` - optional Codex plugin bridge for the same wallet backend
50
- - `wdk-btc-wallet/` - the local Bitcoin wallet service
51
- - `wdk-evm-wallet/` - the local EVM wallet service
52
- - `provider-gateway/` - shared provider access for Solana RPC, Bags, and related finance reads
53
- - `mcp-server/` - the finance and crypto MCP layer
54
-
55
- The goal is simple:
56
-
57
- - keep wallet secrets local
58
- - let agents use constrained wallet capabilities
59
- - support real onchain flows without giving agents direct key ownership
60
-
61
- ## Beta
62
-
63
- This project is in beta.
64
-
65
- Do not treat it as a finished production wallet stack. Test every flow before relying on it.
66
-
67
- ## Quick install
68
-
69
- System prerequisites:
70
-
71
- - `python3`
72
- - `node` `24.x`
73
- - `npm`
74
-
75
- Install the local runtime:
76
-
77
- ```bash
78
- npx @agentlayer.tech/wallet install --yes
79
- ```
80
-
81
- Install the native OpenClaw plugin from ClawHub:
82
-
83
- ```bash
84
- openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
85
- ```
86
-
87
- The ClawHub package does not replace the npm installer. `npx @agentlayer.tech/wallet install --yes` installs the local runtime, Python backend, and helper services. ClawHub only installs the OpenClaw plugin surface that points at that runtime.
88
-
89
- Or install the CLI globally for shorter commands:
90
-
91
- ```bash
92
- npm install -g @agentlayer.tech/wallet
93
- wallet install --yes
94
- ```
21
+ You need:
95
22
 
96
- > **Why install globally?** Without the global install, `wallet` is not in your `PATH` and commands like `wallet update --yes` return `zsh: command not found: wallet`. The global install adds the `wallet` binary once; after that all `wallet <cmd>` shortcuts work. If you skip the global install, prefix every command with `npx @agentlayer.tech/wallet` instead (see the Updating section below).
23
+ - Node.js 24
24
+ - npm
25
+ - Python 3
97
26
 
98
- The CLI uses a versioned runtime layout:
27
+ AgentLayer detects the supported agent frameworks on your machine and asks
28
+ where you want to install the plugin.
99
29
 
100
- ```bash
101
- ~/.openclaw/agent-wallet-runtime/releases/<version> # immutable per-version snapshots
102
- ~/.openclaw/agent-wallet-runtime/current # symlink → active release
103
- ```
30
+ Restart the selected applications after installation.
104
31
 
105
- On first install, `--yes` generates local runtime secrets. The installer stores `master_key` and `approval_secret` in `~/.openclaw/sealed_keys.json`; the boot key needed to unlock that sealed bundle stays in the prompt-free local fallback by default. macOS Keychain is opt-in (`AGENT_WALLET_KEYSTORE_BACKEND=macos-keychain`) because probing it can open a system password dialog during install or startup.
32
+ ### Install automatically
106
33
 
107
- Useful CLI commands (require the global install above):
34
+ To install into every detected framework without questions:
108
35
 
109
36
  ```bash
110
- wallet status # show active runtime version and health
111
- wallet doctor # diagnose common config problems
112
- wallet update --yes # upgrade to the latest published version
113
- wallet update --yes --dry-run # preview the upgrade without applying it
114
- wallet rollback # revert to the previous release
115
- wallet hermes install --yes # (re)connect Hermes to the current runtime
116
- wallet codex install --yes # (re)connect Codex to the current runtime
37
+ npx --yes @agentlayer.tech/wallet@latest install --yes
117
38
  ```
118
39
 
119
- `wallet update --yes` fetches the latest npm package, installs it under `releases/<version>`, and flips the `current` symlink. Python and Node dependency snapshots are reused when the dependency fingerprint has not changed, so subsequent updates are fast. All frameworks that read from `current/` (Claude Code, Codex, Hermes) pick up the new code automatically on their next session start; OpenClaw requires a gateway restart to reload its TypeScript extension.
120
-
121
- ## Native OpenClaw plugin installs
122
-
123
- Use ClawHub when you want the plugin installed through OpenClaw:
40
+ ### Choose frameworks explicitly
124
41
 
125
42
  ```bash
126
- openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
43
+ npx --yes @agentlayer.tech/wallet@latest install --yes --hosts codex,claude-code
127
44
  ```
128
45
 
129
- Recommended order:
130
-
131
- 1. Install or update the local runtime with `npx @agentlayer.tech/wallet install --yes`.
132
- 2. Install the plugin package from ClawHub with `openclaw plugins install clawhub:...`.
133
- 3. Restart the OpenClaw gateway and enable/configure the plugin entry in `openclaw.json`.
46
+ Supported host names are:
134
47
 
135
- The `agent-wallet` ClawHub plugin checks the standard runtime path at:
136
-
137
- ```bash
138
- ~/.openclaw/agent-wallet-runtime/current/agent-wallet
48
+ ```text
49
+ codex
50
+ claude-code
51
+ openclaw
52
+ hermes
139
53
  ```
140
54
 
141
- If your runtime lives elsewhere, set `plugins.entries.agent-wallet.config.packageRoot` explicitly.
142
-
143
- Install from a local clone:
55
+ To see what AgentLayer detects:
144
56
 
145
57
  ```bash
146
- sh ./setup.sh
58
+ npx --yes @agentlayer.tech/wallet@latest detect --json
147
59
  ```
148
60
 
149
- ## Updating
61
+ ## Update
150
62
 
151
- If your installed CLI is `0.1.22` or newer, use:
63
+ If the `wallet` command is available:
152
64
 
153
65
  ```bash
154
- wallet update --yes --dry-run
155
66
  wallet update --yes
156
67
  ```
157
68
 
158
- If your installed CLI is older than `0.1.22`, or `wallet` is missing, use:
69
+ If the CLI is missing or outdated:
159
70
 
160
71
  ```bash
161
- npx --yes @agentlayer.tech/wallet@latest update --yes --dry-run
162
72
  npx --yes @agentlayer.tech/wallet@latest update --yes
163
73
  ```
164
74
 
165
- After updating, verify the active runtime:
166
-
167
- ```bash
168
- npx --yes @agentlayer.tech/wallet@latest status --verbose
169
- ```
170
-
171
- This flow keeps wallet files and `sealed_keys.json` in place, upgrades the runtime under `~/.openclaw/agent-wallet-runtime/releases/<version>`, and reuses shared Python and Node dependency snapshots when possible.
172
-
173
-
174
- ## Wallet capabilities through external services
175
-
176
- 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.
177
-
178
- ### x402 paid APIs
179
-
180
- The x402 bundle turns the wallet into a buyer for metered APIs and paid HTTP endpoints:
181
-
182
- - `x402_search_services` - search x402-paid services through discovery providers such as CDP Bazaar and Agentic Market without spending funds.
183
- - `x402_get_service_details` - resolve one discovered service or resource into a normalized detail payload before attempting payment.
184
- - `x402_preview_request` - make an unpaid request, detect `402 Payment Required`, and summarize payment terms and supported payment options.
185
- - `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.
186
-
187
- This gives the wallet a direct bridge from service discovery to paid API consumption while preserving approval-token checks before execution.
188
-
189
- ### LI.FI cross-chain routing
190
-
191
- The LI.FI bundle covers discovery, quote inspection, transfer tracking, and routed execution across Solana, Ethereum, and Base:
192
-
193
- - `get_lifi_supported_chains` - list the chains currently allowed for LI.FI routing in the wallet surface.
194
- - `get_lifi_quote` - fetch a read-only cross-chain quote before any execution planning.
195
- - `get_lifi_transfer_status` - inspect a routed transfer by transaction hash or LI.FI step id.
196
- - `swap_solana_lifi_cross_chain_tokens` - preview, prepare, or execute a Solana-origin cross-chain route into Ethereum or Base.
197
- - `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.
198
-
199
- ### Jupiter trading and yield
200
-
201
- On Solana, Jupiter-backed tools cover market pricing, swaps, and Jupiter Earn vault flows:
202
-
203
- - `get_solana_token_prices` - fetch current Solana token pricing through Jupiter.
204
- - `swap_solana_tokens` - preview, prepare, or execute a Jupiter-routed Solana token swap.
205
- - `get_jupiter_earn_tokens` - list Jupiter Earn vault assets currently supported on mainnet.
206
- - `get_jupiter_earn_positions` - inspect wallet positions in Jupiter Earn vaults.
207
- - `get_jupiter_earn_earnings` - fetch earnings for one or more Jupiter Earn positions.
208
- - `jupiter_earn_deposit` - preview, prepare, or execute a Jupiter Earn deposit.
209
- - `jupiter_earn_withdraw` - preview, prepare, or execute a Jupiter Earn withdrawal.
210
-
211
- ### Houdini private payouts
212
-
213
- For privacy-preserving Solana payout flows, the wallet exposes a Houdini-backed bundle:
214
-
215
- - `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`.
216
- - `continue_solana_private_swap` - continue a previously created Houdini order and submit the local funding transfer to the returned deposit address.
217
- - `get_solana_private_swap_status` - check Houdini status for an existing private payout.
218
- - `list_pending_solana_private_swaps` - list cached pending Houdini orders for the current OpenClaw session.
219
-
220
- This flow is intentionally optimized for `preview -> execute` rather than adding a no-op prepare step.
221
-
222
- ### Kamino lending
223
-
224
- Kamino integration gives the wallet a structured Solana lending surface:
225
-
226
- - `get_kamino_lend_markets` - list Kamino lending markets available on Solana mainnet.
227
- - `get_kamino_lend_market_reserves` - inspect reserve metrics for one Kamino market.
228
- - `get_kamino_lend_user_obligations` - inspect the wallet's obligations inside a Kamino market.
229
- - `get_kamino_lend_user_rewards` - fetch the wallet's Kamino rewards summary.
230
- - `get_kamino_open_positions` - aggregate all open Kamino positions across markets with loan details, reserve APYs, and rewards.
231
- - `kamino_lend_deposit` - preview, prepare, or execute a lending deposit.
232
- - `kamino_lend_withdraw` - preview, prepare, or execute a lending withdrawal.
233
- - `kamino_lend_borrow` - preview, prepare, or execute a borrow.
234
- - `kamino_lend_repay` - preview, prepare, or execute a repay.
235
-
236
- ### Flash Trade perps
237
-
238
- Flash Trade integration adds a managed perpetuals surface on Solana mainnet:
239
-
240
- - `get_flash_trade_markets` - list currently available Flash Trade markets.
241
- - `get_flash_trade_positions` - inspect the wallet's open Flash Trade positions.
242
- - `flash_trade_open_position` - preview, prepare, or execute a perp position open.
243
- - `flash_trade_close_position` - preview, prepare, or execute a perp position close.
244
-
245
- ### Bags launch
246
-
247
- Bags-backed tools currently cover token launch:
248
-
249
- - `launch_bags_token` - preview, prepare, or execute a Bags token launch with fee-share configuration.
250
-
251
- ### EVM DeFi integrations
252
-
253
- The EVM wallet surface includes named DeFi integrations on `ethereum` and `base`, without exposing arbitrary calldata execution.
75
+ An update refreshes the shared runtime and the frameworks already connected to
76
+ AgentLayer. It does not add a newly installed framework without your choice.
254
77
 
255
- Velora swap routing:
256
-
257
- - `get_evm_swap_quote` - fetch a read-only EVM swap quote.
258
- - `swap_evm_tokens` - preview, prepare, or execute a routed EVM token swap.
259
-
260
- Aave V3:
261
-
262
- - `get_evm_aave_account` - inspect the wallet's Aave account state.
263
- - `get_evm_aave_reserves` - fetch reserve data for supported Aave markets.
264
- - `get_evm_aave_positions` - inspect the wallet's open Aave positions.
265
- - `manage_evm_aave_position` - preview, prepare, or execute Aave position changes through the managed wallet flow.
266
-
267
- Lido:
268
-
269
- - `get_evm_lido_overview` - fetch Lido protocol overview data relevant to the wallet surface.
270
- - `get_evm_lido_positions` - inspect the wallet's Lido positions.
271
- - `get_evm_lido_withdrawal_requests` - inspect outstanding Lido withdrawal requests.
272
- - `manage_evm_lido_position` - preview, prepare, or execute a Lido staking position change.
273
- - `manage_evm_lido_withdrawal` - preview, prepare, or execute a Lido withdrawal management action.
274
-
275
- 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.
276
-
277
- For the default Solana flow, run the installer directly:
278
-
279
- ```bash
280
- npx @agentlayer.tech/wallet install --yes
281
- ```
282
-
283
- That installs the runtime, patches the OpenClaw plugin config, generates local
284
- runtime secrets when missing, and creates the first encrypted per-user Solana
285
- mainnet wallet. The agent receives the public address and guarded wallet tools,
286
- not the private key.
287
-
288
- BTC and EVM are separate host-side setup flows.
289
-
290
- Bitcoin:
291
-
292
- ```bash
293
- sh agent-wallet/scripts/setup_btc_wallet.sh
294
- ```
295
-
296
- EVM:
297
-
298
- ```bash
299
- sh agent-wallet/scripts/setup_evm_wallet.sh
300
- ```
301
-
302
- That host-side bootstrap can auto-start the local `wdk-evm-wallet` service, create or unlock the vault wallet, bind both `base` and `ethereum` for the same local user, and patch OpenClaw config to `backend=wdk_evm_local`.
303
-
304
- Advanced operators can still supply their own runtime provisioning secrets
305
- instead of using `--yes` auto-generation:
78
+ To update only selected frameworks:
306
79
 
307
80
  ```bash
308
- export AGENT_WALLET_BOOT_KEY="$(openssl rand -base64 32)"
309
- export AGENT_WALLET_MASTER_KEY="$(openssl rand -base64 32)"
310
- export AGENT_WALLET_APPROVAL_SECRET="$(openssl rand -base64 32)"
311
- npx @agentlayer.tech/wallet install --no-auto-secrets
81
+ npx --yes @agentlayer.tech/wallet@latest update --yes --hosts codex,claude-code
312
82
  ```
313
83
 
314
- If you prefer Python instead of `openssl`:
84
+ Preview an update without applying it:
315
85
 
316
86
  ```bash
317
- python3 -c "import secrets; print(secrets.token_urlsafe(32))"
318
- ```
319
-
320
- Run it three times and assign the outputs to:
321
-
322
- - `AGENT_WALLET_BOOT_KEY`
323
- - `AGENT_WALLET_MASTER_KEY`
324
- - `AGENT_WALLET_APPROVAL_SECRET`
325
-
326
- These variables are provisioning inputs only. Runtime secrets are sealed into
327
- `~/.openclaw/sealed_keys.json`; normal runtime execution should use
328
- `AGENT_WALLET_BOOT_KEY` or `AGENT_WALLET_BOOT_KEY_FILE`, not direct
329
- `AGENT_WALLET_MASTER_KEY` / `AGENT_WALLET_APPROVAL_SECRET` env loading.
330
-
331
- ## Connect the MCP server
332
-
333
- ```json
334
- {
335
- "mcpServers": {
336
- "agent-layer": {
337
- "url": "https://agent-layer-production-852f.up.railway.app/mcp"
338
- }
339
- }
340
- }
341
- ```
342
-
343
- ## Connect Hermes Agent
344
-
345
- OpenClaw remains the primary local environment, but the repo also ships an optional Hermes Agent bridge at:
346
-
347
- ```bash
348
- hermes/plugins/agent_wallet
349
- ```
350
-
351
- It exposes a thin bridge, not a separate wallet implementation:
352
-
353
- - `agent_wallet_tools`
354
- - `agent_wallet_invoke`
355
- - `agent_wallet_approve`
356
- - `agent_wallet_evm_status`
357
- - `agent_wallet_evm_setup`
358
-
359
- Install it by symlinking the plugin directory into Hermes:
360
-
361
- ```bash
362
- npx @agentlayer.tech/wallet hermes install --yes
363
- ```
364
-
365
- That command installs the Hermes plugin, runs `hermes plugins enable agent-wallet`, writes non-secret runtime paths into `~/.hermes/.env`, and points Hermes at a local boot-key file. Secrets stay in the protected OpenClaw runtime paths, especially `~/.openclaw/sealed_keys.json`; do not put wallet secrets into Hermes tool config.
366
-
367
- ## What you get after install
368
-
369
- If you install through npm, the runtime is extracted under:
370
-
371
- ```bash
372
- ~/.openclaw/agent-wallet-runtime/current
373
- ```
374
-
375
- The installer then:
376
-
377
- - creates `agent-wallet/.env` from `agent-wallet/.env.example` if it does not exist
378
- - creates `agent-wallet/.runtime-venv` and installs the Python backend
379
- - installs Node dependencies for `wdk-btc-wallet`, `wdk-evm-wallet`, and `flash-sdk-bridge`
380
- - creates a minimal `~/.openclaw/openclaw.json` if one does not exist
381
- - if the required secrets are already present, writes or updates `~/.openclaw/sealed_keys.json`
382
- - if the required secrets are already present, patches `~/.openclaw/openclaw.json` to load the `agent-wallet` extension and point it at the installed runtime
383
- - `wallet hermes install --yes` additionally connects Hermes Agent to the same runtime without copying wallet tools or policy
384
-
385
- When the installer reaches the final config step, the default plugin config is:
386
-
387
- - `backend=solana_local`
388
- - `network=mainnet`
389
-
390
- For a fresh Solana install, `wallet install --yes` also provisions the first local mainnet
391
- wallet for the configured local `userId`. The wallet secret stays encrypted under
392
- `~/.openclaw/users/.../wallets/`; the agent-facing surface only receives the public
393
- address and guarded wallet tools.
394
-
395
- ## What is not done automatically
396
-
397
- The installer does not:
398
-
399
- - create a BTC wallet
400
- - unlock a BTC wallet
401
- - create an EVM wallet
402
- - unlock an EVM wallet
403
- - start the local `wdk-btc-wallet` service
404
- - start the local `wdk-evm-wallet` service
405
- - expose seed phrases to the agent
406
- - install `python3`, `node`, or `npm` for you
407
-
408
- For existing Solana installs, the runtime keeps the current identity precedence:
409
-
410
- - read-only mode: `SOLANA_AGENT_PUBLIC_KEY`
411
- - signing mode: a sealed `private_key` or `SOLANA_AGENT_KEYPAIR_PATH`
412
- - otherwise: the encrypted per-user local wallet created by onboarding
413
-
414
- Optional private Solana payout routing is also available through Houdini. To enable it, add the Houdini partner credentials to the wallet runtime:
415
-
416
- - `HOUDINI_API_KEY`
417
- - `HOUDINI_API_SECRET`
418
- - `HOUDINI_USER_IP`
419
-
420
- The first supported flow is intentionally narrow: same-token private Solana payouts (`SOL->SOL` and `USDC->USDC`) through the existing preview/prepare/execute safety model. The runtime binds execute to the approved Houdini `quoteId`, creates a single private exchange, and then sends the exact deposit locally from the wallet. That removes the extra Solana batch-tx relay step and keeps signing local.
421
-
422
- For production, prefer placing the Houdini partner secrets on `provider-gateway` and exposing only the authenticated Houdini relay endpoints to `agent-wallet`. That keeps `HOUDINI_API_KEY` and `HOUDINI_API_SECRET` out of end-user runtimes while preserving local signing.
423
-
424
- ## BTC setup
425
-
426
- The BTC path already has a one-command host bootstrap wrapper:
427
-
428
- ```bash
429
- sh agent-wallet/scripts/setup_btc_wallet.sh
430
- ```
431
-
432
- That flow:
433
-
434
- - prompts for `user-id`
435
- - prompts for `mainnet`, `testnet`, or `regtest`
436
- - defaults to `http://127.0.0.1:8080`
437
- - can auto-start `wdk-btc-wallet/run-local.sh` if the local service is not already healthy
438
- - creates or unlocks the local BTC wallet binding
439
- - patches OpenClaw config to `backend=wdk_btc_local`
440
-
441
- BTC setup only supports localhost service URLs. The local BTC service is protected by a bearer token stored at:
442
-
443
- ```bash
444
- ~/.openclaw/wdk-btc-wallet/local-auth-token
87
+ wallet update --yes --dry-run
445
88
  ```
446
89
 
447
- If you need to reveal the BTC seed phrase later, that remains a host-side step:
90
+ ## Check the installation
448
91
 
449
92
  ```bash
450
- sh agent-wallet/scripts/reveal_btc_seed.sh
93
+ wallet status
94
+ wallet doctor
451
95
  ```
452
96
 
453
- ## EVM setup
454
-
455
- The EVM runtime is installed by `setup.sh`, and the host-side onboarding now has the same one-command shape as BTC:
97
+ If the global CLI is not installed:
456
98
 
457
99
  ```bash
458
- sh agent-wallet/scripts/setup_evm_wallet.sh
100
+ npx --yes @agentlayer.tech/wallet@latest status
101
+ npx --yes @agentlayer.tech/wallet@latest doctor
459
102
  ```
460
103
 
461
- That flow:
462
-
463
- - prompts for `user-id`
464
- - prompts for `ethereum`, `base`, `sepolia`, or `base-sepolia`
465
- - defaults to `http://127.0.0.1:8081`
466
- - can auto-start `wdk-evm-wallet/run-local.sh` if the local service is not already healthy
467
- - creates or unlocks the local EVM wallet binding
468
- - also binds the paired EVM network by default: `ethereum <-> base`, `sepolia <-> base-sepolia`
469
- - patches OpenClaw config to `backend=wdk_evm_local`
104
+ After an install or update, restart the connected agent applications when
105
+ `wallet status` shows `restart_required: true`.
470
106
 
471
- You can still use the lower-level CLI if needed:
107
+ ## Common commands
472
108
 
473
109
  ```bash
474
- printf '%s\n' 'your-local-evm-password' | \
475
- agent-wallet/.venv/bin/python -m agent_wallet.openclaw_cli evm-wallet-create \
476
- --user-id your-user-id \
477
- --password-stdin \
478
- --config-json '{"backend":"wdk_evm_local","network":"base","wdkEvmServiceUrl":"http://127.0.0.1:8081"}'
110
+ wallet detect --json
111
+ wallet status
112
+ wallet doctor
113
+ wallet update --yes
114
+ wallet rollback
479
115
  ```
480
116
 
481
- Important EVM notes:
117
+ ## What AgentLayer provides
482
118
 
483
- - only localhost service URLs are supported for the OpenClaw EVM flow
484
- - the local EVM service uses a bearer token at `~/.openclaw/wdk-evm-wallet/local-auth-token`
485
- - the agent-facing EVM surface is intentionally narrow: balances, fee rates, receipts, transfers, Velora swaps, Aave V3 account/reserve/position flows, and Lido staking/withdrawal flows
486
- - Velora swap and Aave V3 support are currently limited to `ethereum` and `base`
487
- - Lido support is currently limited to `ethereum` and exposes read-only staking APR data from Lido's public API in the overview response
119
+ AgentLayer connects supported agents to one local wallet runtime. The agent can:
488
120
 
489
- ## Solana notes
121
+ - view balances and portfolio positions
122
+ - send and receive supported assets
123
+ - swap tokens
124
+ - use supported DeFi services
125
+ - access paid APIs through x402
126
+ - work with Solana, Ethereum, Base, and Bitcoin
490
127
 
491
- The installer defaults the plugin to `solana_local` on `devnet`.
128
+ Read operations are available directly. Operations that move funds remain
129
+ protected by wallet policy and approval checks.
492
130
 
493
- The Solana runtime uses hardened local secrets:
494
131
 
495
- - `AGENT_WALLET_BOOT_KEY` is required by the runtime
496
- - `master_key` and `approval_secret` should live in `~/.openclaw/sealed_keys.json`
497
- - `AGENT_WALLET_MASTER_KEY` and `AGENT_WALLET_APPROVAL_SECRET` are provisioning inputs for installer/admin flows, not long-term runtime env
132
+ ## Claude Code marketplace
498
133
 
499
- Read-only Solana mode:
134
+ Claude Code users can also install the plugin from its marketplace:
500
135
 
501
- ```bash
502
- export SOLANA_AGENT_PUBLIC_KEY='...'
136
+ ```text
137
+ /plugin marketplace add lopushok9/Agent-Layer
138
+ /plugin install agent-wallet@agentlayer
503
139
  ```
504
140
 
505
- Signing Solana mode can use either:
506
-
507
- - a sealed `private_key` stored in `sealed_keys.json`
508
- - `SOLANA_AGENT_KEYPAIR_PATH`
509
-
510
- The default shared path already includes:
141
+ Restart Claude Code after installation.
511
142
 
512
- - hosted provider-gateway defaults
513
- - shared Solana RPC path unless you override it
143
+ ## OpenClaw plugin
514
144
 
515
- You only need to bring your own RPC if you want to override the default route. Supported override paths are:
516
-
517
- - `SOLANA_RPC_URL`
518
- - `SOLANA_RPC_URLS`
519
- - `ALCHEMY_API_KEY`
520
- - `HELIUS_API_KEY`
521
-
522
- The legacy global keypair auto-create flag still exists for compatibility, but normal
523
- OpenClaw onboarding should use the encrypted per-user wallet path created by the installer:
145
+ OpenClaw users can also install the native plugin from ClawHub:
524
146
 
525
147
  ```bash
526
- SOLANA_AUTO_CREATE_WALLET=false
148
+ openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
527
149
  ```
528
150
 
529
- ## Security model
530
-
531
- The core rule is:
532
-
533
- the agent gets wallet capabilities, not wallet ownership.
151
+ The universal npm installer is still required to prepare the local wallet
152
+ runtime.
534
153
 
535
- That means:
154
+ ## Security
536
155
 
537
- - secret material stays local
538
- - signing stays in the wallet layer
539
- - risky writes require approval
540
- - BTC and EVM password-gated wallet operations remain host-side
156
+ The agent receives wallet capabilities, not wallet keys.
541
157
 
542
- ## License and community use
158
+ - Keys and signing stay on the user's machine.
159
+ - Wallet secrets are encrypted locally.
160
+ - Updates preserve existing wallets and identities.
161
+ - Transactions remain subject to wallet policy and approvals.
543
162
 
544
- This repository is public and source-available under the `PolyForm Small Business License 1.0.0`.
163
+ On macOS, AgentLayer uses the login Keychain by default. macOS may ask for
164
+ Keychain access during an install or update. Approve it only when you initiated
165
+ the AgentLayer command.
545
166
 
546
- If you are an individual developer, researcher, student, security reviewer, or hobbyist, you can:
167
+ Keep a secure offline copy of your recovery key.
547
168
 
548
- - read and audit the code
549
- - fork the repo
550
- - run it locally
551
- - modify it for yourself
552
- - open issues and send pull requests
169
+ ## License
553
170
 
554
- If you are using the project for a company, the license allows use for small businesses covered by the PolyForm thresholds. If you need rights beyond that, reach out for a separate commercial license.
171
+ This repository is available under the PolyForm Small Business License 1.0.0.
172
+ Individuals, researchers, students, security reviewers, hobbyists, and eligible
173
+ small businesses may use and modify it under the terms of that license.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.90
1
+ 0.1.92