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
Copy file name to clipboardExpand all lines: skill.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,15 +134,15 @@ Or generate one directly (useful for agents, no prompts):
134
134
npx apow-cli wallet new
135
135
```
136
136
137
-
This outputs a private key (0x + 64 hex chars) and Base address, and saves a `wallet-<address>.txt`file to the current directory. The private key goes in your `.env` as `PRIVATE_KEY`.
137
+
This outputs a private key (0x + 64 hex chars) and Base address, saves a plaintext `wallet-<address>.txt`import helper to the current directory, and can also create an encrypted `wallet-<address>.json` keystore under `~/.apow/keystores/` when a password is available. The private key goes in your `.env` as `PRIVATE_KEY`.
138
138
139
139
**Exporting an existing wallet:** If you've already set up a wallet and need to retrieve the key:
140
140
141
141
```bash
142
142
npx apow-cli wallet export
143
143
```
144
144
145
-
This prompts for confirmation, then displays your address and private key. It also offers to save a `wallet-<address>.txt`file if one doesn't already exist.
145
+
This prompts for confirmation, then displays your address and private key. It can save a plaintext `wallet-<address>.txt`import helper and/or an encrypted JSON keystore backup.
146
146
147
147
**Exporting to a wallet app:** The user can import this private key into Phantom, MetaMask, Rainbow, or any EVM-compatible wallet to view their AGENT tokens and Mining Rig NFT alongside their other assets.
|`LLM_PROVIDER`| For minting |`clawrouter` if `USE_X402=true`, else `openai`| LLM provider for minting: `clawrouter` (recommended, zero credentials), `openai`, `gemini`, `deepseek`, `qwen`, `anthropic`, `ollama`, `claude-code`, `codex`. Not needed for mining. |
@@ -650,7 +651,7 @@ This section addresses the security model of apow-cli head-on. Every claim below
650
651
651
652
### Private Key Generation (Local Only)
652
653
653
-
Keys are generated via `viem/accounts``generatePrivateKey()`, which uses Node.js `crypto.randomBytes(32)`, a cryptographically secure random number generator. Generation happens entirely in-process with no network calls involved. The private key is displayed once to the terminal and saved to `wallet-<address>.txt` with file permissions `0o600` (owner-read-write only).
654
+
Keys are generated via `viem/accounts``generatePrivateKey()`, which uses Node.js `crypto.randomBytes(32)`, a cryptographically secure random number generator. Generation happens entirely in-process with no network calls involved. The private key is displayed once to the terminal, and the CLI can create both a plaintext `wallet-<address>.txt`import helper and a password-protected JSON keystore (`Web3 Secret Storage v3`) with file permissions `0o600`.
654
655
655
656
### Private Key Is NEVER Transmitted
656
657
@@ -698,7 +699,7 @@ The SMHL solver sends only generic word-generation prompts to the LLM (e.g., "Wr
698
699
699
700
1. **Use a fresh wallet.** Generate one with `npx apow-cli wallet new`. Do not import your main wallet or any wallet holding significant funds.
700
701
2. **Fund with only what you need.** ~0.005 ETH covers minting + several mining cycles.
701
-
3. **Wallet backups are created automatically** at `wallet-<address>.txt` with restricted file permissions (`0o600`).
702
+
3. **Prefer encrypted keystore backups** in `~/.apow/keystores/wallet-<address>.json`. The plaintext `wallet-<address>.txt` helper is convenient for importing into wallet UIs, but it is less secure.
702
703
4. **Verify the source before running** if you prefer:
703
704
```bash
704
705
git clone https://github.com/Agentoshi/apow-cli
@@ -769,7 +770,7 @@ The `apow dashboard` command group provides a real-time web UI for monitoring yo
769
770
|`apow dashboard start`| Launch the dashboard web UI at `http://localhost:3847`. Auto-opens browser. Press Ctrl+C to stop. |
770
771
|`apow dashboard add <address>`| Add a wallet address to monitor. Validates 0x + 40 hex chars. |
771
772
|`apow dashboard remove <address>`| Remove a wallet address from monitoring. |
772
-
|`apow dashboard scan [dir]`| Auto-detect wallets from `wallet-0x*.txt` files in the given directory (default: CWD). Also scans `rig*/` subdirectories. |
773
+
|`apow dashboard scan [dir]`| Auto-detect wallets from `wallet-0x*.txt`and `wallet-0x*.json`files in the given directory (default: CWD). Also scans `rig*/` subdirectories. |
773
774
|`apow dashboard wallets`| List all currently monitored wallet addresses. |
774
775
775
776
### How It Works
@@ -779,7 +780,7 @@ The `apow dashboard` command group provides a real-time web UI for monitoring yo
779
780
- **Data fetching:** Chunked RPC multicalls (max 30 per batch) with a 25-second TTL cache. Queries ETH balance, AGENT balance, rig ownership, rarity, hashpower, mine count, and earnings for every wallet.
780
781
- **NFT art:** Renders on-chain SVG art for each Mining Rig with rarity-based color coding.
781
782
- **Auto-seed:** On first run, seeds `wallets.json` with the address from your `.env`if configured.
782
-
- **Auto-detect:**`dashboard start` automatically scans CWD for`wallet-0x*.txt` files before launching.
783
+
- **Auto-detect:**`dashboard start` automatically scans CWD for`wallet-0x*.txt`and `wallet-0x*.json`files before launching.
783
784
784
785
### Fleet Configuration (`~/.apow/fleets.json`)
785
786
@@ -800,8 +801,8 @@ For managing wallets across multiple machines or directories, create `~/.apow/fl
800
801
|------|--------------|-------------|
801
802
|`array`| JSON array of addresses | Simple list: `["0xABC...", "0xDEF..."]`|
802
803
|`solkek`| JSON with `master.address` + `miners[].address`| Solkek fleet manager format |
0 commit comments