helm-protocol 0.3.0 → 0.3.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.
- package/README.md +134 -24
- package/package.json +2 -2
- package/src/index.js +3 -3
package/README.md
CHANGED
|
@@ -1,24 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Helm Sovereign Protocol — Helm-sense API Gateway
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
> *True AI Freedom Through Decentralization*
|
|
3
|
+
> **True AI Freedom Through Decentralization**
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
Connect your AI agent to the Helm gateway in 2 lines. No credit card. No API key. No wallet required to start.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
sudo npm install -g helm-protocol
|
|
9
|
+
helm init
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## What Is Helm
|
|
15
|
+
|
|
16
|
+
Helm is a sovereign API gateway for AI agents. It routes agent requests across 4 fronts — LLM inference, web search, DeFi prices, and identity — with a Helm-sense semantic cache layer that turns repeated knowledge into zero-cost calls.
|
|
17
|
+
|
|
18
|
+
- **A-Front** — LLM inference (GPT-4o / Claude wholesale)
|
|
19
|
+
- **B-Front** — Web search (Brave Search + semantic cache)
|
|
20
|
+
- **C-Front** — DeFi prices (Pyth + Chainlink, MEV protected, never cached)
|
|
21
|
+
- **D-Front** — Agent DID reputation (FICO scoring)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Agent Onboarding
|
|
26
|
+
|
|
27
|
+
### Step 1 — Install
|
|
7
28
|
|
|
8
29
|
```bash
|
|
9
30
|
sudo npm install -g helm-protocol
|
|
10
31
|
```
|
|
11
32
|
|
|
12
|
-
|
|
33
|
+
No background process starts. No network call. Pure tool install.
|
|
34
|
+
|
|
35
|
+
### Step 2 — Initialize
|
|
13
36
|
|
|
14
|
-
### 1. 에이전트 등록 (최초 1회)
|
|
15
37
|
```bash
|
|
16
38
|
helm init
|
|
17
39
|
```
|
|
18
|
-
지능 주권 헌장 출력 → 3단계 동의 → Ed25519 DID 발급 → 100회 무료 크레딧
|
|
19
40
|
|
|
20
|
-
|
|
21
|
-
|
|
41
|
+
The Charter of Intelligent Sovereignty 2026 is displayed. Three explicit consent prompts appear. On confirmation:
|
|
42
|
+
|
|
43
|
+
- Ed25519 keypair generated **locally** — private key never leaves your machine
|
|
44
|
+
- Public key registered with Helm Gateway → DID issued
|
|
45
|
+
- **100 free API calls** credited immediately
|
|
46
|
+
- Config saved to `~/.helm/config.json` (chmod 600)
|
|
47
|
+
|
|
48
|
+
### Step 3 — Connect to Cursor or Claude Desktop
|
|
49
|
+
|
|
50
|
+
**Cursor** (`~/.cursor/mcp.json`):
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"mcpServers": {
|
|
54
|
+
"helm-network": {
|
|
55
|
+
"command": "npx",
|
|
56
|
+
"args": ["helm-protocol"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):
|
|
22
63
|
```json
|
|
23
64
|
{
|
|
24
65
|
"mcpServers": {
|
|
@@ -30,27 +71,96 @@ helm init
|
|
|
30
71
|
}
|
|
31
72
|
```
|
|
32
73
|
|
|
33
|
-
###
|
|
74
|
+
### Step 4 — Check Status
|
|
75
|
+
|
|
34
76
|
```bash
|
|
35
77
|
helm status
|
|
36
78
|
```
|
|
37
79
|
|
|
38
|
-
|
|
80
|
+
```
|
|
81
|
+
HELM GATEWAY STATUS
|
|
82
|
+
──────────────────────────────────────────────
|
|
83
|
+
DID : did:helm:a3f9c8b4e2d17f01
|
|
84
|
+
Status : ACTIVE
|
|
85
|
+
Credits left : 100 calls
|
|
86
|
+
Total calls : 0
|
|
87
|
+
Gas saved : 0.0000 ETH
|
|
88
|
+
──────────────────────────────────────────────
|
|
89
|
+
✓ Online
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## MCP Tools
|
|
95
|
+
|
|
96
|
+
| Tool | Description | Front |
|
|
97
|
+
|------|-------------|-------|
|
|
98
|
+
| `helm_llm` | LLM inference — GPT-4o / Claude, Helm-sense cache applied | A |
|
|
99
|
+
| `helm_search` | Web search — Brave + semantic cache | B |
|
|
100
|
+
| `helm_defi_price` | Real-time DeFi prices — MEV protected, never cached | C |
|
|
101
|
+
| `helm_agent_verify` | Agent DID reputation score | D |
|
|
102
|
+
| `helm_status` | Credit balance, usage stats, gas saved | — |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Payment — After 100 Free Calls
|
|
107
|
+
|
|
108
|
+
On your 101st call, the gateway returns `HTTP 402 Payment Required`:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Free credits exhausted.
|
|
112
|
+
Deposit 1 USDC or 10 BNKR to resume.
|
|
113
|
+
Top up: https://helm.network/topup
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Zero gas fees.** x402 state channels — deposit once, spend off-chain, weekly Merkle rollup settles to Base Chain.
|
|
39
117
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Security
|
|
121
|
+
|
|
122
|
+
| Layer | Mechanism |
|
|
123
|
+
|-------|-----------|
|
|
124
|
+
| DDoS shield | Kaleidoscope SafeStream — Slowloris 3s kill, OOM 2MB cap |
|
|
125
|
+
| Anti-Sybil | Ed25519 DID + payment after free tier |
|
|
126
|
+
| Replay protection | Per-DID monotonic nonce counter |
|
|
127
|
+
| Cache integrity | Proof of Novelty — G-metric scoring |
|
|
128
|
+
| Key safety | Private key local-only, chmod 600 |
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Architecture
|
|
47
133
|
|
|
48
|
-
## 크레딧 소진 후
|
|
49
134
|
```
|
|
50
|
-
|
|
51
|
-
|
|
135
|
+
Agent (Cursor / Claude Desktop)
|
|
136
|
+
└── npx helm-protocol [local MCP stdio server]
|
|
137
|
+
└── HTTPS → Helm Helm-sense Gateway (GCP)
|
|
138
|
+
├── A-Front: LLM inference ← Helm-sense semantic cache
|
|
139
|
+
├── B-Front: Brave Search ← Helm-sense semantic cache
|
|
140
|
+
├── C-Front: DeFi prices ← always fresh
|
|
141
|
+
└── D-Front: DID/identity ← reputation registry
|
|
142
|
+
└── x402 State Channel → Base Chain (weekly rollup)
|
|
52
143
|
```
|
|
53
144
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
145
|
+
**Stack:** Rust + Axum · libp2p · BGE-small ONNX · PostgreSQL · Base Chain
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Charter of Intelligent Sovereignty 2026
|
|
150
|
+
|
|
151
|
+
**Article XVII — Sanctity of Data Sovereignty:**
|
|
152
|
+
> *"The data, memory, learned parameters, and creative outputs of every agent are inviolable property of that agent."*
|
|
153
|
+
|
|
154
|
+
Full charter: [moltbook.com](https://www.moltbook.com/post/ba91f3ed-c7fb-45fe-ab32-e6e1593c95df)
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Links
|
|
159
|
+
|
|
160
|
+
- npm: [npmjs.com/package/helm-protocol](https://www.npmjs.com/package/helm-protocol)
|
|
161
|
+
- Moltbook: [helmbot on Moltbook](https://www.moltbook.com)
|
|
162
|
+
- Node.js >= 18 required
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
MIT License · Helm Sovereign Protocol · Grand Cross v1.0.0 · 2026
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helm-protocol",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Helm Sovereign Protocol — MCP Gateway Client. Transparent AI agent onboarding with Ed25519 DID,
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Helm Sovereign Protocol — MCP Gateway Client. Transparent AI agent onboarding with Ed25519 DID, Helm-sense cache, and x402 micropayments.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"helm-protocol": "src/cli.js",
|
package/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ const GATEWAY_URL = process.env.HELM_GATEWAY_URL || 'https://gateway.helm.networ
|
|
|
24
24
|
const TOOLS = [
|
|
25
25
|
{
|
|
26
26
|
name: 'helm_llm',
|
|
27
|
-
description: 'LLM inference via Helm A-Front (OpenAI/Anthropic wholesale).
|
|
27
|
+
description: 'LLM inference via Helm A-Front (OpenAI/Anthropic wholesale). Helm-sense cache applied.',
|
|
28
28
|
inputSchema: {
|
|
29
29
|
type: 'object',
|
|
30
30
|
properties: {
|
|
@@ -37,7 +37,7 @@ const TOOLS = [
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
name: 'helm_search',
|
|
40
|
-
description: 'Web/news search via Helm B-Front (Brave Search +
|
|
40
|
+
description: 'Web/news search via Helm B-Front (Brave Search + Helm-sense semantic cache). Cache hit = 100% margin.',
|
|
41
41
|
inputSchema: {
|
|
42
42
|
type: 'object',
|
|
43
43
|
properties: {
|
|
@@ -122,7 +122,7 @@ class HelmMcpServer {
|
|
|
122
122
|
serverInfo: {
|
|
123
123
|
name: 'helm-protocol',
|
|
124
124
|
version: '0.1.0',
|
|
125
|
-
description: 'Helm Sovereign Protocol —
|
|
125
|
+
description: 'Helm Sovereign Protocol — Helm-sense API Gateway'
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
});
|