clawlet 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ clawlet is licensed under the terms of MIT License.
2
+
3
+ Copyright (c) 2026 by DracoBlue (JanS@DracoBlue.de)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # clawlet
2
+
3
+ The pre-alpha version of a light weight personal AI assistant. It is a coding exercise for
4
+ understanding the famous [openclaw](https://github.com/openclaw/openclaw) project.
5
+
6
+ It is not fully working and absolutely far from being useful :).
7
+
8
+ ## Installation
9
+
10
+ The clawlet is just a simple nodejs application, which uses a local llm and talks via telegram.
11
+
12
+ So you will need 3 things:
13
+
14
+ 1. Install a local llm (macosx)
15
+
16
+ There is a script called `launch-mlx.sh` which you can use to run the local llm on port 127.0.0.1:8000. For this
17
+ it uses homebrew to install python3.11 if not available, creates a .venv for python and installs mlx-lm into
18
+ it and then installs mlx-openai-server.
19
+
20
+ ```
21
+ $ ./launch-mlx.sh
22
+ ```
23
+
24
+ 2. Optional telegram bot support
25
+
26
+ If you want to talk to it via telegram - create a bot (see [telegram documentation on bot creation](https://core.telegram.org/bots/tutorial#obtain-your-bot-token))
27
+ and store the id of the user and the token in `.env` as follows:
28
+
29
+ ```
30
+ TELEGRAM_USERINFO_ID=
31
+ TELEGRAM_BOT_TOKEN=
32
+ ```
33
+
34
+ 3. Install and run clawlet cli
35
+
36
+ You will need nodejs and a package manager (like pnpm) or npm:
37
+
38
+ ```
39
+ $ pnpm install
40
+ $ pnpm start
41
+ ```
42
+
43
+ ## Roadmap
44
+
45
+ * features
46
+ - [ ] handle session history
47
+ - [ ] read/write files and trash in workspace folder
48
+ - [ ] git history for workspace folder
49
+ - [ ] <AGENTS.md> support
50
+ - [ ] <SOUL.md> support
51
+ - [ ] users details at USER.md
52
+ - [ ] assistants details at IDENTITY.md
53
+ - [ ] daily memory in memory/*.md
54
+ - [ ] longterm memory in MEMORY.md
55
+ - [ ] heartbeat crons via HEARTBEAT.md
56
+ - [ ] <SKILL.md> support (install + use and sandbox)
57
+ - [ ] permission handling for skills
58
+ - [ ] connection for api keys and credentials
59
+ - [ ] add mcp configuration
60
+ * local llm
61
+ - [ ] support mlx locally on macosx M3++
62
+ * messaging
63
+ - [ ] chat via command line interface
64
+ - [ ] chat via telegram bot
65
+ * make available with (p)npx
66
+ * operating system support
67
+ - [x] runs on macosx
68
+ - [ ] run on windows / linux
69
+ - [ ] an *.app for mac
70
+ - [ ] an .exe for windows
71
+
72
+ # License
73
+
74
+ clawlet is copyright 2026 by DracoBlue and licensed under the MIT License.
package/bin/clawlet.js ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from 'node:child_process';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { dirname, join } from 'node:path';
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const cli = join(__dirname, '..', 'src', 'cli.ts');
9
+ const tsx = join(__dirname, '..', 'node_modules', '.bin', 'tsx');
10
+
11
+ const child = spawn(tsx, [cli], { stdio: 'inherit' });
12
+ child.on('exit', (code) => process.exit(code ?? 0));
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "clawlet",
3
+ "version": "0.1.0",
4
+ "description": "A lightweight AI based personal assistant.",
5
+ "main": "src/cli.ts",
6
+ "type": "module",
7
+ "bin": {
8
+ "clawlet": "./bin/clawlet.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "src/",
13
+ "template/"
14
+ ],
15
+ "keywords": [
16
+ "ai",
17
+ "assistant",
18
+ "agent",
19
+ "cli",
20
+ "personal-assistant"
21
+ ],
22
+ "author": "DracoBlue <JanS@DracoBlue.de>",
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/DracoBlue/clawlet.git"
27
+ },
28
+ "dependencies": {
29
+ "@ai-sdk-tool/parser": "^3.3.2",
30
+ "@ai-sdk/openai": "^1.3.22",
31
+ "@ai-sdk/openai-compatible": "^2.0.28",
32
+ "@libsql/client": "^0.17.0",
33
+ "ai": "^6.0.58",
34
+ "dotenv": "^17.2.2",
35
+ "grammy": "^1.39.3",
36
+ "tsx": "^4.21.0",
37
+ "unstorage": "^1.17.4"
38
+ },
39
+ "devDependencies": {
40
+ "@types/node": "^25.2.1",
41
+ "typescript": "^5.9.3"
42
+ },
43
+ "scripts": {
44
+ "start": "tsx src/cli.ts"
45
+ }
46
+ }