zk-credits 0.1.2 → 0.1.3
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 +52 -0
- package/package.json +9 -2
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# zk-credits
|
|
2
|
+
|
|
3
|
+
Loopback sidecar that attaches a ZK-RLN proof to each coding-agent LLM request.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install --global zk-credits
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## First run
|
|
10
|
+
|
|
11
|
+
1. Fund an identity at the [web app](https://feature-zk-api-credits-gadillacers-projects.vercel.app)
|
|
12
|
+
(GitHub sign-in → generate 24-word phrase → buy Starter $1.00 / 100 tickets).
|
|
13
|
+
2. Import the phrase (hidden TTY, OS keychain):
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
zk-credits import-mnemonic
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Run:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
zk-credits cline "summarize this repository"
|
|
23
|
+
zk-credits claude -p "summarize this repository"
|
|
24
|
+
zk-credits setup codex && zk-credits codex "summarize this repository"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The sidecar binds `127.0.0.1:3210` only. It does not modify `~/.cline`,
|
|
28
|
+
`~/.claude`, or `~/.codex`.
|
|
29
|
+
|
|
30
|
+
## Commands
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
zk-credits cline [cline arguments...]
|
|
34
|
+
zk-credits claude [claude arguments...]
|
|
35
|
+
zk-credits setup codex [--model <model>]
|
|
36
|
+
zk-credits codex [codex arguments...]
|
|
37
|
+
zk-credits status
|
|
38
|
+
zk-credits import-mnemonic
|
|
39
|
+
zk-credits serve [--port <port>]
|
|
40
|
+
eval "$(zk-credits env)"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Codex SDK:
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import { buildCodexSdkOptions, buildCodexThreadOptions } from 'zk-credits/codex';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`ZK_CREDITS_MNEMONIC` is for a headless process only and is not persisted.
|
|
50
|
+
|
|
51
|
+
Testnet only. See the [repo README](https://github.com/mangekyou-labs/haze-api)
|
|
52
|
+
for caveats, tree capacity, and cold-start notes.
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zk-credits",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Loopback proof-aware OpenAI transport for
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Loopback proof-aware OpenAI transport for Cline, Claude Code, and Codex.",
|
|
5
|
+
"homepage": "https://feature-zk-api-credits-gadillacers-projects.vercel.app",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/mangekyou-labs/haze-api.git",
|
|
9
|
+
"directory": "packages/zk-credits-sidecar"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
5
12
|
"type": "module",
|
|
6
13
|
"engines": {
|
|
7
14
|
"node": ">=20"
|