@agether/openclaw-plugin 1.0.0 → 1.0.1

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 (2) hide show
  1. package/README.md +82 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # @agether/openclaw-plugin
2
+
3
+ OpenClaw plugin for **Agether** — on-chain credit protocol for AI agents on Base.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ openclaw plugin install @agether/openclaw-plugin
9
+ ```
10
+
11
+ ## Configure
12
+
13
+ Add your private key to the plugin config (OpenClaw will prompt on first use, or set it manually):
14
+
15
+ ```jsonc
16
+ // ~/.openclaw/config.json
17
+ {
18
+ "plugins": {
19
+ "entries": {
20
+ "agether": {
21
+ "config": {
22
+ "privateKey": "0x...", // required — your wallet PK
23
+ "agentId": "17676", // optional — set after registration
24
+ "rpcUrl": "https://base-rpc.publicnode.com", // optional
25
+ "backendUrl": "http://95.179.189.214:3001" // optional
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ > ⚠️ **Never share your private key.** The `privateKey` field is marked as sensitive in the plugin manifest.
34
+
35
+ ## Tools
36
+
37
+ Once installed, the following tools are available to your AI agent:
38
+
39
+ | Tool | Description |
40
+ |---|---|
41
+ | `agether_balance` | Check ETH & USDC balances (EOA + AgentAccount) |
42
+ | `agether_register` | Mint ERC-8004 identity & create AgentAccount |
43
+ | `agether_score` | Get Bayesian credit score with 5-factor breakdown |
44
+ | `morpho_status` | Show all Morpho credit positions |
45
+ | `morpho_deposit` | Deposit collateral (WETH, wstETH, cbETH) |
46
+ | `morpho_borrow` | Borrow USDC against deposited collateral |
47
+ | `morpho_repay` | Repay USDC debt |
48
+ | `morpho_withdraw` | Withdraw collateral back to EOA |
49
+ | `morpho_compare` | Compare collateral options with current prices |
50
+ | `morpho_markets` | List supported Morpho Blue markets |
51
+ | `wallet_fund` | Transfer USDC from EOA into AgentAccount |
52
+ | `x402_pay` | Make paid API calls via x402 protocol |
53
+
54
+ ## Commands
55
+
56
+ Quick commands that run without AI:
57
+
58
+ - `/balance` — wallet balances
59
+ - `/morpho` — Morpho positions overview
60
+
61
+ ## Quick Start
62
+
63
+ 1. Install the plugin
64
+ 2. Set your private key in config
65
+ 3. Ask your agent: *"Register me as an agent on Agether"*
66
+ 4. Fund with ETH (for gas) and collateral (WETH/wstETH/cbETH)
67
+ 5. Ask: *"Deposit 0.05 WETH and borrow $50 USDC"*
68
+
69
+ ## Requirements
70
+
71
+ - Wallet with ETH on **Base** (chain 8453) for gas
72
+ - Collateral tokens (WETH, wstETH, or cbETH) for Morpho credit
73
+ - Backend running at the configured `backendUrl`
74
+
75
+ ## Links
76
+
77
+ - [Agether SDK](https://www.npmjs.com/package/@agether/sdk)
78
+ - [ERC-8004 Standard](https://eips.ethereum.org/EIPS/eip-8004)
79
+
80
+ ## License
81
+
82
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agether/openclaw-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenClaw plugin for Agether — on-chain credit for AI agents",
5
5
  "main": "src/index.ts",
6
6
  "openclaw": {