You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Password requirements: at least 8 characters, including uppercase, lowercase, numbers, and special characters.
28
28
29
+
:::caution Shell history risk
30
+
Passing `-p` inline records the password in your terminal's history file. For production wallets, prefer interactive mode (`agent-wallet start` without `-p`) or set `AGENT_WALLET_PASSWORD` as an environment variable — see [Non-Interactive Execution](#non-interactive-execution-for-automation--background-services).
### Method B: Local Password Cache (True "Set and Forget")
162
+
### Method B: Local Password Cache (Convenience vs. Security Trade-off)
159
163
160
-
The ultimate convenience solution. After running a command once with the `--save-runtime-secrets` flag, the password is permanently cached in a local file (`~/.agent-wallet/runtime_secrets.json`). The next time you run any signing command, the system automatically reads from the cache. No need for inline passwords or environment variables:
164
+
After running a command once with the `--save-runtime-secrets` flag, the password is permanently cached in a local file (`~/.agent-wallet/runtime_secrets.json`). The next time you run any signing command, the system automatically reads from the cache. No need for inline passwords or environment variables:
161
165
162
166
```bash
163
167
agent-wallet sign msg "Hello" -n tron -p "Abc12345!" --save-runtime-secrets
164
168
```
165
169
166
-
:::danger Security Warning
167
-
`runtime_secrets.json`stores your master password in **plaintext**. Any program with access to your file system (malicious plugins, AI agents, automation scripts) can read it directly. Only use this feature if you fully trust the runtime environment, and make sure this file is never committed to git or synced to the cloud.
170
+
:::danger This disables the dual-lock protection
171
+
Caching the password next to the wallet file means a single file system compromise grants full access to your funds — defeating Agent-wallet's core "physical file + password separation" security model. **Only use this for throwaway test wallets.**
172
+
173
+
`runtime_secrets.json`stores your master password in **plaintext**. Any program with access to your file system (malicious plugins, AI agents, automation scripts) can read it directly. Make sure this file is never committed to git or synced to the cloud.
168
174
169
175
The tool automatically sets restrictive file permissions (`600` — owner-read-only) on creation. If you've manually moved or copied the file, verify the permissions: `chmod 600 ~/.agent-wallet/runtime_secrets.json`.
Copy file name to clipboardExpand all lines: docs/Agent-Wallet/Developer/SDK-Cookbook.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ Before running any example below, make sure you have:
21
21
22
22
1. Installed the Agent-wallet SDK (see [SDK Guide](./SDK-Guide.md))
23
23
2. Initialized a local wallet via the CLI, or configured static mode environment variables
24
-
3. Set `AGENT_WALLET_PASSWORD` (local `local_secure` mode) or `AGENT_WALLET_PRIVATE_KEY` (static mode)
24
+
3. Set `AGENT_WALLET_PASSWORD` (local `local_secure` mode — strongly recommended)
25
+
26
+
:::danger Avoid static mode (`AGENT_WALLET_PRIVATE_KEY`) for real funds
27
+
Static mode stores your private key as plaintext in an environment variable — the exact exposure Agent-wallet's `local_secure` mode is designed to prevent. Only use `AGENT_WALLET_PRIVATE_KEY` in fully isolated, offline test environments with throwaway keys. For mainnet operations, always use `AGENT_WALLET_PASSWORD` with your local encrypted safe.
Copy file name to clipboardExpand all lines: docs/Agent-Wallet/FAQ.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,9 @@ No limit. You can create separate wallets for different AI agents, different cha
76
76
|**If an agent reads the file**| ✅ Key is inaccessible | ❌ Stolen instantly |
77
77
|**Use case**| ✅ All scenarios | ⚠️ Fully isolated dev environments only |
78
78
79
-
**Always use `local_secure`** unless you're 100% certain no other agent is running on that machine.
79
+
:::danger `raw_secret` exposes your private key as plaintext
80
+
`raw_secret` stores your key unencrypted — the exact exposure `local_secure` mode is designed to prevent. If any other process on your machine can read files, your key can be stolen instantly. **Always use `local_secure`** unless you're 100% certain no other agent is running on that machine and it's a fully isolated, offline test environment.
81
+
:::
80
82
81
83
### What values does the `network` parameter accept?
**Step 1:** Open `~/.bashrc` in an editor. Add the following line at the end of the file (replace the content inside the single quotes with your actual password):
1.**Verify password**: Run `echo $AGENT_WALLET_PASSWORD` to confirm the variable is set correctly.
137
137
2.**Check wallet directory**: Verify `~/.agent-wallet/` exists and contains wallet files. If you used a custom directory, ensure `AGENT_WALLET_DIR` points to the correct path.
138
-
3.**If password is lost**: You'll need to re-initialize the wallet. See the [Agent-Wallet Quick Start](../../../Agent-Wallet/QuickStart) and [Agent-Wallet FAQ](../../../Agent-Wallet/FAQ) for details.
138
+
3.**If password is lost**: You'll need to re-initialize the wallet. Run `agent-wallet reset` to wipe and start over — see [CLI Reference → Reset](../../../Agent-Wallet/Developer/CLI-Reference#agent-wallet-reset-reset-all-data) and [Agent-Wallet FAQ](../../../Agent-Wallet/FAQ) for details.
3.**Reinitialize Wallet** — see [Agent-Wallet Quick Start](../../../Agent-Wallet/QuickStart) for re-initialization instructions.
274
+
3.**Reinitialize Wallet** — run `agent-wallet reset` to wipe and start over. See [CLI Reference → Reset](../../../Agent-Wallet/Developer/CLI-Reference#agent-wallet-reset-reset-all-data) for details.
Copy file name to clipboardExpand all lines: docs/McpServer-Skills/MCP/TRONMCPServer/FAQ.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ If the server reports an invalid private key at startup, it's usually a format i
93
93
94
94
`AGENT_WALLET_PASSWORD` must exactly match the master password set during wallet initialization. Verify that the wallet directory exists (`ls ~/.agent-wallet/`) and that `AGENT_WALLET_DIR` points to the correct path if you used a custom directory.
95
95
96
-
If the password is lost, you'll need to re-initialize— see the [Agent-Wallet Quick Start](../../../Agent-Wallet/QuickStart) and [Agent-Wallet FAQ](../../../Agent-Wallet/FAQ) for details.
96
+
If the password is lost, you'll need to re-initialize. Run `agent-wallet reset` to wipe and start over — see [CLI Reference → Reset](../../../Agent-Wallet/Developer/CLI-Reference#agent-wallet-reset-reset-all-data) and [Agent-Wallet FAQ](../../../Agent-Wallet/FAQ) for details.
0 commit comments