krims-code-cli 1.5.2__tar.gz

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.
Files changed (47) hide show
  1. krims_code_cli-1.5.2/LICENSE +21 -0
  2. krims_code_cli-1.5.2/PKG-INFO +336 -0
  3. krims_code_cli-1.5.2/README.md +313 -0
  4. krims_code_cli-1.5.2/krims_code_cli.egg-info/PKG-INFO +336 -0
  5. krims_code_cli-1.5.2/krims_code_cli.egg-info/SOURCES.txt +45 -0
  6. krims_code_cli-1.5.2/krims_code_cli.egg-info/dependency_links.txt +1 -0
  7. krims_code_cli-1.5.2/krims_code_cli.egg-info/entry_points.txt +2 -0
  8. krims_code_cli-1.5.2/krims_code_cli.egg-info/top_level.txt +1 -0
  9. krims_code_cli-1.5.2/krims_pip/__init__.py +1 -0
  10. krims_code_cli-1.5.2/krims_pip/cli.py +50 -0
  11. krims_code_cli-1.5.2/krims_pip/node_project/bin/krims-code.js +10 -0
  12. krims_code_cli-1.5.2/krims_pip/node_project/package-lock.json +793 -0
  13. krims_code_cli-1.5.2/krims_pip/node_project/package.json +46 -0
  14. krims_code_cli-1.5.2/krims_pip/node_project/src/agent.js +415 -0
  15. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/fallback.js +239 -0
  16. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/google.js +87 -0
  17. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/providers.js +203 -0
  18. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/router.js +146 -0
  19. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/search.js +94 -0
  20. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/telemetry.js +125 -0
  21. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/tokens.js +101 -0
  22. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/universal.js +507 -0
  23. krims_code_cli-1.5.2/krims_pip/node_project/src/ai/xai.js +50 -0
  24. krims_code_cli-1.5.2/krims_pip/node_project/src/chat.js +2543 -0
  25. krims_code_cli-1.5.2/krims_pip/node_project/src/cli.js +632 -0
  26. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/commit.js +157 -0
  27. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/dashboard.js +59 -0
  28. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/github.js +349 -0
  29. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/index.js +67 -0
  30. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/status.js +66 -0
  31. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/teamwork-preview.js +326 -0
  32. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/theme.js +42 -0
  33. krims_code_cli-1.5.2/krims_pip/node_project/src/commands/themes.js +30 -0
  34. krims_code_cli-1.5.2/krims_pip/node_project/src/config.js +400 -0
  35. krims_code_cli-1.5.2/krims_pip/node_project/src/dashboard.js +112 -0
  36. krims_code_cli-1.5.2/krims_pip/node_project/src/file-parser.js +164 -0
  37. krims_code_cli-1.5.2/krims_pip/node_project/src/git.js +41 -0
  38. krims_code_cli-1.5.2/krims_pip/node_project/src/mic.js +220 -0
  39. krims_code_cli-1.5.2/krims_pip/node_project/src/modes.js +92 -0
  40. krims_code_cli-1.5.2/krims_pip/node_project/src/telemetry-server.js +855 -0
  41. krims_code_cli-1.5.2/krims_pip/node_project/src/ui/banner.js +204 -0
  42. krims_code_cli-1.5.2/krims_pip/node_project/src/ui/dashboard.html +834 -0
  43. krims_code_cli-1.5.2/krims_pip/node_project/src/ui/spinner.js +43 -0
  44. krims_code_cli-1.5.2/krims_pip/node_project/src/ui/theme.js +624 -0
  45. krims_code_cli-1.5.2/krims_pip/node_project/src/updater.js +196 -0
  46. krims_code_cli-1.5.2/setup.cfg +4 -0
  47. krims_code_cli-1.5.2/setup.py +62 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Krishiv PB (@Krylo-60)
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,336 @@
1
+ Metadata-Version: 2.4
2
+ Name: krims-code-cli
3
+ Version: 1.5.2
4
+ Summary: Krims Code AI — Universal AI Gateway CLI (Python Wrapper)
5
+ Home-page: https://github.com/Krylo-60/krims-code-cli
6
+ Author: Krishiv PB
7
+ Author-email: krylobloxyt@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # Krims Code AI CLI
25
+
26
+ > ⚡ **Universal AI Gateway** — 13+ providers, free & paid models, cyberpunk terminal
27
+
28
+ [![npm version](https://img.shields.io/npm/v/@krishivpb60/krims-code-cli.svg)](https://www.npmjs.com/package/@krishivpb60/krims-code-cli)
29
+ [![License: MIT](https://img.shields.io/badge/License-MIT-cyan.svg)](LICENSE)
30
+ [![Node.js](https://img.shields.io/badge/Node.js-≥18.0.0-green.svg)](https://nodejs.org)
31
+
32
+ ```
33
+ ╔═══════════════════════════════════════════════════════════╗
34
+ ║ █████╗ ███████╗████████╗██╗ ██╗███████╗██████╗ ║
35
+ ║ ██╔══██╗██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔══██╗ ║
36
+ ║ ███████║█████╗ ██║ ████████║█████╗ ██████╔╝ ║
37
+ ║ ██╔══██║██╔══╝ ██║ ██╔══██║██╔══╝ ██╔══██╗ ║
38
+ ║ ██║ ██║███████╗ ██║ ██║ ██║███████╗██║ ██║ ║
39
+ ║ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ║
40
+ ╚═══════════════════════════════════════════════════════════╝
41
+ ```
42
+
43
+ **Krims Code AI v110** is a production-ready, globally installable command-line AI assistant that connects to **any AI provider in the world** — both free and paid. Chat with GPT-4o, Claude, Gemini, Llama, Mixtral, DeepSeek, and 50+ more models, all from one terminal.
44
+
45
+ ---
46
+
47
+ ## ✨ Features
48
+
49
+ - 🌐 **13+ AI Providers** — OpenAI, Anthropic, Google, Groq, Together, Mistral, OpenRouter, DeepSeek, Cerebras, Cohere, Perplexity, Fireworks, xAI
50
+ - 🆓 **Free Models Included** — Groq, Together AI, Cerebras, OpenRouter, and Cohere all offer generous free tiers
51
+ - 💬 **Interactive Chat** — Full terminal chat with slash commands, mode switching, and file attachments
52
+ - ⚡ **Single-Shot Queries** — Quick one-off questions directly from the CLI
53
+ - 🧠 **4 Reasoning Modes** — Synthesis, Research, Architect, Titan Fusion — each with unique system prompts
54
+ - 📎 **File Context Injection** — Attach code files, logs, or documents for context-aware AI responses
55
+ - 🤖 **Autopilot Debug Loop** — Automatically correct build/test failures using AI self-correcting feedback loop
56
+ - 🌿 **Interactive Git TUI** — Beautiful cyberpunk ASCII branch tree commit history & interactive file staging checkbox menu
57
+ - 📊 **Web HUD Dashboard** — Companion local zero-dependency telemetry dashboard displaying real-time latencies & provider status
58
+ - 🎤 **Voice Microphone Input** — Record voice input directly from your terminal and transcribe it to text using Google Gemini or Whisper
59
+ - 🔄 **Failover Mesh** — Automatic failback across all configured providers
60
+ - 🔢 **Local Math Solver** — Evaluates mathematical expressions without an API call
61
+ - 🤖 **Krylo Companion** — Offline cyberpunk companion bot when no API keys are configured
62
+ - 🔐 **Your Keys, Your Control** — API keys stored locally on YOUR machine, never transmitted anywhere
63
+ - 📤 **Export Conversations** — Save full chat history as Markdown files
64
+ - 🎨 **Cyberpunk UI** — Neon colors, ASCII art, signal bars, and mode badges
65
+ - 🎭 **4 Color Themes** — Cyberpunk, Matrix, Synthwave, Crimson — switch with `/theme`
66
+ - ⌨️ **Custom Commands** — Create reusable prompt shortcuts with `/cmd add`
67
+ - 📝 **File Creation** — AI can create files on your system with path override prompts
68
+ - 📊 **Live Telemetry** — Real-time response latency & tokens/sec in the status bar
69
+ - 🎮 **Mini-Game** — Built-in mainframe hacking game (`/game`)
70
+ - 📋 **Clipboard Copy** — Copy last response to clipboard with `/copy`
71
+
72
+ ---
73
+
74
+ ## 🚀 Quick Start
75
+
76
+ ### Install globally via npm
77
+
78
+ ```bash
79
+ npm install -g @krishivpb60/krims-code-cli
80
+ ```
81
+
82
+ ### Or run directly with npx
83
+
84
+ ```bash
85
+ npx @krishivpb60/krims-code-cli chat
86
+ ```
87
+
88
+ ### Or install via pip (Python wrapper)
89
+
90
+ ```bash
91
+ pip install krims-code-agent-cli
92
+ # Run via terminal:
93
+ Krims Code-pip chat
94
+ ```
95
+
96
+ ### Setup (Interactive Wizard)
97
+
98
+ ```bash
99
+ Krims Code setup
100
+ ```
101
+
102
+ The wizard walks you through configuring providers — **start with free ones!**
103
+
104
+ ### Or set keys manually
105
+
106
+ ```bash
107
+ # Free providers (recommended to start)
108
+ krims-code config set GROQ_API_KEY gsk_your_key_here
109
+ krims-code config set GOOGLE_API_KEY AIza_your_key_here
110
+ krims-code config set OPENROUTER_API_KEY sk-or-your_key_here
111
+
112
+ # Paid providers
113
+ krims-code config set OPENAI_API_KEY sk-your_key_here
114
+ krims-code config set ANTHROPIC_API_KEY sk-ant-your_key_here
115
+ ```
116
+
117
+ ### Start chatting
118
+
119
+ ```bash
120
+ Krims Code chat
121
+ ```
122
+
123
+ ### Quick one-shot query
124
+
125
+ ```bash
126
+ Krims Code ask "Explain quantum computing in simple terms"
127
+ ```
128
+
129
+ ---
130
+
131
+ ## 📦 Supported Providers
132
+
133
+ | Provider | Key | Free Tier | Default Model |
134
+ |----------|-----|-----------|---------------|
135
+ | **Groq** | `GROQ_API_KEY` | ✅ Generous | `llama-3.3-70b-versatile` |
136
+ | **Together AI** | `TOGETHER_API_KEY` | ✅ Free credits | `Meta-Llama-3.1-70B-Instruct-Turbo` |
137
+ | **Cerebras** | `CEREBRAS_API_KEY` | ✅ Free tier | `llama-3.3-70b` |
138
+ | **OpenRouter** | `OPENROUTER_API_KEY` | ✅ Free models | `llama-3.1-70b-instruct:free` |
139
+ | **Google Gemini** | `GOOGLE_API_KEY` | ✅ Free tier | `gemini-2.5-flash` |
140
+ | **Cohere** | `COHERE_API_KEY` | ✅ Dev free | `command-r-plus` |
141
+ | **Fireworks AI** | `FIREWORKS_API_KEY` | ✅ Free tier | `llama-v3p1-70b-instruct` |
142
+ | **OpenAI** | `OPENAI_API_KEY` | 💳 Paid | `gpt-4o` |
143
+ | **Anthropic** | `ANTHROPIC_API_KEY` | 💳 Paid | `claude-sonnet-4` |
144
+ | **xAI** | `XAI_API_KEY` | 💳 Paid | `grok-2` |
145
+ | **Mistral** | `MISTRAL_API_KEY` | 💳 Paid | `mistral-large-latest` |
146
+ | **DeepSeek** | `DEEPSEEK_API_KEY` | 💳 Paid | `deepseek-chat` |
147
+ | **Perplexity** | `PERPLEXITY_API_KEY` | 💳 Paid | `sonar` |
148
+
149
+ > 💡 **Tip:** Start with **Groq** (fastest, free) or **Google Gemini** (most capable free tier). You can configure multiple providers and Krims Code will automatically failover between them!
150
+
151
+ ---
152
+
153
+ ## 🎮 Commands
154
+
155
+ ### Core Commands
156
+
157
+ ```bash
158
+ Krims Code chat # Interactive chat session
159
+ Krims Code ask "your question" # Single-shot query
160
+ Krims Code setup # Guided provider setup wizard
161
+ ```
162
+
163
+ ### Configuration
164
+
165
+ ```bash
166
+ krims-code config set <KEY> <value> # Set a config value
167
+ krims-code config get <KEY> # Get a config value
168
+ krims-code config list # List all config (keys masked)
169
+ krims-code config delete <KEY> # Delete a config key
170
+ krims-code config reset # Delete all config
171
+ krims-code config path # Show config file location
172
+ ```
173
+
174
+ ### Discovery
175
+
176
+ ```bash
177
+ Krims Code providers # List all 13+ supported providers
178
+ Krims Code providers --free # Show only free-tier providers
179
+ Krims Code models # List all available models
180
+ Krims Code models groq # Models for a specific provider
181
+ Krims Code modes # List reasoning modes
182
+ Krims Code status # System status & active providers
183
+ ```
184
+
185
+ ### Flags
186
+
187
+ ```bash
188
+ Krims Code ask "prompt" --mode research # Use specific reasoning mode
189
+ Krims Code ask "prompt" --file error.log # Attach file context
190
+ Krims Code ask "prompt" --model gpt-4o # Override model
191
+ Krims Code ask "prompt" --raw # Raw text output (for piping)
192
+ Krims Code chat --mode architect # Start chat in specific mode
193
+ ```
194
+
195
+ ---
196
+
197
+ ## 💬 Chat Commands
198
+
199
+ Inside interactive chat mode, use these slash commands:
200
+
201
+ | Command | Description |
202
+ |---------|-------------|
203
+ | `/help` | Show all commands |
204
+ | `/mode <name>` | Switch reasoning mode (synthesis, research, architect, titan) |
205
+ | `/modes` | List all modes with signal bars |
206
+ | `/theme <name>` | Switch visual theme (cyberpunk, matrix, synthwave, crimson) |
207
+ | `/themes` | List available color themes |
208
+ | `/attach <file>` | Attach a file for context (supports Tab autocomplete!) |
209
+ | `/files` | List attached files |
210
+ | `/clear` | Clear terminal screen |
211
+ | `/providers` | Show active providers |
212
+ | `/export` | Export chat to Markdown |
213
+ | `/copy` | Copy last response to clipboard |
214
+ | `/write <file>` | Extract last code block and save to file |
215
+ | `/cmd list` | List custom command shortcuts |
216
+ | `/cmd add <name> <template>` | Create a custom command shortcut |
217
+ | `/cmd remove <name>` | Delete a custom command |
218
+ | `/game` | Start the mainframe hacking mini-game |
219
+ | `/history` | List, switch, and resume past interactive chat sessions |
220
+ | `/history-clear` | Clear saved persistent chat history |
221
+ | `/autopilot <mode\|debug [cmd]>` | View/switch autopilot safety level or run autonomous debug loop |
222
+ | `/git` | Launch interactive cyberpunk Git TUI and file stager checkbox menu |
223
+ | `/github <status\|issues\|prs>` | Git/GitHub orchestration, auto-staging, semantic AI commit generation, and remote sync |
224
+ | `/teamwork-preview` | Render real-time multi-agent matrix status dashboard with heartbeats & tasks |
225
+ | `/dashboard` | Spawn zero-dependency local web server and launch telemetry dashboard HUD |
226
+ | `/mic` | Record audio voice input from microphone and transcribe to text |
227
+ | `/tokens` | View detailed session token usage and exchanges telemetry |
228
+ | `/update` | Force check for updates and update Krims Code CLI manually |
229
+ | `/review` | Run git diff and stream an AI code review |
230
+ | `/diagnose [cmd]` | Run build/tests and AI-debug any errors |
231
+ | `/explain <file>` | AI-explain the design and logic of a file |
232
+ | `/refactor <file>` | AI-refactor the code of a target file |
233
+ | `/bug <file>` | Scan a file to detect logical edge case failures |
234
+ | `/doc <file>` | Write documentation, inline comments, or JSDoc |
235
+ | `/translate <file> <lang>` | AI-translate file code into another target language |
236
+ | `/exit` | End session |
237
+
238
+ ---
239
+
240
+ ## 🧠 Reasoning Modes
241
+
242
+ | Mode | Layer | Style | Signal |
243
+ |------|-------|-------|--------|
244
+ | **Synthesis** | v2.5 | Balanced, clean, direct | ████████░░ 80% |
245
+ | **Research** | v104 | Deep analysis, evidence-based | █████████░ 85% |
246
+ | **Architect** | v55 | Systems thinking, debugging | █████████░ 90% |
247
+ | **Titan Fusion** | v110 | Premium, maximum signal density | █████████░ 95% |
248
+
249
+ ---
250
+
251
+ ## 🔐 Security
252
+
253
+ - **Your keys stay on YOUR machine** — stored at `~/.krims-code/config.json`
254
+ - **No keys are bundled** in the package
255
+ - **No telemetry** — zero data collection
256
+ - **Keys are masked** when displayed (`krims-code config list`)
257
+ - **Environment variables** also supported as fallback
258
+
259
+ ---
260
+
261
+ ## 🔄 Failover Mesh
262
+
263
+ Krims Code routes your prompt through all configured providers automatically:
264
+
265
+ ```
266
+ Your Prompt
267
+ ↓
268
+ [Provider 1] → Success? → Response ✓
269
+ ↓ (fail)
270
+ [Provider 2] → Success? → Response ✓
271
+ ↓ (fail)
272
+ [Provider N] → Success? → Response ✓
273
+ ↓ (all fail)
274
+ [Krylo Companion] → Local Response ✓
275
+ ```
276
+
277
+ If a provider returns an error (rate limit, quota, etc.), Krims Code automatically tries the next one. Configure multiple free providers for maximum resilience!
278
+
279
+ ---
280
+
281
+ ## 📁 File Attachment
282
+
283
+ Attach code files, logs, configs, or documents for context-aware responses:
284
+
285
+ ```bash
286
+ # From CLI
287
+ Krims Code ask "What's wrong with this code?" --file buggy.js
288
+
289
+ # In chat mode
290
+ /attach error.log
291
+ What errors are in this file?
292
+ ```
293
+
294
+ **Supported file types:** `.js`, `.ts`, `.py`, `.html`, `.css`, `.json`, `.md`, `.txt`, `.log`, `.yaml`, `.xml`, `.toml`, `.sql`, `.go`, `.rs`, `.java`, `.c`, `.cpp`, `.rb`, `.php`, `.swift`, `.kt`, `.dart`, `.vue`, `.svelte`, `.sh`, `.bat`, `.ps1`, `.env`, `.csv`
295
+
296
+ ---
297
+
298
+ ## 🏗️ Development
299
+
300
+ ```bash
301
+ # Clone the repo
302
+ git clone https://github.com/Krylo-60/krims-code-cli.git
303
+ cd krims-code-cli
304
+
305
+ # Install dependencies
306
+ npm install
307
+
308
+ # Link for local development
309
+ npm link
310
+
311
+ # Test
312
+ Krims Code --help
313
+ Krims Code status
314
+ Krims Code ask "hello"
315
+ ```
316
+
317
+ ---
318
+
319
+ ## 📄 License
320
+
321
+ MIT License — see [LICENSE](LICENSE) for details.
322
+
323
+ ---
324
+
325
+ ## 👨‍💻 Author
326
+
327
+ **Krishiv PB** ([@Krylo-60](https://github.com/Krylo-60))
328
+
329
+ > *"Stay cyberpunk. âš¡"*
330
+
331
+ ---
332
+
333
+ <p align="center">
334
+ <b>⚡ Krims Code AI v110 — Fusion Command Station ⚡</b><br>
335
+ <i>Universal AI Gateway for the Terminal</i>
336
+ </p>
@@ -0,0 +1,313 @@
1
+ # Krims Code AI CLI
2
+
3
+ > ⚡ **Universal AI Gateway** — 13+ providers, free & paid models, cyberpunk terminal
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@krishivpb60/krims-code-cli.svg)](https://www.npmjs.com/package/@krishivpb60/krims-code-cli)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-cyan.svg)](LICENSE)
7
+ [![Node.js](https://img.shields.io/badge/Node.js-≥18.0.0-green.svg)](https://nodejs.org)
8
+
9
+ ```
10
+ ╔═══════════════════════════════════════════════════════════╗
11
+ ║ █████╗ ███████╗████████╗██╗ ██╗███████╗██████╗ ║
12
+ ║ ██╔══██╗██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔══██╗ ║
13
+ ║ ███████║█████╗ ██║ ████████║█████╗ ██████╔╝ ║
14
+ ║ ██╔══██║██╔══╝ ██║ ██╔══██║██╔══╝ ██╔══██╗ ║
15
+ ║ ██║ ██║███████╗ ██║ ██║ ██║███████╗██║ ██║ ║
16
+ ║ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ║
17
+ ╚═══════════════════════════════════════════════════════════╝
18
+ ```
19
+
20
+ **Krims Code AI v110** is a production-ready, globally installable command-line AI assistant that connects to **any AI provider in the world** — both free and paid. Chat with GPT-4o, Claude, Gemini, Llama, Mixtral, DeepSeek, and 50+ more models, all from one terminal.
21
+
22
+ ---
23
+
24
+ ## ✨ Features
25
+
26
+ - 🌐 **13+ AI Providers** — OpenAI, Anthropic, Google, Groq, Together, Mistral, OpenRouter, DeepSeek, Cerebras, Cohere, Perplexity, Fireworks, xAI
27
+ - 🆓 **Free Models Included** — Groq, Together AI, Cerebras, OpenRouter, and Cohere all offer generous free tiers
28
+ - 💬 **Interactive Chat** — Full terminal chat with slash commands, mode switching, and file attachments
29
+ - ⚡ **Single-Shot Queries** — Quick one-off questions directly from the CLI
30
+ - 🧠 **4 Reasoning Modes** — Synthesis, Research, Architect, Titan Fusion — each with unique system prompts
31
+ - 📎 **File Context Injection** — Attach code files, logs, or documents for context-aware AI responses
32
+ - 🤖 **Autopilot Debug Loop** — Automatically correct build/test failures using AI self-correcting feedback loop
33
+ - 🌿 **Interactive Git TUI** — Beautiful cyberpunk ASCII branch tree commit history & interactive file staging checkbox menu
34
+ - 📊 **Web HUD Dashboard** — Companion local zero-dependency telemetry dashboard displaying real-time latencies & provider status
35
+ - 🎤 **Voice Microphone Input** — Record voice input directly from your terminal and transcribe it to text using Google Gemini or Whisper
36
+ - 🔄 **Failover Mesh** — Automatic failback across all configured providers
37
+ - 🔢 **Local Math Solver** — Evaluates mathematical expressions without an API call
38
+ - 🤖 **Krylo Companion** — Offline cyberpunk companion bot when no API keys are configured
39
+ - 🔐 **Your Keys, Your Control** — API keys stored locally on YOUR machine, never transmitted anywhere
40
+ - 📤 **Export Conversations** — Save full chat history as Markdown files
41
+ - 🎨 **Cyberpunk UI** — Neon colors, ASCII art, signal bars, and mode badges
42
+ - 🎭 **4 Color Themes** — Cyberpunk, Matrix, Synthwave, Crimson — switch with `/theme`
43
+ - ⌨️ **Custom Commands** — Create reusable prompt shortcuts with `/cmd add`
44
+ - 📝 **File Creation** — AI can create files on your system with path override prompts
45
+ - 📊 **Live Telemetry** — Real-time response latency & tokens/sec in the status bar
46
+ - 🎮 **Mini-Game** — Built-in mainframe hacking game (`/game`)
47
+ - 📋 **Clipboard Copy** — Copy last response to clipboard with `/copy`
48
+
49
+ ---
50
+
51
+ ## 🚀 Quick Start
52
+
53
+ ### Install globally via npm
54
+
55
+ ```bash
56
+ npm install -g @krishivpb60/krims-code-cli
57
+ ```
58
+
59
+ ### Or run directly with npx
60
+
61
+ ```bash
62
+ npx @krishivpb60/krims-code-cli chat
63
+ ```
64
+
65
+ ### Or install via pip (Python wrapper)
66
+
67
+ ```bash
68
+ pip install krims-code-agent-cli
69
+ # Run via terminal:
70
+ Krims Code-pip chat
71
+ ```
72
+
73
+ ### Setup (Interactive Wizard)
74
+
75
+ ```bash
76
+ Krims Code setup
77
+ ```
78
+
79
+ The wizard walks you through configuring providers — **start with free ones!**
80
+
81
+ ### Or set keys manually
82
+
83
+ ```bash
84
+ # Free providers (recommended to start)
85
+ krims-code config set GROQ_API_KEY gsk_your_key_here
86
+ krims-code config set GOOGLE_API_KEY AIza_your_key_here
87
+ krims-code config set OPENROUTER_API_KEY sk-or-your_key_here
88
+
89
+ # Paid providers
90
+ krims-code config set OPENAI_API_KEY sk-your_key_here
91
+ krims-code config set ANTHROPIC_API_KEY sk-ant-your_key_here
92
+ ```
93
+
94
+ ### Start chatting
95
+
96
+ ```bash
97
+ Krims Code chat
98
+ ```
99
+
100
+ ### Quick one-shot query
101
+
102
+ ```bash
103
+ Krims Code ask "Explain quantum computing in simple terms"
104
+ ```
105
+
106
+ ---
107
+
108
+ ## 📦 Supported Providers
109
+
110
+ | Provider | Key | Free Tier | Default Model |
111
+ |----------|-----|-----------|---------------|
112
+ | **Groq** | `GROQ_API_KEY` | ✅ Generous | `llama-3.3-70b-versatile` |
113
+ | **Together AI** | `TOGETHER_API_KEY` | ✅ Free credits | `Meta-Llama-3.1-70B-Instruct-Turbo` |
114
+ | **Cerebras** | `CEREBRAS_API_KEY` | ✅ Free tier | `llama-3.3-70b` |
115
+ | **OpenRouter** | `OPENROUTER_API_KEY` | ✅ Free models | `llama-3.1-70b-instruct:free` |
116
+ | **Google Gemini** | `GOOGLE_API_KEY` | ✅ Free tier | `gemini-2.5-flash` |
117
+ | **Cohere** | `COHERE_API_KEY` | ✅ Dev free | `command-r-plus` |
118
+ | **Fireworks AI** | `FIREWORKS_API_KEY` | ✅ Free tier | `llama-v3p1-70b-instruct` |
119
+ | **OpenAI** | `OPENAI_API_KEY` | 💳 Paid | `gpt-4o` |
120
+ | **Anthropic** | `ANTHROPIC_API_KEY` | 💳 Paid | `claude-sonnet-4` |
121
+ | **xAI** | `XAI_API_KEY` | 💳 Paid | `grok-2` |
122
+ | **Mistral** | `MISTRAL_API_KEY` | 💳 Paid | `mistral-large-latest` |
123
+ | **DeepSeek** | `DEEPSEEK_API_KEY` | 💳 Paid | `deepseek-chat` |
124
+ | **Perplexity** | `PERPLEXITY_API_KEY` | 💳 Paid | `sonar` |
125
+
126
+ > 💡 **Tip:** Start with **Groq** (fastest, free) or **Google Gemini** (most capable free tier). You can configure multiple providers and Krims Code will automatically failover between them!
127
+
128
+ ---
129
+
130
+ ## 🎮 Commands
131
+
132
+ ### Core Commands
133
+
134
+ ```bash
135
+ Krims Code chat # Interactive chat session
136
+ Krims Code ask "your question" # Single-shot query
137
+ Krims Code setup # Guided provider setup wizard
138
+ ```
139
+
140
+ ### Configuration
141
+
142
+ ```bash
143
+ krims-code config set <KEY> <value> # Set a config value
144
+ krims-code config get <KEY> # Get a config value
145
+ krims-code config list # List all config (keys masked)
146
+ krims-code config delete <KEY> # Delete a config key
147
+ krims-code config reset # Delete all config
148
+ krims-code config path # Show config file location
149
+ ```
150
+
151
+ ### Discovery
152
+
153
+ ```bash
154
+ Krims Code providers # List all 13+ supported providers
155
+ Krims Code providers --free # Show only free-tier providers
156
+ Krims Code models # List all available models
157
+ Krims Code models groq # Models for a specific provider
158
+ Krims Code modes # List reasoning modes
159
+ Krims Code status # System status & active providers
160
+ ```
161
+
162
+ ### Flags
163
+
164
+ ```bash
165
+ Krims Code ask "prompt" --mode research # Use specific reasoning mode
166
+ Krims Code ask "prompt" --file error.log # Attach file context
167
+ Krims Code ask "prompt" --model gpt-4o # Override model
168
+ Krims Code ask "prompt" --raw # Raw text output (for piping)
169
+ Krims Code chat --mode architect # Start chat in specific mode
170
+ ```
171
+
172
+ ---
173
+
174
+ ## 💬 Chat Commands
175
+
176
+ Inside interactive chat mode, use these slash commands:
177
+
178
+ | Command | Description |
179
+ |---------|-------------|
180
+ | `/help` | Show all commands |
181
+ | `/mode <name>` | Switch reasoning mode (synthesis, research, architect, titan) |
182
+ | `/modes` | List all modes with signal bars |
183
+ | `/theme <name>` | Switch visual theme (cyberpunk, matrix, synthwave, crimson) |
184
+ | `/themes` | List available color themes |
185
+ | `/attach <file>` | Attach a file for context (supports Tab autocomplete!) |
186
+ | `/files` | List attached files |
187
+ | `/clear` | Clear terminal screen |
188
+ | `/providers` | Show active providers |
189
+ | `/export` | Export chat to Markdown |
190
+ | `/copy` | Copy last response to clipboard |
191
+ | `/write <file>` | Extract last code block and save to file |
192
+ | `/cmd list` | List custom command shortcuts |
193
+ | `/cmd add <name> <template>` | Create a custom command shortcut |
194
+ | `/cmd remove <name>` | Delete a custom command |
195
+ | `/game` | Start the mainframe hacking mini-game |
196
+ | `/history` | List, switch, and resume past interactive chat sessions |
197
+ | `/history-clear` | Clear saved persistent chat history |
198
+ | `/autopilot <mode\|debug [cmd]>` | View/switch autopilot safety level or run autonomous debug loop |
199
+ | `/git` | Launch interactive cyberpunk Git TUI and file stager checkbox menu |
200
+ | `/github <status\|issues\|prs>` | Git/GitHub orchestration, auto-staging, semantic AI commit generation, and remote sync |
201
+ | `/teamwork-preview` | Render real-time multi-agent matrix status dashboard with heartbeats & tasks |
202
+ | `/dashboard` | Spawn zero-dependency local web server and launch telemetry dashboard HUD |
203
+ | `/mic` | Record audio voice input from microphone and transcribe to text |
204
+ | `/tokens` | View detailed session token usage and exchanges telemetry |
205
+ | `/update` | Force check for updates and update Krims Code CLI manually |
206
+ | `/review` | Run git diff and stream an AI code review |
207
+ | `/diagnose [cmd]` | Run build/tests and AI-debug any errors |
208
+ | `/explain <file>` | AI-explain the design and logic of a file |
209
+ | `/refactor <file>` | AI-refactor the code of a target file |
210
+ | `/bug <file>` | Scan a file to detect logical edge case failures |
211
+ | `/doc <file>` | Write documentation, inline comments, or JSDoc |
212
+ | `/translate <file> <lang>` | AI-translate file code into another target language |
213
+ | `/exit` | End session |
214
+
215
+ ---
216
+
217
+ ## 🧠 Reasoning Modes
218
+
219
+ | Mode | Layer | Style | Signal |
220
+ |------|-------|-------|--------|
221
+ | **Synthesis** | v2.5 | Balanced, clean, direct | ████████░░ 80% |
222
+ | **Research** | v104 | Deep analysis, evidence-based | █████████░ 85% |
223
+ | **Architect** | v55 | Systems thinking, debugging | █████████░ 90% |
224
+ | **Titan Fusion** | v110 | Premium, maximum signal density | █████████░ 95% |
225
+
226
+ ---
227
+
228
+ ## 🔐 Security
229
+
230
+ - **Your keys stay on YOUR machine** — stored at `~/.krims-code/config.json`
231
+ - **No keys are bundled** in the package
232
+ - **No telemetry** — zero data collection
233
+ - **Keys are masked** when displayed (`krims-code config list`)
234
+ - **Environment variables** also supported as fallback
235
+
236
+ ---
237
+
238
+ ## 🔄 Failover Mesh
239
+
240
+ Krims Code routes your prompt through all configured providers automatically:
241
+
242
+ ```
243
+ Your Prompt
244
+ ↓
245
+ [Provider 1] → Success? → Response ✓
246
+ ↓ (fail)
247
+ [Provider 2] → Success? → Response ✓
248
+ ↓ (fail)
249
+ [Provider N] → Success? → Response ✓
250
+ ↓ (all fail)
251
+ [Krylo Companion] → Local Response ✓
252
+ ```
253
+
254
+ If a provider returns an error (rate limit, quota, etc.), Krims Code automatically tries the next one. Configure multiple free providers for maximum resilience!
255
+
256
+ ---
257
+
258
+ ## 📁 File Attachment
259
+
260
+ Attach code files, logs, configs, or documents for context-aware responses:
261
+
262
+ ```bash
263
+ # From CLI
264
+ Krims Code ask "What's wrong with this code?" --file buggy.js
265
+
266
+ # In chat mode
267
+ /attach error.log
268
+ What errors are in this file?
269
+ ```
270
+
271
+ **Supported file types:** `.js`, `.ts`, `.py`, `.html`, `.css`, `.json`, `.md`, `.txt`, `.log`, `.yaml`, `.xml`, `.toml`, `.sql`, `.go`, `.rs`, `.java`, `.c`, `.cpp`, `.rb`, `.php`, `.swift`, `.kt`, `.dart`, `.vue`, `.svelte`, `.sh`, `.bat`, `.ps1`, `.env`, `.csv`
272
+
273
+ ---
274
+
275
+ ## 🏗️ Development
276
+
277
+ ```bash
278
+ # Clone the repo
279
+ git clone https://github.com/Krylo-60/krims-code-cli.git
280
+ cd krims-code-cli
281
+
282
+ # Install dependencies
283
+ npm install
284
+
285
+ # Link for local development
286
+ npm link
287
+
288
+ # Test
289
+ Krims Code --help
290
+ Krims Code status
291
+ Krims Code ask "hello"
292
+ ```
293
+
294
+ ---
295
+
296
+ ## 📄 License
297
+
298
+ MIT License — see [LICENSE](LICENSE) for details.
299
+
300
+ ---
301
+
302
+ ## 👨‍💻 Author
303
+
304
+ **Krishiv PB** ([@Krylo-60](https://github.com/Krylo-60))
305
+
306
+ > *"Stay cyberpunk. âš¡"*
307
+
308
+ ---
309
+
310
+ <p align="center">
311
+ <b>⚡ Krims Code AI v110 — Fusion Command Station ⚡</b><br>
312
+ <i>Universal AI Gateway for the Terminal</i>
313
+ </p>