clawkeep 0.1.0 → 0.1.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 +136 -150
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<h1 align="center">🐾 ClawKeep</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>
|
|
9
|
-
<sub>
|
|
8
|
+
<strong>Private, encrypted backups that just work.</strong><br>
|
|
9
|
+
<sub>Zero-knowledge. Time-travel restore. Set it and forget it.</sub>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -19,23 +19,47 @@
|
|
|
19
19
|
|
|
20
20
|
## The Problem
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Your files are precious. Your AI agent's memory. Your dotfiles. Your configs. Your writing.
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
One bad edit. One corrupted file. One accidental delete. Gone.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Cloud backups? They can read your data. Time Machine? No encryption. Manual exports? You'll forget.
|
|
27
|
+
|
|
28
|
+
**You need backups that are automatic, encrypted, and private.**
|
|
27
29
|
|
|
28
30
|
## The Solution
|
|
29
31
|
|
|
30
|
-
ClawKeep gives
|
|
32
|
+
ClawKeep gives you **continuous, encrypted backups** with full version history. Every change is captured. Every version is recoverable. Everything is **AES-256 encrypted** before it leaves your machine.
|
|
31
33
|
|
|
32
34
|
```
|
|
33
|
-
clawkeep init → start
|
|
34
|
-
clawkeep watch → auto-backup
|
|
35
|
+
clawkeep init → start protecting a directory
|
|
36
|
+
clawkeep watch → auto-backup every change (encrypted)
|
|
35
37
|
clawkeep restore → go back to any point in time
|
|
36
38
|
```
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
Three commands. Your files are protected forever. **Nobody can read them but you.**
|
|
41
|
+
|
|
42
|
+
## 🔐 Privacy First
|
|
43
|
+
|
|
44
|
+
ClawKeep is built on a simple principle: **your data is yours**.
|
|
45
|
+
|
|
46
|
+
- **AES-256-GCM encryption** — Military-grade encryption for all backups
|
|
47
|
+
- **Zero-knowledge** — Your backup target only sees numbered `.enc` chunks
|
|
48
|
+
- **No file names leaked** — Directory structure, file names, everything encrypted
|
|
49
|
+
- **Local-first** — Works entirely offline, no account required
|
|
50
|
+
- **Open source** — Audit the code yourself
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
What your NAS/cloud sees: What's actually inside:
|
|
54
|
+
├── chunk-000001.enc ├── MEMORY.md
|
|
55
|
+
├── chunk-000002.enc ├── config/
|
|
56
|
+
├── manifest.enc │ ├── secrets.yaml
|
|
57
|
+
│ └── api-keys.json
|
|
58
|
+
└── notes/
|
|
59
|
+
└── journal.md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Your backup target learns nothing.** Not file names, not sizes, not structure. Just opaque encrypted blobs.
|
|
39
63
|
|
|
40
64
|
## Quick Start
|
|
41
65
|
|
|
@@ -44,12 +68,12 @@ npm install -g clawkeep
|
|
|
44
68
|
```
|
|
45
69
|
|
|
46
70
|
```bash
|
|
47
|
-
cd ~/my-
|
|
71
|
+
cd ~/my-important-files
|
|
48
72
|
clawkeep init
|
|
49
73
|
```
|
|
50
74
|
```
|
|
51
75
|
✔ ClawKeep initialized!
|
|
52
|
-
🐾 Directory is now
|
|
76
|
+
🐾 Directory is now protected
|
|
53
77
|
Tracked 42 files
|
|
54
78
|
Backup a8f3c2d1
|
|
55
79
|
```
|
|
@@ -59,54 +83,51 @@ clawkeep init
|
|
|
59
83
|
clawkeep watch --daemon
|
|
60
84
|
```
|
|
61
85
|
|
|
62
|
-
Done. Every file change is now automatically versioned.
|
|
63
|
-
|
|
64
|
-
## Commands
|
|
65
|
-
|
|
66
|
-
| Command | What it does |
|
|
67
|
-
|---|---|
|
|
68
|
-
| `clawkeep init` | Start tracking a directory |
|
|
69
|
-
| `clawkeep watch` | Auto-backup on file changes. `--daemon` for background mode |
|
|
70
|
-
| `clawkeep snap` | Manual backup with optional `-m "message"` |
|
|
71
|
-
| `clawkeep log` | Browse your backup timeline |
|
|
72
|
-
| `clawkeep restore <ref>` | Time-travel to any backup |
|
|
73
|
-
| `clawkeep diff` | See what changed since last backup |
|
|
74
|
-
| `clawkeep backup` | Manage encrypted backup targets (local, S3, cloud) |
|
|
75
|
-
| `clawkeep backup sync` | Sync encrypted backup to target |
|
|
76
|
-
| `clawkeep backup restore` | Restore from encrypted backup |
|
|
77
|
-
| `clawkeep export` | AES-256 encrypted portable archive |
|
|
78
|
-
| `clawkeep import` | Restore from encrypted archive |
|
|
79
|
-
| `clawkeep status` | Show tracking stats |
|
|
80
|
-
| `clawkeep ui` | Launch the web dashboard |
|
|
86
|
+
Done. Every file change is now automatically versioned and ready for encrypted backup.
|
|
81
87
|
|
|
82
|
-
## Backup Targets
|
|
88
|
+
## Encrypted Backup Targets
|
|
83
89
|
|
|
84
|
-
|
|
90
|
+
Send your encrypted backups anywhere. They can't read them anyway.
|
|
85
91
|
|
|
86
92
|
```bash
|
|
87
|
-
# Set encryption password (once)
|
|
93
|
+
# Set your encryption password (once)
|
|
88
94
|
clawkeep backup set-password
|
|
89
95
|
|
|
90
|
-
# Back up to a local path (NAS, external drive,
|
|
96
|
+
# Back up to a local path (NAS, external drive, USB)
|
|
91
97
|
clawkeep backup local /mnt/nas/backups
|
|
92
98
|
|
|
93
|
-
# Sync
|
|
99
|
+
# Sync — only new changes are uploaded
|
|
94
100
|
clawkeep backup sync
|
|
95
101
|
|
|
96
102
|
# Check backup status
|
|
97
103
|
clawkeep backup status
|
|
98
|
-
|
|
99
|
-
# Restore from backup
|
|
100
|
-
clawkeep backup restore /mnt/nas/backups/my-workspace/
|
|
101
104
|
```
|
|
102
105
|
|
|
103
|
-
|
|
106
|
+
Your backup target receives **encrypted chunks only**. No metadata. No history. Nothing useful without your password.
|
|
104
107
|
|
|
105
108
|
| Target | Status | Description |
|
|
106
109
|
|---|---|---|
|
|
107
|
-
| **Local path** | ✅ Available |
|
|
108
|
-
| **S3 / R2** | 🔜 Coming soon |
|
|
109
|
-
| **ClawKeep Cloud** | 🔜 Coming soon | Managed
|
|
110
|
+
| **Local path** | ✅ Available | Any mounted folder — NAS, USB drive, network share |
|
|
111
|
+
| **S3 / R2** | 🔜 Coming soon | Object storage (AWS, Cloudflare, MinIO) |
|
|
112
|
+
| **ClawKeep Cloud** | 🔜 Coming soon | Managed zero-knowledge backup |
|
|
113
|
+
|
|
114
|
+
## Commands
|
|
115
|
+
|
|
116
|
+
| Command | What it does |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `clawkeep init` | Start protecting a directory |
|
|
119
|
+
| `clawkeep watch` | Auto-backup on file changes. `--daemon` for background |
|
|
120
|
+
| `clawkeep snap` | Manual backup with optional `-m "message"` |
|
|
121
|
+
| `clawkeep log` | Browse your backup timeline |
|
|
122
|
+
| `clawkeep restore <ref>` | Time-travel to any backup |
|
|
123
|
+
| `clawkeep diff` | See what changed since last backup |
|
|
124
|
+
| `clawkeep backup` | Manage encrypted backup targets |
|
|
125
|
+
| `clawkeep backup sync` | Push encrypted backup to target |
|
|
126
|
+
| `clawkeep backup restore` | Restore from encrypted backup |
|
|
127
|
+
| `clawkeep export` | Portable encrypted archive |
|
|
128
|
+
| `clawkeep import` | Restore from encrypted archive |
|
|
129
|
+
| `clawkeep status` | Show protection stats |
|
|
130
|
+
| `clawkeep ui` | Launch the web dashboard |
|
|
110
131
|
|
|
111
132
|
## Web Dashboard
|
|
112
133
|
|
|
@@ -118,62 +139,20 @@ clawkeep ui --daemon --port 3333
|
|
|
118
139
|
|
|
119
140
|
**Four tabs, everything you need:**
|
|
120
141
|
|
|
121
|
-
- **◉ Dashboard** — Protection status, recent changes, pending
|
|
122
|
-
- **↻ History** — Full
|
|
123
|
-
- **☁ Backup** — Configure
|
|
124
|
-
- **≡ Browse** — File browser with time-travel — view any file at any point
|
|
142
|
+
- **◉ Dashboard** — Protection status, recent changes, pending files
|
|
143
|
+
- **↻ History** — Full timeline with diffs, compare any two points
|
|
144
|
+
- **☁ Backup** — Configure targets, sync, download encrypted exports
|
|
145
|
+
- **≡ Browse** — File browser with time-travel — view any file at any point
|
|
125
146
|
|
|
126
147
|
**Also includes:**
|
|
127
|
-
- 🎨 Syntax highlighting for
|
|
148
|
+
- 🎨 Syntax highlighting for code files
|
|
128
149
|
- ✏️ Named backups from the UI
|
|
129
150
|
- ⏪ One-click restore to any backup
|
|
130
|
-
- 🔐 Token-based auth
|
|
131
|
-
|
|
132
|
-
## Framework Integrations
|
|
133
|
-
|
|
134
|
-
ClawKeep works with any directory, but it's especially useful for AI agent frameworks that maintain persistent state:
|
|
135
|
-
|
|
136
|
-
| Framework | What to track | How to integrate |
|
|
137
|
-
|---|---|---|
|
|
138
|
-
| **[Clawdbot](https://github.com/clawdbot/clawdbot)** | `MEMORY.md`, `SOUL.md`, `IDENTITY.md`, config, daily notes | Heartbeat task or watch daemon. See [SKILL.md](SKILL.md) |
|
|
139
|
-
| **[OpenClaw](https://github.com/openclaw)** | `.openclaw/` memory, agent state, tool configs | `clawkeep init && clawkeep watch --daemon` in agent dir |
|
|
140
|
-
| **[Nanobot](https://github.com/nicholasgriffintn/nanobot)** | `nanobot.yml`, conversation history, plugins | Watch daemon on nanobot workspace |
|
|
141
|
-
| **[Claude Code](https://claude.ai/code)** | `CLAUDE.md`, project context, session artifacts | `clawkeep watch --daemon` in project root |
|
|
142
|
-
| **[Codex CLI](https://github.com/openai/codex)** | `codex.md`, workspace files | Watch daemon on workspace |
|
|
143
|
-
| **[CrewAI](https://github.com/joaomdmoura/crewAI)** | Agent memory, task outputs, crew configs | Watch daemon on crew workspace |
|
|
144
|
-
| **[AutoGPT](https://github.com/Significant-Gravitas/AutoGPT)** | Agent state, auto_gpt_workspace, memory | Watch daemon on workspace root |
|
|
145
|
-
| **Generic** | Any directory with files that change | `clawkeep init && clawkeep watch --daemon` |
|
|
146
|
-
|
|
147
|
-
### Agent Skill
|
|
148
|
-
|
|
149
|
-
ClawKeep ships with a [SKILL.md](SKILL.md) that any AI agent can read and follow. Drop it into your agent's skills directory and it will know how to:
|
|
150
|
-
|
|
151
|
-
- Initialize ClawKeep on its own workspace
|
|
152
|
-
- Run watch mode or periodic backups via heartbeat
|
|
153
|
-
- Restore to previous versions when something goes wrong
|
|
154
|
-
- Take named backups before risky operations
|
|
155
|
-
- Configure backup targets for offsite protection
|
|
156
|
-
|
|
157
|
-
See [SKILL.md](SKILL.md) for the full agent-readable integration guide.
|
|
158
|
-
|
|
159
|
-
## Smart Ignore
|
|
160
|
-
|
|
161
|
-
ClawKeep ships with sensible defaults. Your `node_modules`, build artifacts, and caches are never tracked:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
# .clawkeepignore (auto-generated)
|
|
165
|
-
node_modules/
|
|
166
|
-
__pycache__/
|
|
167
|
-
dist/
|
|
168
|
-
.env
|
|
169
|
-
*.log
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Add your own patterns. They're automatically synced to `.gitignore` — you never think about it.
|
|
151
|
+
- 🔐 Token-based auth
|
|
173
152
|
|
|
174
153
|
## Watch Mode
|
|
175
154
|
|
|
176
|
-
The killer feature.
|
|
155
|
+
The killer feature. Continuous protection without thinking about it:
|
|
177
156
|
|
|
178
157
|
```bash
|
|
179
158
|
# Foreground (see live output)
|
|
@@ -185,15 +164,15 @@ clawkeep watch --daemon
|
|
|
185
164
|
# Stop the daemon
|
|
186
165
|
clawkeep watch --stop
|
|
187
166
|
|
|
188
|
-
# Auto-
|
|
167
|
+
# Auto-sync to backup target after each change
|
|
189
168
|
clawkeep watch --daemon --push
|
|
190
169
|
```
|
|
191
170
|
|
|
192
|
-
|
|
171
|
+
Smart debouncing, stability detection, configurable ignore patterns. Your files are continuously protected.
|
|
193
172
|
|
|
194
|
-
## Restore
|
|
173
|
+
## Time-Travel Restore
|
|
195
174
|
|
|
196
|
-
Go back to any point in time. Your current state is preserved
|
|
175
|
+
Go back to any point in time. Your current state is preserved — nothing is ever lost.
|
|
197
176
|
|
|
198
177
|
```bash
|
|
199
178
|
# See the timeline
|
|
@@ -206,90 +185,97 @@ clawkeep restore abc123f
|
|
|
206
185
|
clawkeep restore HEAD~3
|
|
207
186
|
```
|
|
208
187
|
|
|
209
|
-
Restores are **non-destructive** —
|
|
188
|
+
Restores are **non-destructive** — your full history is always intact.
|
|
210
189
|
|
|
211
|
-
##
|
|
190
|
+
## Portable Encrypted Archives
|
|
212
191
|
|
|
213
|
-
|
|
192
|
+
Take your backups anywhere with encrypted exports:
|
|
214
193
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
194
|
+
```bash
|
|
195
|
+
# Create encrypted archive
|
|
196
|
+
clawkeep export -p "your-password"
|
|
197
|
+
# → my-project.clawkeep.enc
|
|
218
198
|
|
|
219
|
-
|
|
199
|
+
# Restore on another machine
|
|
200
|
+
clawkeep import backup.clawkeep.enc -p "your-password"
|
|
201
|
+
```
|
|
220
202
|
|
|
221
|
-
|
|
203
|
+
One file. Fully encrypted. Restore anywhere.
|
|
222
204
|
|
|
223
|
-
|
|
224
|
-
# One-off encrypted export (portable archive)
|
|
225
|
-
clawkeep export -p "strong-password"
|
|
205
|
+
## Built for AI Agents
|
|
226
206
|
|
|
227
|
-
|
|
228
|
-
clawkeep import backup.clawkeep.enc -p "strong-password"
|
|
229
|
-
```
|
|
207
|
+
ClawKeep was originally built to protect AI agent workspaces — memory files, personality configs, conversation history. One bad inference and your agent's identity is gone.
|
|
230
208
|
|
|
231
|
-
|
|
209
|
+
| Framework | What to protect |
|
|
210
|
+
|---|---|
|
|
211
|
+
| **[Clawdbot](https://github.com/clawdbot/clawdbot)** | `MEMORY.md`, `SOUL.md`, `IDENTITY.md`, daily notes |
|
|
212
|
+
| **[Claude Code](https://claude.ai/code)** | `CLAUDE.md`, project context, artifacts |
|
|
213
|
+
| **[CrewAI](https://github.com/joaomdmoura/crewAI)** | Agent memory, task outputs, crew configs |
|
|
214
|
+
| **[AutoGPT](https://github.com/Significant-Gravitas/AutoGPT)** | Agent state, workspace, memory |
|
|
215
|
+
| **Any agent** | Memory, config, state files |
|
|
232
216
|
|
|
233
|
-
|
|
234
|
-
const { ClawGit } = require('clawkeep');
|
|
217
|
+
ClawKeep ships with a [SKILL.md](SKILL.md) that AI agents can read and follow autonomously.
|
|
235
218
|
|
|
236
|
-
|
|
237
|
-
await claw.init();
|
|
219
|
+
## Works for Everything
|
|
238
220
|
|
|
239
|
-
|
|
240
|
-
const snap = await claw.snap('pre-deploy checkpoint');
|
|
221
|
+
AI agents are the origin story, but ClawKeep protects anything:
|
|
241
222
|
|
|
242
|
-
|
|
243
|
-
|
|
223
|
+
- **Dotfiles** — `~/.config`, shell rc files, SSH configs
|
|
224
|
+
- **Writing** — Manuscripts, notes, journals
|
|
225
|
+
- **Configs** — Server configs, infrastructure as code
|
|
226
|
+
- **Development** — Project files, local databases
|
|
227
|
+
- **Any directory** — If it changes, ClawKeep can protect it
|
|
244
228
|
|
|
245
|
-
|
|
246
|
-
const changes = await claw.diffBetween('abc123', 'def456');
|
|
229
|
+
## Smart Ignore
|
|
247
230
|
|
|
248
|
-
|
|
249
|
-
await claw.restore('abc123');
|
|
231
|
+
Sensible defaults out of the box:
|
|
250
232
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
233
|
+
```bash
|
|
234
|
+
# .clawkeepignore (auto-generated)
|
|
235
|
+
node_modules/
|
|
236
|
+
__pycache__/
|
|
237
|
+
dist/
|
|
238
|
+
.env
|
|
239
|
+
*.log
|
|
254
240
|
```
|
|
255
241
|
|
|
256
|
-
|
|
242
|
+
Add your own patterns. Large files and build artifacts stay out automatically.
|
|
257
243
|
|
|
258
|
-
|
|
244
|
+
## Programmatic API
|
|
259
245
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
- **Writing projects** — every draft saved, every version recoverable
|
|
263
|
-
- **Config management** — track infrastructure config changes over time
|
|
264
|
-
- **Any directory** — if files change, ClawKeep can track them
|
|
246
|
+
```javascript
|
|
247
|
+
const { ClawKeep } = require('clawkeep');
|
|
265
248
|
|
|
266
|
-
|
|
249
|
+
const claw = new ClawKeep('/path/to/project');
|
|
250
|
+
await claw.init();
|
|
267
251
|
|
|
268
|
-
|
|
252
|
+
// Create backup
|
|
253
|
+
const snap = await claw.snap('before risky changes');
|
|
269
254
|
|
|
270
|
-
|
|
255
|
+
// Browse history
|
|
256
|
+
const history = await claw.log(10);
|
|
271
257
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
| Setup | Multiple commands | `clawkeep init` |
|
|
275
|
-
| Auto-backup | DIY cron/hooks | `clawkeep watch --daemon` |
|
|
276
|
-
| Ignore patterns | Manual `.gitignore` | Auto-managed `.clawkeepignore` |
|
|
277
|
-
| Time travel | `git checkout` / `git stash` | `clawkeep restore` |
|
|
278
|
-
| Visual history | External GUI needed | Built-in web dashboard |
|
|
279
|
-
| Backup targets | Manual remote config | `clawkeep backup local /path` (encrypted) |
|
|
280
|
-
| Encrypted export | Not built-in | `clawkeep export` |
|
|
281
|
-
| Learning curve | Steep | Three commands |
|
|
258
|
+
// Restore
|
|
259
|
+
await claw.restore('abc123');
|
|
282
260
|
|
|
283
|
-
|
|
261
|
+
// Time-travel file access
|
|
262
|
+
const oldContent = await claw.showFileAtCommit('abc123', 'config.yaml');
|
|
263
|
+
```
|
|
284
264
|
|
|
285
265
|
## Roadmap
|
|
286
266
|
|
|
287
|
-
- [ ]
|
|
288
|
-
- [ ]
|
|
267
|
+
- [ ] S3 / R2 / MinIO backend
|
|
268
|
+
- [ ] `clawkeep.com` — zero-knowledge cloud backup
|
|
269
|
+
- [ ] End-to-end encrypted team sharing
|
|
289
270
|
- [ ] Webhooks on file changes
|
|
290
|
-
- [ ]
|
|
291
|
-
- [ ] Team sharing & access control
|
|
271
|
+
- [ ] Mobile app for backup status
|
|
292
272
|
|
|
293
273
|
## License
|
|
294
274
|
|
|
295
275
|
MIT — [ClawKeep](https://clawkeep.com) 🐾
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
<p align="center">
|
|
280
|
+
<strong>Your files. Your encryption keys. Your privacy.</strong>
|
|
281
|
+
</p>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawkeep",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Private, encrypted backups with time-travel restore. Zero-knowledge protection for AI agents, configs, and everything you care about.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"clawkeep": "./bin/clawkeep.js"
|