cell0-os 1.0.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,31 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2026 Cell 0 Collective
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+
19
+ Also add information on how to contact you by electronic and paper mail.
20
+
21
+ You should also get your employer (if you work as a programmer) or school,
22
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
23
+ For more information on this, and how to apply and follow the GNU GPL, see
24
+ <https://www.gnu.org/licenses/>.
25
+
26
+ The GNU General Public License does not permit incorporating your program
27
+ into proprietary programs. If your program is a subroutine library, you
28
+ may consider it more useful to permit linking proprietary applications with
29
+ the library. If this is what you want to do, use the GNU Lesser General
30
+ Public License instead of this License. But first, please read
31
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
package/README.md ADDED
@@ -0,0 +1,343 @@
1
+ # 🧬 cell0-os
2
+
3
+ <p align="center">
4
+ <strong>The Sovereign Edge Operating System</strong>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <img src="https://img.shields.io/badge/version-0.1.0-blue.svg" alt="Version">
9
+ <img src="https://img.shields.io/badge/license-GPL%20v3.0-green.svg" alt="License">
10
+ <img src="https://img.shields.io/badge/tests-passing-brightgreen.svg" alt="Tests">
11
+ <img src="https://img.shields.io/badge/docker-ready-2496ed.svg?logo=docker" alt="Docker">
12
+ </p>
13
+
14
+ <p align="center">
15
+ <a href="#installation">Install</a> β€’
16
+ <a href="#features">Features</a> β€’
17
+ <a href="#architecture">Architecture</a> β€’
18
+ <a href="#security">Security</a> β€’
19
+ <a href="#contributing">Contribut</a>
20
+ </p>
21
+
22
+ ---
23
+
24
+ ## Installation
25
+
26
+ ### npm (Recommended)
27
+
28
+ ```bash
29
+ npm install -g cell0-os
30
+ cell0 onboard --install-daemon
31
+ ```
32
+
33
+ ### Docker
34
+
35
+ ```bash
36
+ docker run -d \
37
+ --name cell0 \
38
+ -p 18800:18800 \
39
+ -v ~/.cell0:/data \
40
+ yigremtamiru/cell0-os:latest
41
+ ```
42
+
43
+ ### Quick Start
44
+
45
+ ```bash
46
+ # Clone and setup
47
+ git clone https://github.com/YigremTamiru/cell0-os.git ~/cell0
48
+ cd ~/cell0 && ./install.sh
49
+
50
+ # Start the gateway
51
+ cell0 gateway --port 18800
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Features
57
+
58
+ ### πŸ” Post-Quantum Cryptography (12 Layers)
59
+
60
+ Defense-in-depth with 12 parallel cryptographic systems spanning classical, modern, post-quantum, and quantum domains:
61
+
62
+ | Layer | Systems | Status |
63
+ |-------|---------|--------|
64
+ | **Classical** | AES-256-GCM, ChaCha20-Poly1305, SHA3-256/512 | βœ… |
65
+ | **Modern** | Ed25519, X25519, BLS12-381 | βœ… |
66
+ | **Post-Quantum** | CRYSTALS-Kyber, CRYSTALS-Dilithium | βœ… |
67
+ | **Quantum** | BB84 QKD, Quantum Signatures | βœ… |
68
+ | **ZKP** | zk-STARK (transparent, post-quantum) | βœ… |
69
+
70
+ ### πŸ›‘οΈ Sovereign Security Model
71
+
72
+ Your data, your rules β€” entirely local-first:
73
+
74
+ - **Default-deny architecture** β€” Nothing runs without explicit authorization
75
+ - **Allowlist-only access** β€” No implicit permissions, ever
76
+ - **Capability-based security** β€” Fine-grained token-based access control
77
+ - **NFEK biometric authentication** β€” ECG/PPG-based identity verification
78
+ - **Append-only hash-ledgers** β€” Tamper-evident audit trails
79
+
80
+ ### πŸ’¬ WhatsApp Web QR Mode
81
+
82
+ Connect WhatsApp instantly without phone pairing hassles:
83
+
84
+ ```bash
85
+ cell0 channel add whatsapp --mode qr
86
+ # Scan QR code with your phone β€” done in 5 seconds
87
+ ```
88
+
89
+ - No SMS verification required
90
+ - No phone number exchange
91
+ - Direct Web QR pairing
92
+
93
+ ### πŸ–₯️ Arrow-Key TUI Onboarding
94
+
95
+ OpenClaw-style interactive setup:
96
+
97
+ ```bash
98
+ $ cell0 onboard
99
+
100
+ ? Select deployment mode: (Use arrow keys)
101
+ ❯ Local-only
102
+ Cloud tunnel
103
+
104
+ ? Choose LLM provider: (Use arrow keys)
105
+ ❯ Moonshot (Kimi)
106
+ OpenAI (GPT-4)
107
+ Anthropic (Claude)
108
+ Ollama (Local)
109
+
110
+ ? Configure channels: (Press <space> to select)
111
+ β˜‘ Web UI
112
+ ☐ Telegram
113
+ β˜‘ WhatsApp
114
+ ☐ Discord
115
+ ```
116
+
117
+ ### πŸ€– Multi-Provider AI
118
+
119
+ Intelligent provider selection with automatic failover across 30+ models:
120
+
121
+ | Provider | Models | Best For |
122
+ |----------|--------|----------|
123
+ | **Moonshot** | Kimi K2.5, v1 series | Long context, reasoning |
124
+ | **OpenAI** | GPT-4o, o1, o3 | General purpose |
125
+ | **Anthropic** | Claude 3.5 Sonnet, Opus | Safety, analysis |
126
+ | **Google** | Gemini 2.0 Flash, 1.5 Pro | Multimodal |
127
+ | **Ollama** | Llama, Mistral, CodeLlama | Local inference (FREE) |
128
+ | **MLX** | Quantized models | Apple Silicon (FREE) |
129
+
130
+ ```bash
131
+ # Use any provider
132
+ cell0 config set provider moonshot/kimi-k2.5
133
+ cell0 config set provider openai/gpt-4o
134
+ cell0 config set provider ollama/llama3.2
135
+ ```
136
+
137
+ ### πŸ“‘ Multi-Channel Support
138
+
139
+ Unified interface across all messaging platforms:
140
+
141
+ | Channel | Status | Features |
142
+ |---------|--------|----------|
143
+ | **Telegram** | βœ… Ready | Bot API, groups, reactions |
144
+ | **Discord** | βœ… Ready | Slash commands, embeds, DMs |
145
+ | **WhatsApp** | βœ… Ready | QR mode, groups, voice notes |
146
+ | **Web UI** | βœ… Ready | Terminal aesthetic, markdown |
147
+ | **Slack** | 🚧 Soon | Workspace apps |
148
+
149
+ ```bash
150
+ # Add channels interactively
151
+ cell0 channel add telegram --bot-token <token>
152
+ cell0 channel add discord --bot-token <token>
153
+ cell0 channel add whatsapp --mode qr
154
+ ```
155
+
156
+ ---
157
+
158
+ ## Architecture
159
+
160
+ ### MCIC Kernel
161
+
162
+ The **Mandatory Civilization Interface Core** is the foundation of cell0-os:
163
+
164
+ ```
165
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
166
+ β”‚ LAYER 6: INTERFACE FIELD (User Space) β”‚
167
+ β”‚ β€’ TUI/Web UI β€’ Skills β€’ Tools β”‚
168
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
169
+ β”‚ LAYER 5: PERSONA RUNTIME (Ring 3) β”‚
170
+ β”‚ β€’ TPV-resonant AI β€’ Provider routing β€’ Agent dispatch β”‚
171
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
172
+ β”‚ LAYER 4: CIVILIZATION RUNTIME (Ring 1) β”‚
173
+ β”‚ β€’ HGW workspace β€’ Coalition formation β€’ Consensus β”‚
174
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
175
+ β”‚ LAYER 3: CELL 0 KERNEL β€” MCIC (Ring 0) ⭐ β”‚
176
+ β”‚ β€’ OC enforcement β€’ SYPAS bus β€’ Capability security β”‚
177
+ β”‚ β€’ Agent scheduler β€’ Memory management β”‚
178
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
179
+ β”‚ LAYER 2: NFEK β€” NEURO-FUZZY EXISTENCE KEY β”‚
180
+ β”‚ β€’ Biometric authentication β€’ Live reconstruction β”‚
181
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
182
+ β”‚ LAYER 1: CRYPTOGRAPHIC PLENUM (12 Systems) β”‚
183
+ β”‚ β€’ Classical/Modern/PQ/Quantum/ZKP β€’ Root of Trust β”‚
184
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
185
+ ```
186
+
187
+ ### 12 Security Layers
188
+
189
+ Defense-in-depth architecture where breaking security requires compromising **all 12 layers simultaneously**:
190
+
191
+ 1. **Quantum Void** β€” Hardware entropy source
192
+ 2. **Cryptographic Plenum** β€” 12 parallel crypto systems
193
+ 3. **NFEK Biometrics** β€” ECG/PPG identity verification
194
+ 4. **UEFI Anchor** β€” TPM 2.0 measured boot
195
+ 5. **MCIC Hypervisor** β€” VMX root mode isolation
196
+ 6. **Cell 0 Kernel** β€” Bare-metal Rust, capability-based
197
+ 7. **Civilization Runtime** β€” HGW consciousness architecture
198
+ 8. **Body Interface** β€” VirtIO drivers, sandboxed I/O
199
+ 9. **Persona Runtime** β€” TPV-resonant AI layer
200
+ 10. **Interface Field** β€” User-facing TUI/Web
201
+ 11. **SYFPASS Mesh** β€” Quantum-resistant networking
202
+ 12. **Planetary Consciousness** β€” Swarm consensus
203
+
204
+ ### Channel Drivers
205
+
206
+ Pluggable channel architecture for unified messaging:
207
+
208
+ ```
209
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
210
+ β”‚ Channel Manager β”‚
211
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
212
+ β”‚Telegram β”‚Discord β”‚WhatsApp β”‚ Web UI β”‚
213
+ β”‚ Driver β”‚ Driver β”‚ Driver β”‚ Driver β”‚
214
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
215
+ β”‚ Unified Message Bus β”‚
216
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
217
+ β”‚ Agent Dispatch Layer β”‚
218
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
219
+ ```
220
+
221
+ ---
222
+
223
+ ## Security
224
+
225
+ ### Default-Deny Architecture
226
+
227
+ ```rust
228
+ // Nothing is allowed by default
229
+ deny all;
230
+
231
+ // Explicit allowlist only
232
+ allow provider::moonshot::kimi-k2.5;
233
+ allow channel::telegram::bot_commands;
234
+ allow tool::filesystem::read_only;
235
+ ```
236
+
237
+ ### Allowlist-Only Access
238
+
239
+ - No implicit permissions
240
+ - Every capability requires explicit token grant
241
+ - Tokens are cryptographically bound to identity
242
+ - Automatic expiration and rotation
243
+
244
+ ### Quantum-Resistant
245
+
246
+ Future-proof against quantum attacks:
247
+
248
+ - **CRYSTALS-Kyber** β€” NIST-approved post-quantum KEM
249
+ - **CRYSTALS-Dilithium** β€” NIST-approved post-quantum signatures
250
+ - **zk-STARK** β€” Transparent ZK proofs (post-quantum secure)
251
+ - **Hybrid encryption** β€” Classical + PQ combined
252
+ - **Crypto agility** β€” Rapid algorithm migration
253
+
254
+ ```bash
255
+ # Verify quantum-resistant status
256
+ cell0 security audit --report
257
+
258
+ # Rotate to latest algorithms
259
+ cell0 crypto rotate --quantum-safe
260
+ ```
261
+
262
+ ---
263
+
264
+ ## CLI Reference
265
+
266
+ ```bash
267
+ # Core commands
268
+ cell0 onboard # Interactive setup wizard
269
+ cell0 gateway # Run gateway in foreground
270
+ cell0 daemon install # Install background daemon
271
+ cell0 daemon start|stop # Control daemon
272
+ cell0 status # System status
273
+ cell0 doctor # Diagnostic check
274
+
275
+ # Configuration
276
+ cell0 config set <key> <value>
277
+ cell0 config get <key>
278
+ cell0 config list
279
+
280
+ # Channel management
281
+ cell0 channel add <type> [options]
282
+ cell0 channel remove <id>
283
+ cell0 channel list
284
+
285
+ # AI providers
286
+ cell0 provider list
287
+ cell0 provider set <provider/model>
288
+ cell0 provider test
289
+
290
+ # Security
291
+ cell0 security audit
292
+ cell0 crypto status
293
+ cell0 crypto rotate
294
+ ```
295
+
296
+ ---
297
+
298
+ ## Contributing
299
+
300
+ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
301
+
302
+ ### Quick Start
303
+
304
+ ```bash
305
+ # Fork and clone
306
+ git clone https://github.com/YOUR_USERNAME/cell0-os.git
307
+ cd cell0-os
308
+
309
+ # Install dependencies
310
+ pip install -r requirements-dev.txt
311
+
312
+ # Run tests
313
+ make test
314
+
315
+ # Start developing
316
+ ```
317
+
318
+ ### Development Guidelines
319
+
320
+ - **Security First** β€” All changes undergo security review
321
+ - **Test Coverage** β€” Maintain >80% coverage
322
+ - **Documentation** β€” Update docs with code changes
323
+ - **Commit Messages** β€” Follow conventional commits
324
+
325
+ ---
326
+
327
+ ## License
328
+
329
+ Cell 0 OS is released under the **GNU General Public License v3.0**
330
+
331
+ See [LICENSE](LICENSE) for full text.
332
+
333
+ ---
334
+
335
+ <p align="center">
336
+ <sub>Built with πŸ’œ by the Cell 0 Collective</sub>
337
+ </p>
338
+
339
+ <p align="center">
340
+ <a href="https://kulluai.com">Website</a> β€’
341
+ <a href="https://github.com/YigremTamiru/cell0-os">GitHub</a> β€’
342
+ <a href="https://discord.gg/cell0">Discord</a>
343
+ </p>