karnel-termux 4.7.5 → 4.7.7
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 +230 -225
- package/install.sh +30 -9
- package/karnel/bin/karnel +2 -2
- package/karnel/cli/commands/backup.sh +10 -2
- package/karnel/cli/commands/brain.sh +28 -23
- package/karnel/cli/commands/cleanup.sh +10 -4
- package/karnel/cli/commands/deploy.sh +53 -0
- package/karnel/cli/commands/doctor/code.sh +225 -0
- package/karnel/cli/commands/doctor/code_detect.sh +184 -0
- package/karnel/cli/commands/doctor/code_exec.sh +278 -0
- package/karnel/cli/commands/doctor/code_langs.sh +229 -0
- package/karnel/cli/commands/doctor/fixes.sh +63 -46
- package/karnel/cli/commands/doctor.sh +222 -80
- package/karnel/cli/commands/env.sh +2 -0
- package/karnel/cli/commands/ia.sh +12 -2
- package/karnel/cli/commands/init.sh +17 -9
- package/karnel/cli/commands/install.sh +90 -54
- package/karnel/cli/commands/list.sh +39 -0
- package/karnel/cli/commands/pg.sh +21 -6
- package/karnel/cli/commands/reinstall.sh +99 -0
- package/karnel/cli/commands/restore.sh +43 -3
- package/karnel/cli/commands/search.sh +2 -2
- package/karnel/cli/commands/update.sh +6 -1
- package/karnel/cli/commands/upgrade.sh +8 -1
- package/karnel/cli/commands/voice.sh +2 -1
- package/karnel/cli/karnel.sh +11 -5
- package/karnel/modules/games.sh +11 -0
- package/karnel/tools/ai/all.sh +1 -0
- package/karnel/tools/ai/copilot-termux/README.md +40 -0
- package/karnel/tools/ai/copilot-termux/install.sh +80 -0
- package/karnel/tools/ai/copilot-termux/package.json +20 -0
- package/karnel/tools/db/all.sh +2 -0
- package/karnel/tools/deploy/railway/install.sh +2 -2
- package/karnel/tools/dev/all.sh +8 -0
- package/karnel/tools/dev/applaunch/__pycache__/applaunch.cpython-314.pyc +0 -0
- package/karnel/tools/dev/applaunch/applaunch.py +434 -0
- package/karnel/tools/dev/applaunch/install.sh +51 -0
- package/karnel/tools/dev/fconv/__pycache__/fconv.cpython-314.pyc +0 -0
- package/karnel/tools/dev/fconv/fconv.py +749 -0
- package/karnel/tools/dev/fconv/install.sh +51 -0
- package/karnel/tools/dev/filecheck/__pycache__/filecheck.cpython-314.pyc +0 -0
- package/karnel/tools/dev/filecheck/filecheck.py +429 -0
- package/karnel/tools/dev/filecheck/install.sh +51 -0
- package/karnel/tools/dev/notes/__pycache__/notes.cpython-314.pyc +0 -0
- package/karnel/tools/dev/notes/install.sh +51 -0
- package/karnel/tools/dev/notes/notes.py +849 -0
- package/karnel/tools/dev/passman/__pycache__/passman.cpython-314.pyc +0 -0
- package/karnel/tools/dev/passman/install.sh +51 -0
- package/karnel/tools/dev/passman/passman.py +536 -0
- package/karnel/tools/dev/splash/__pycache__/splash.cpython-314.pyc +0 -0
- package/karnel/tools/dev/splash/install.sh +51 -0
- package/karnel/tools/dev/splash/splash.py +188 -0
- package/karnel/tools/dev/treex/install.sh +51 -0
- package/karnel/tools/dev/treex/treex.py +2036 -0
- package/karnel/tools/dev/websites/__pycache__/websites.cpython-314.pyc +0 -0
- package/karnel/tools/dev/websites/install.sh +51 -0
- package/karnel/tools/dev/websites/websites.py +844 -0
- package/karnel/tools/dev/zork/install.sh +23 -12
- package/karnel/tools/games/all.sh +62 -0
- package/karnel/tools/games/arcade/__pycache__/arcade.cpython-314.pyc +0 -0
- package/karnel/tools/games/arcade/arcade.py +193 -0
- package/karnel/tools/games/arcade/install.sh +51 -0
- package/karnel/tools/games/buzz/__pycache__/buzz.cpython-314.pyc +0 -0
- package/karnel/tools/games/buzz/buzz.py +1264 -0
- package/karnel/tools/games/buzz/install.sh +51 -0
- package/karnel/tools/games/ctfgod/__pycache__/ctfgod.cpython-314.pyc +0 -0
- package/karnel/tools/games/ctfgod/ctfgod.py +1576 -0
- package/karnel/tools/games/ctfgod/install.sh +51 -0
- package/karnel/tools/games/detective/__pycache__/detective.cpython-314.pyc +0 -0
- package/karnel/tools/games/detective/detective.py +2091 -0
- package/karnel/tools/games/detective/install.sh +51 -0
- package/karnel/tools/games/pet-friends/__pycache__/pet-friends.cpython-314.pyc +0 -0
- package/karnel/tools/games/pet-friends/install.sh +51 -0
- package/karnel/tools/games/pet-friends/pet-friends.py +15802 -0
- package/karnel/tools/games/tamagotchi/__pycache__/tamagotchi.cpython-314.pyc +0 -0
- package/karnel/tools/games/tamagotchi/install.sh +51 -0
- package/karnel/tools/games/tamagotchi/tamagotchi.py +1224 -0
- package/karnel/tools/games/terminal-arcade/__pycache__/terminal-arcade.cpython-314.pyc +0 -0
- package/karnel/tools/games/terminal-arcade/terminal-arcade.py +193 -0
- package/karnel/tools/npm/all.sh +1 -0
- package/karnel/utils/env.sh +1 -1
- package/karnel/utils/log.sh +34 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<strong
|
|
6
|
+
<strong>Transform your Android into a complete development workstation.</strong>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://github.com/israelmarques1024-dotcom/karnel-termux">
|
|
11
|
-
<img src="https://img.shields.io/badge/version-
|
|
11
|
+
<img src="https://img.shields.io/badge/version-4.7.6-0078D4?style=for-the-badge" alt="Version">
|
|
12
12
|
</a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/karnel-termux">
|
|
14
14
|
<img src="https://img.shields.io/npm/v/karnel-termux?style=for-the-badge&logo=npm&color=cb3837" alt="npm">
|
|
@@ -17,42 +17,41 @@
|
|
|
17
17
|
<img src="https://img.shields.io/npm/dt/karnel-termux?style=for-the-badge&logo=npm&color=cb3837" alt="npm downloads">
|
|
18
18
|
</a>
|
|
19
19
|
<a href="https://github.com/israelmarques1024-dotcom/karnel-termux/blob/main/LICENSE">
|
|
20
|
-
<img src="https://img.shields.io/badge/license-MIT-0078D4?style=for-the-badge
|
|
20
|
+
<img src="https://img.shields.io/badge/license-MIT-0078D4?style=for-the-badge" alt="License">
|
|
21
21
|
</a>
|
|
22
22
|
<a href="https://termux.dev/">
|
|
23
|
-
<img src="https://img.shields.io/badge/platform-Termux%20%7C%20Android-0078D4?style=for-the-badge
|
|
23
|
+
<img src="https://img.shields.io/badge/platform-Termux%20%7C%20Android-0078D4?style=for-the-badge" alt="Platform">
|
|
24
24
|
</a>
|
|
25
25
|
<a href="https://kerneltermux.vercel.app">
|
|
26
|
-
<img src="https://img.shields.io/badge
|
|
26
|
+
<img src="https://img.shields.io/badge/Site-kerneltermux.vercel.app-0078D4?style=for-the-badge" alt="Website">
|
|
27
27
|
</a>
|
|
28
28
|
</p>
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
-
**
|
|
32
|
+
**Karnel Termux** is a modular development environment that transforms Termux into a complete workstation. With a single CLI (`karnel`), install and manage:
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Created by **Israel Marques**.
|
|
35
35
|
|
|
36
|
-
- **
|
|
37
|
-
- **7
|
|
38
|
-
- **5
|
|
39
|
-
- **
|
|
40
|
-
- **3 CLIs
|
|
41
|
-
- **
|
|
42
|
-
- **
|
|
43
|
-
- **
|
|
36
|
+
- **31 AI agents** for coding — Claude, Gemini, OpenCode, Ollama, Cline, karnelRoute and more
|
|
37
|
+
- **7 languages** — Node.js, Python, Go, Rust, C/C++, PHP, Perl
|
|
38
|
+
- **5 databases** — PostgreSQL, MariaDB, SQLite, MongoDB, Redis
|
|
39
|
+
- **24 dev tools** — gh, curl, fzf, bat, lsd, jq, tmux, openssh, snyk and more
|
|
40
|
+
- **3 deploy CLIs** — Vercel, Railway, Netlify
|
|
41
|
+
- **Professional editor** — code-server (VS Code in browser)
|
|
42
|
+
- **Second brain** — Memory system with AI search and idea graph
|
|
43
|
+
- **Voice commands** — Speak to your AI agents
|
|
44
44
|
|
|
45
45
|
> [!IMPORTANT]
|
|
46
|
-
>
|
|
46
|
+
> Designed exclusively for **Termux on Android**. Does not work on other platforms.
|
|
47
|
+
|
|
47
48
|
|
|
48
|
-
> [!NOTE]
|
|
49
|
-
> 💻 **Também disponível para Desktop:** [Karnel Desktop CLI](https://github.com/israelmarques1024-dotcom/karnel-termux-desktop-cli) — Gerenciador multiplataforma para Linux, macOS e Windows. Mesmo CLI, mesmos comandos, gerenciadores de pacote nativos.
|
|
50
49
|
|
|
51
50
|
---
|
|
52
51
|
|
|
53
|
-
##
|
|
52
|
+
## Installation
|
|
54
53
|
|
|
55
|
-
### Via curl (
|
|
54
|
+
### Via curl (recommended)
|
|
56
55
|
|
|
57
56
|
```bash
|
|
58
57
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/israelmarques1024-dotcom/karnel-termux/main/install.sh)"
|
|
@@ -70,7 +69,7 @@ npm install -g karnel-termux
|
|
|
70
69
|
pnpm add -g karnel-termux
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
|
|
72
|
+
After installation, run:
|
|
74
73
|
|
|
75
74
|
```bash
|
|
76
75
|
karnel
|
|
@@ -78,155 +77,150 @@ karnel
|
|
|
78
77
|
|
|
79
78
|
---
|
|
80
79
|
|
|
81
|
-
##
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
87
|
-
| `karnel
|
|
88
|
-
| `karnel
|
|
89
|
-
| `karnel
|
|
90
|
-
| `karnel
|
|
91
|
-
| `karnel
|
|
92
|
-
| `karnel
|
|
93
|
-
| `karnel
|
|
94
|
-
| `karnel
|
|
95
|
-
| `karnel
|
|
96
|
-
| `karnel
|
|
97
|
-
| `karnel
|
|
98
|
-
| `karnel
|
|
99
|
-
| `karnel
|
|
100
|
-
| `karnel
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
80
|
+
## Usage
|
|
81
|
+
|
|
82
|
+
### Main Commands
|
|
83
|
+
|
|
84
|
+
| Command | Description |
|
|
85
|
+
|---------|-------------|
|
|
86
|
+
| `karnel install <module>` | Install modules and tools |
|
|
87
|
+
| `karnel list <module>` | List available tools |
|
|
88
|
+
| `karnel show <module> --<tool>` | Show tool documentation |
|
|
89
|
+
| `karnel open <module>` | Open documentation in browser |
|
|
90
|
+
| `karnel update <module>` | Update modules or karnel |
|
|
91
|
+
| `karnel uninstall <module>` | Remove installed modules |
|
|
92
|
+
| `karnel reinstall <module>` | Reinstall modules |
|
|
93
|
+
| `karnel doctor termux` | Diagnose the Termux environment (30+ sections) |
|
|
94
|
+
| `karnel doctor code` | Detect project ecosystems and run code checks |
|
|
95
|
+
| `karnel brain` | Second brain — memories and search |
|
|
96
|
+
| `karnel env` | Manage environment variables |
|
|
97
|
+
| `karnel voice` | Voice commands for AI agents |
|
|
98
|
+
| `karnel start editor` | Start code-server (VS Code in browser) |
|
|
99
|
+
| `karnel pg` | PostgreSQL manager |
|
|
100
|
+
| `karnel init <template>` | Initialize projects with templates |
|
|
101
|
+
| `karnel deploy` | Deploy projects (Vercel, Railway, Netlify) |
|
|
102
|
+
| `karnel --version` | Show installed version |
|
|
103
|
+
|
|
104
|
+
### Modules
|
|
105
|
+
|
|
106
|
+
| Module | Description | Installation |
|
|
107
|
+
|--------|-------------|--------------|
|
|
108
108
|
| `lang` | Node.js, Python, Go, Rust, C/C++, PHP, Perl | `karnel install lang` |
|
|
109
109
|
| `db` | PostgreSQL, MariaDB, SQLite, MongoDB, Redis | `karnel install db` |
|
|
110
|
-
| `ai` |
|
|
111
|
-
| `editor` | code-server (VS Code
|
|
112
|
-
| `dev` | gh, curl, fzf, bat, lsd, jq
|
|
113
|
-
| `npm` | TypeScript, NestJS CLI, Prettier
|
|
110
|
+
| `ai` | 31 AI agents for coding | `karnel install ai` |
|
|
111
|
+
| `editor` | code-server (VS Code in browser) | `karnel install editor` |
|
|
112
|
+
| `dev` | gh, curl, fzf, bat, lsd, jq and more | `karnel install dev` |
|
|
113
|
+
| `npm` | TypeScript, NestJS CLI, Prettier and more | `karnel install npm` |
|
|
114
114
|
| `shell` | ZSH + Oh My Zsh + 10 plugins | `karnel install shell` |
|
|
115
|
-
| `ui` |
|
|
116
|
-
| `auto` |
|
|
115
|
+
| `ui` | Font, cursor, extra-keys, banner | `karnel install ui` |
|
|
116
|
+
| `auto` | Automation with n8n | `karnel install auto` |
|
|
117
117
|
| `deploy` | Vercel, Railway, Netlify | `karnel install deploy` |
|
|
118
118
|
|
|
119
119
|
---
|
|
120
120
|
|
|
121
|
-
##
|
|
121
|
+
## AI Agents (31)
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
|
-
karnel install ai
|
|
125
|
-
karnel install ai --opencode --ollama
|
|
124
|
+
karnel install ai # Install all
|
|
125
|
+
karnel install ai --opencode --ollama # Install specific agents
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
<details>
|
|
129
|
-
<summary><strong>
|
|
130
|
-
|
|
131
|
-
|
|
|
132
|
-
|
|
133
|
-
| **Qwen Code** | `--qwen-code` |
|
|
134
|
-
| **Gemini CLI** | `--gemini-cli` |
|
|
135
|
-
| **Claude Code** | `--claude-code` | CLI
|
|
136
|
-
| **Mistral Vibe** | `--mistral-vibe` |
|
|
137
|
-
| **OpenClaude** | `--openclaude` |
|
|
138
|
-
| **OpenClaw** | `--openclaw` |
|
|
139
|
-
| **Ollama** | `--ollama` |
|
|
140
|
-
| **Codex CLI** | `--codex` |
|
|
141
|
-
| **OpenCode** | `--opencode` |
|
|
142
|
-
| **MiMoCode** | `--mimocode` |
|
|
143
|
-
| **Engram** | `--engram` |
|
|
144
|
-
| **CodeGraph** | `--codegraph` |
|
|
145
|
-
| **Pi** | `--pi` |
|
|
146
|
-
| **Antigravity CLI** | `--antigravity-cli` |
|
|
147
|
-
| **MiniMax CLI** | `--minimax-cli` |
|
|
148
|
-
| **Gentle AI** | `--gentle-ai` |
|
|
149
|
-
| **GGA** | `--gga` |
|
|
150
|
-
| **Hermes Agent** | `--hermes-agent` |
|
|
151
|
-
| **Kimi Code** | `--kimi-code` |
|
|
152
|
-
| **Command Code** | `--command-code` |
|
|
153
|
-
| **Freebuff** | `--freebuff` |
|
|
154
|
-
| **Kilo Code CLI** | `--kilocode-cli` |
|
|
155
|
-
| **Kiro CLI** | `--kiro` |
|
|
156
|
-
| **Crush CLI** | `--crush` |
|
|
157
|
-
| **Odysseus** | `--odysseus` |
|
|
158
|
-
| **Kimchi CLI** | `--kimchi-code` |
|
|
159
|
-
| **Cline CLI** | `--cline` |
|
|
160
|
-
| **karnelRoute** | `--karnel-route` | AI Gateway
|
|
161
|
-
| **Context7** | `--ctx7` |
|
|
129
|
+
<summary><strong>View complete agent list</strong></summary>
|
|
130
|
+
|
|
131
|
+
| Agent | Flag | Description |
|
|
132
|
+
|-------|------|-------------|
|
|
133
|
+
| **Qwen Code** | `--qwen-code` | Alibaba coding assistant |
|
|
134
|
+
| **Gemini CLI** | `--gemini-cli` | Google Gemini assistant |
|
|
135
|
+
| **Claude Code** | `--claude-code` | Anthropic CLI with Claude AI |
|
|
136
|
+
| **Mistral Vibe** | `--mistral-vibe` | Mistral command-line assistant |
|
|
137
|
+
| **OpenClaude** | `--openclaude` | Open source Claude Code alternative |
|
|
138
|
+
| **OpenClaw** | `--openclaw` | Personal AI assistant |
|
|
139
|
+
| **Ollama** | `--ollama` | Run open source LLMs locally |
|
|
140
|
+
| **Codex CLI** | `--codex` | OpenAI coding agent |
|
|
141
|
+
| **OpenCode** | `--opencode` | Open source terminal agent |
|
|
142
|
+
| **MiMoCode** | `--mimocode` | Fast open source AI agent |
|
|
143
|
+
| **Engram** | `--engram` | Persistent memory system |
|
|
144
|
+
| **CodeGraph** | `--codegraph` | Code structure analysis |
|
|
145
|
+
| **Pi** | `--pi` | Minimalist terminal harness |
|
|
146
|
+
| **Antigravity CLI** | `--antigravity-cli` | Terminal interface for Antigravity |
|
|
147
|
+
| **MiniMax CLI** | `--minimax-cli` | Generate text, image, video and audio |
|
|
148
|
+
| **Gentle AI** | `--gentle-ai` | AI workflow ecosystem |
|
|
149
|
+
| **GGA** | `--gga` | Multi-provider automated code review |
|
|
150
|
+
| **Hermes Agent** | `--hermes-agent` | Nous Research self-improving agent |
|
|
151
|
+
| **Kimi Code** | `--kimi-code` | Kimi Code CLI |
|
|
152
|
+
| **Command Code** | `--command-code` | Agent that learns your style |
|
|
153
|
+
| **Freebuff** | `--freebuff` | Free community agent |
|
|
154
|
+
| **Kilo Code CLI** | `--kilocode-cli` | Native glibc CLI for Termux |
|
|
155
|
+
| **Kiro CLI** | `--kiro` | AWS AI coding assistant |
|
|
156
|
+
| **Crush CLI** | `--crush` | Charm AI agents CLI |
|
|
157
|
+
| **Odysseus** | `--odysseus` | Odysseus coding assistant |
|
|
158
|
+
| **Kimchi CLI** | `--kimchi-code` | Kimchi AI agent |
|
|
159
|
+
| **Cline CLI** | `--cline` | Autonomous coding agent (via proot-distro) |
|
|
160
|
+
| **karnelRoute** | `--karnel-route` | AI Gateway with 236+ providers |
|
|
161
|
+
| **Context7** | `--ctx7` | Documentation for AI assistants |
|
|
162
162
|
| **OpenSpec** | `--openspec` | Spec-Driven Development |
|
|
163
|
+
| **Copilot-Termux** | `--copilot-termux` | GitHub Copilot CLI adapted for Termux |
|
|
163
164
|
|
|
164
165
|
</details>
|
|
165
166
|
|
|
166
167
|
---
|
|
167
168
|
|
|
168
|
-
##
|
|
169
|
+
## karnel doctor
|
|
169
170
|
|
|
170
|
-
|
|
171
|
+
Doctor has exactly two operational subcommands:
|
|
171
172
|
|
|
172
173
|
```bash
|
|
173
|
-
karnel doctor
|
|
174
|
+
karnel doctor termux # 30+ Termux/Karnel diagnostic sections
|
|
175
|
+
karnel doctor termux --quick # Run essential system/package checks only
|
|
176
|
+
karnel doctor termux --fix # Apply queued fixes without group confirmation
|
|
177
|
+
|
|
178
|
+
karnel doctor code # Quick project analysis
|
|
179
|
+
karnel doctor code --standard . # Add security, deps, coverage and complexity
|
|
180
|
+
karnel doctor code --deep --json . # All 76 definitions as standalone JSON
|
|
181
|
+
karnel doctor code --fix . # Apply fixes classified as safe
|
|
174
182
|
```
|
|
175
183
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
9. Framework Karnel
|
|
186
|
-
10. Status dos agentes de IA
|
|
187
|
-
11. Configuração do shell
|
|
188
|
-
12. Compatibilidade Android
|
|
189
|
-
13. Termux:API
|
|
190
|
-
14. Configuração Git
|
|
191
|
-
15. Chaves SSH
|
|
192
|
-
16. Conectividade de rede
|
|
193
|
-
17. Servidor OpenSSH
|
|
194
|
-
18. Saúde do disco
|
|
195
|
-
19. Integridade dos dados Karnel
|
|
196
|
-
20. Geração de relatório
|
|
197
|
-
|
|
198
|
-
Cada verificação pode ser corrigida automaticamente com auto-fix.
|
|
184
|
+
Running `karnel doctor` without a subcommand defaults to `termux`.
|
|
185
|
+
|
|
186
|
+
The code analyzer recognizes 25 ecosystem labels and contains 76 check
|
|
187
|
+
definitions across 68 distinct tool labels. It detects subprojects, executes
|
|
188
|
+
checks in the matching project or subproject directory, preserves command exit status, and writes
|
|
189
|
+
timestamped text reports under `$KARNEL_DATA/doctor_code_reports/`.
|
|
190
|
+
|
|
191
|
+
Read the **[complete Doctor reference](docs/doctor/README.md)** for modes,
|
|
192
|
+
supported ecosystems, tool coverage, JSON schema, reports, and auto-fix safety.
|
|
199
193
|
|
|
200
194
|
---
|
|
201
195
|
|
|
202
|
-
##
|
|
196
|
+
## karnel brain — Second Brain
|
|
203
197
|
|
|
204
|
-
|
|
198
|
+
Integrated memory system with text search, AI-assisted questions, and graph visualization.
|
|
205
199
|
|
|
206
200
|
```bash
|
|
207
|
-
karnel brain save "
|
|
208
|
-
karnel brain search "postgres"
|
|
209
|
-
karnel brain graph
|
|
210
|
-
karnel brain sync
|
|
201
|
+
karnel brain save "my idea" # Save a thought
|
|
202
|
+
karnel brain search "postgres" # Search local memories by text
|
|
203
|
+
karnel brain graph # Visualize idea connections
|
|
204
|
+
karnel brain sync # Sync with private GitHub
|
|
211
205
|
```
|
|
212
206
|
|
|
213
207
|
---
|
|
214
208
|
|
|
215
|
-
##
|
|
209
|
+
## karnel voice
|
|
216
210
|
|
|
217
|
-
Capture
|
|
211
|
+
Capture audio from microphone, review in editor, copy to clipboard, and dispatch any AI agent with the transcribed prompt.
|
|
218
212
|
|
|
219
213
|
```bash
|
|
220
|
-
karnel voice opencode
|
|
221
|
-
karnel voice text
|
|
222
|
-
karnel voice claude-code --lang
|
|
223
|
-
karnel voice "!"
|
|
214
|
+
karnel voice opencode # Record -> edit -> opencode run
|
|
215
|
+
karnel voice text # Record -> edit -> print to terminal
|
|
216
|
+
karnel voice claude-code --lang en # Speak in English -> claude -p
|
|
217
|
+
karnel voice "!" # Shortcut for "text"
|
|
224
218
|
```
|
|
225
219
|
|
|
226
|
-
###
|
|
220
|
+
### Supported Agents (15)
|
|
227
221
|
|
|
228
|
-
|
|
|
229
|
-
|
|
222
|
+
| Agent | Command executed |
|
|
223
|
+
|-------|-----------------|
|
|
230
224
|
| `kilo` | `kilo --prompt "..."` |
|
|
231
225
|
| `opencode` | `opencode run "..."` |
|
|
232
226
|
| `claude-code` | `claude -p "..."` |
|
|
@@ -241,28 +235,28 @@ karnel voice "!" # Atalho para "text"
|
|
|
241
235
|
| `qwen-code` | `qwen -p "..."` |
|
|
242
236
|
| `crush` | `crush "..."` |
|
|
243
237
|
| `kiro` | `kiro-cli "..."` |
|
|
244
|
-
| `text` |
|
|
238
|
+
| `text` | Prints prompt to terminal |
|
|
245
239
|
|
|
246
|
-
###
|
|
240
|
+
### Options
|
|
247
241
|
|
|
248
|
-
| Flag |
|
|
249
|
-
|
|
250
|
-
| `--lang <code>` |
|
|
251
|
-
| `--raw` |
|
|
252
|
-
| `--no-clip` |
|
|
242
|
+
| Flag | Description |
|
|
243
|
+
|------|-------------|
|
|
244
|
+
| `--lang <code>` | Speech language: `pt-BR`, `en-US`, `es`, etc |
|
|
245
|
+
| `--raw` | Skip editor, use raw capture |
|
|
246
|
+
| `--no-clip` | Don't copy prompt to clipboard |
|
|
253
247
|
|
|
254
|
-
###
|
|
248
|
+
### Flow
|
|
255
249
|
|
|
256
250
|
```
|
|
257
|
-
|
|
251
|
+
Microphone -> termux-speech-to-text -> editor (edit) -> clipboard -> AI agent
|
|
258
252
|
```
|
|
259
253
|
|
|
260
|
-
1.
|
|
261
|
-
2.
|
|
262
|
-
3. Prompt
|
|
263
|
-
4.
|
|
254
|
+
1. Speak the prompt
|
|
255
|
+
2. Review and correct in editor
|
|
256
|
+
3. Prompt is copied to clipboard
|
|
257
|
+
4. AI agent is dispatched with the prompt
|
|
264
258
|
|
|
265
|
-
###
|
|
259
|
+
### Requirements
|
|
266
260
|
|
|
267
261
|
- Termux:API: `pkg install termux-api`
|
|
268
262
|
- App Termux:API: https://kerneltermux.vercel.app/termux/api
|
|
@@ -270,183 +264,194 @@ Microfone → termux-speech-to-text → editor (edição) → clipboard → AI a
|
|
|
270
264
|
|
|
271
265
|
---
|
|
272
266
|
|
|
273
|
-
##
|
|
267
|
+
## karnel pg — PostgreSQL
|
|
274
268
|
|
|
275
|
-
|
|
269
|
+
Manage PostgreSQL databases with simple commands:
|
|
276
270
|
|
|
277
271
|
```bash
|
|
278
|
-
karnel pg init && karnel pg start #
|
|
279
|
-
karnel pg create
|
|
280
|
-
karnel pg shell #
|
|
272
|
+
karnel pg init && karnel pg start # Initialize and start server
|
|
273
|
+
karnel pg create myapp # Create a database
|
|
274
|
+
karnel pg shell # Open psql console
|
|
281
275
|
```
|
|
282
276
|
|
|
283
277
|
---
|
|
284
278
|
|
|
285
|
-
##
|
|
279
|
+
## karnel init — Project Templates
|
|
286
280
|
|
|
287
|
-
|
|
281
|
+
Create pre-configured projects in seconds:
|
|
288
282
|
|
|
289
283
|
```bash
|
|
290
284
|
cd my-app && karnel init next # Next.js + TypeScript + Tailwind
|
|
291
285
|
cd my-api && karnel init express # Express + TypeORM
|
|
292
|
-
cd backend && karnel init nest # NestJS +
|
|
286
|
+
cd backend && karnel init nest # NestJS + authentication
|
|
293
287
|
```
|
|
294
288
|
|
|
295
|
-
| Template |
|
|
296
|
-
|
|
297
|
-
| `next` | Next.js
|
|
298
|
-
| `react` | React + Vite
|
|
299
|
-
| `express` | Express API
|
|
300
|
-
| `nest` | NestJS
|
|
301
|
-
| `python` | FastAPI
|
|
302
|
-
| `go` | Go
|
|
303
|
-
| `rust` | Rust
|
|
289
|
+
| Template | Description |
|
|
290
|
+
|----------|-------------|
|
|
291
|
+
| `next` | Next.js with Turbopack, TypeScript, Tailwind, React Query, Zustand |
|
|
292
|
+
| `react` | React + Vite with modern structure |
|
|
293
|
+
| `express` | Express API with TypeScript + TypeORM + migrations |
|
|
294
|
+
| `nest` | NestJS with TypeORM and JWT auth |
|
|
295
|
+
| `python` | FastAPI with SQLModel/SQLAlchemy |
|
|
296
|
+
| `go` | Go with Gin or Fiber |
|
|
297
|
+
| `rust` | Rust with Axum or Actix Web |
|
|
304
298
|
|
|
305
299
|
---
|
|
306
300
|
|
|
307
|
-
##
|
|
301
|
+
## karnel env
|
|
308
302
|
|
|
309
|
-
|
|
303
|
+
Manage environment variables securely:
|
|
310
304
|
|
|
311
305
|
```bash
|
|
312
|
-
karnel env set OPENAI_API_KEY #
|
|
313
|
-
karnel env list #
|
|
314
|
-
karnel env ls #
|
|
306
|
+
karnel env set OPENAI_API_KEY # Add key (hidden input)
|
|
307
|
+
karnel env list # List variables
|
|
308
|
+
karnel env ls # List variables
|
|
315
309
|
```
|
|
316
310
|
|
|
317
311
|
---
|
|
318
312
|
|
|
319
|
-
##
|
|
313
|
+
## karnel deploy
|
|
320
314
|
|
|
321
|
-
|
|
315
|
+
Deploy your projects directly from terminal:
|
|
322
316
|
|
|
323
317
|
```bash
|
|
324
|
-
karnel deploy vercel # Deploy
|
|
325
|
-
karnel deploy railway # Deploy
|
|
326
|
-
karnel deploy netlify # Deploy
|
|
318
|
+
karnel deploy vercel # Deploy to Vercel
|
|
319
|
+
karnel deploy railway # Deploy to Railway
|
|
320
|
+
karnel deploy netlify # Deploy to Netlify
|
|
327
321
|
```
|
|
328
322
|
|
|
329
|
-
|
|
323
|
+
Platform CLIs are installed automatically.
|
|
330
324
|
|
|
331
325
|
---
|
|
332
326
|
|
|
333
|
-
##
|
|
327
|
+
## karnel open
|
|
334
328
|
|
|
335
|
-
|
|
329
|
+
Open documentation for any module or tool in browser:
|
|
336
330
|
|
|
337
331
|
```bash
|
|
338
|
-
karnel open ai #
|
|
339
|
-
karnel open db #
|
|
340
|
-
karnel open ai --opencode #
|
|
332
|
+
karnel open ai # Open AI module docs
|
|
333
|
+
karnel open db # Open DB module docs
|
|
334
|
+
karnel open ai --opencode # Open OpenCode docs on site
|
|
341
335
|
```
|
|
342
336
|
|
|
343
|
-
|
|
337
|
+
Documentation loads from https://kerneltermux.vercel.app.
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## Documentation
|
|
342
|
+
|
|
343
|
+
- [Documentation index](docs/README.md)
|
|
344
|
+
- [CLI reference](docs/cli/README.md)
|
|
345
|
+
- [Doctor reference](docs/doctor/README.md)
|
|
346
|
+
- [Architecture](docs/ARCHITECTURE.md)
|
|
347
|
+
- [Documentation changelog](docs/CHANGELOG.md)
|
|
348
|
+
- [Official website](https://kerneltermux.vercel.app)
|
|
344
349
|
|
|
345
350
|
---
|
|
346
351
|
|
|
347
|
-
##
|
|
352
|
+
## Examples
|
|
348
353
|
|
|
349
354
|
```bash
|
|
350
|
-
#
|
|
355
|
+
# Install databases
|
|
351
356
|
karnel install db --postgresql --sqlite
|
|
352
357
|
|
|
353
|
-
#
|
|
358
|
+
# Install specific AI agents
|
|
354
359
|
karnel install ai --opencode --ollama --claude-code
|
|
355
360
|
|
|
356
|
-
#
|
|
361
|
+
# View available tools
|
|
357
362
|
karnel list ai
|
|
358
363
|
|
|
359
|
-
#
|
|
364
|
+
# View tool documentation
|
|
360
365
|
karnel show ai --opencode
|
|
361
366
|
|
|
362
|
-
#
|
|
367
|
+
# Update everything
|
|
363
368
|
karnel update karnel
|
|
364
369
|
|
|
365
|
-
#
|
|
370
|
+
# Reinstall a module
|
|
366
371
|
karnel reinstall shell
|
|
367
372
|
|
|
368
|
-
#
|
|
373
|
+
# Full diagnosis
|
|
369
374
|
karnel doctor
|
|
370
375
|
|
|
371
|
-
# Deploy
|
|
376
|
+
# Deploy directly
|
|
372
377
|
karnel deploy vercel
|
|
373
378
|
```
|
|
374
379
|
|
|
375
380
|
---
|
|
376
381
|
|
|
377
|
-
##
|
|
382
|
+
## Project Structure
|
|
378
383
|
|
|
379
384
|
```
|
|
380
385
|
karnel/
|
|
381
386
|
├── karnel/
|
|
382
|
-
│ ├── bin/ #
|
|
387
|
+
│ ├── bin/ # Binary (karnel)
|
|
383
388
|
│ ├── cli/
|
|
384
|
-
│ │ ├── commands/ #
|
|
385
|
-
│ │ └── karnel.sh # CLI
|
|
386
|
-
│ ├── modules/ #
|
|
387
|
-
│ ├── tools/ #
|
|
388
|
-
│ │ ├── ai/ #
|
|
389
|
-
│ │ ├── lang/ #
|
|
390
|
-
│ │ ├── db/ #
|
|
391
|
-
│ │ ├── dev/ #
|
|
392
|
-
│ │ ├── editor/ #
|
|
393
|
-
│ │ ├── npm/ #
|
|
394
|
-
│ │ ├── shell/ #
|
|
395
|
-
│ │ ├── ui/ #
|
|
396
|
-
│ │ ├── auto/ #
|
|
397
|
-
│ │ └── deploy/ # CLIs
|
|
398
|
-
│ └── utils/ #
|
|
399
|
-
├── install.sh #
|
|
400
|
-
├── package.json #
|
|
389
|
+
│ │ ├── commands/ # CLI commands (install, list, show, etc.)
|
|
390
|
+
│ │ └── karnel.sh # Main CLI (with TUI)
|
|
391
|
+
│ ├── modules/ # Module orchestrators
|
|
392
|
+
│ ├── tools/ # Tool installers
|
|
393
|
+
│ │ ├── ai/ # 31 AI agents
|
|
394
|
+
│ │ ├── lang/ # Languages
|
|
395
|
+
│ │ ├── db/ # Databases
|
|
396
|
+
│ │ ├── dev/ # Dev tools
|
|
397
|
+
│ │ ├── editor/ # Code editor
|
|
398
|
+
│ │ ├── npm/ # Global npm packages
|
|
399
|
+
│ │ ├── shell/ # ZSH plugins
|
|
400
|
+
│ │ ├── ui/ # Termux interface
|
|
401
|
+
│ │ ├── auto/ # Automation
|
|
402
|
+
│ │ └── deploy/ # Deploy CLIs
|
|
403
|
+
│ └── utils/ # Utilities (banner, log, env, etc.)
|
|
404
|
+
├── install.sh # Installation script
|
|
405
|
+
├── package.json # npm/pnpm publishing
|
|
401
406
|
└── .github/workflows/ # CI/CD
|
|
402
407
|
```
|
|
403
408
|
|
|
404
409
|
---
|
|
405
410
|
|
|
406
|
-
##
|
|
411
|
+
## Configuration
|
|
407
412
|
|
|
408
|
-
###
|
|
413
|
+
### Environment Variables
|
|
409
414
|
|
|
410
415
|
```bash
|
|
411
|
-
export KARNEL_DEBUG=1 #
|
|
416
|
+
export KARNEL_DEBUG=1 # Debug logs
|
|
412
417
|
```
|
|
413
418
|
|
|
414
|
-
###
|
|
419
|
+
### Directories
|
|
415
420
|
|
|
416
|
-
|
|
|
417
|
-
|
|
418
|
-
| `~/.local/share/karnel-data/` |
|
|
419
|
-
| `~/.cache/karnel/` | Logs
|
|
420
|
-
| `~/.config/karnel/` |
|
|
421
|
+
| Directory | Description |
|
|
422
|
+
|-----------|-------------|
|
|
423
|
+
| `~/.local/share/karnel-data/` | Persistent tool data |
|
|
424
|
+
| `~/.cache/karnel/` | Logs and cache |
|
|
425
|
+
| `~/.config/karnel/` | User configuration |
|
|
421
426
|
|
|
422
427
|
---
|
|
423
428
|
|
|
424
|
-
##
|
|
429
|
+
## Automatic Updates
|
|
425
430
|
|
|
426
|
-
|
|
431
|
+
The framework checks for updates every 24 hours in background.
|
|
427
432
|
|
|
428
433
|
```bash
|
|
429
|
-
karnel update karnel #
|
|
434
|
+
karnel update karnel # Update the framework
|
|
430
435
|
```
|
|
431
436
|
|
|
432
437
|
---
|
|
433
438
|
|
|
434
|
-
##
|
|
439
|
+
## Support the Project
|
|
435
440
|
|
|
436
|
-
|
|
441
|
+
If Karnel Termux has been useful to you, consider supporting via Pix or starring on GitHub — it helps other developers discover the project.
|
|
437
442
|
|
|
438
443
|
**Pix:** `037f07bd-a326-42b6-a5a3-f29b36e703db`
|
|
439
444
|
|
|
440
445
|
---
|
|
441
446
|
|
|
442
|
-
##
|
|
447
|
+
## License
|
|
443
448
|
|
|
444
|
-
MIT ©
|
|
449
|
+
MIT © Israel Marques
|
|
445
450
|
|
|
446
451
|
---
|
|
447
452
|
|
|
448
453
|
<p align="center">
|
|
449
454
|
<a href="https://kerneltermux.vercel.app">
|
|
450
|
-
<img src="https://img.shields.io/badge
|
|
455
|
+
<img src="https://img.shields.io/badge/Full%20Documentation-0078D4?style=for-the-badge" alt="Documentation">
|
|
451
456
|
</a>
|
|
452
|
-
</p>
|
|
457
|
+
</p>
|