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