โก Chakra AI
Agentic Coding Terminal ยท Multi-Engine MoE Inference ยท Made in India ๐ฎ๐ณ
A terminal where you talk to AI like a pair programmer. Writes code, runs it in a sandbox, audits for security bugs, self-debugs โ all 100% offline on 8GB RAM. โก
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ____ _ _ _ _ ___ _ _ ___ โ
โ / ___| | | | / \ | |/ / | _ \ / \ |_ _| CHAKRA AI โ
โ | | | |_| | / _ \ | ' /| |_) | / _ \ | | Agentic Code โ
โ | |___| _ |/ ___ \| . \| _ < / ___ \ | | Terminal โ
โ \____|_| |_/_/ \_\_|\_\_|_| \_\_/ \_\___| โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ What is Chakra AI?
Chakra AI is a terminal-based AI coding companion built from scratch in India. Type what you want in plain English, and an AI agent writes code, executes it in an isolated sandbox, audits it for security vulnerabilities, and self-debugs if anything breaks โ all 100% offline on an 8GB RAM laptop.
You: "make a folder called Abhi and put a calculator in it"
โ Thinking about: make a folder called Abhi...
โ Thinking... 28 lines (0.9s)
๐พ chakra_output/generated_script.py โ 28 lines
โก Sandbox execution โ Exit 0
Done. Folder 'Abhi' created with calculator.py inside.
No API keys. No internet. No GPU. Just your terminal, an AI, and ~1 GB RAM.
โ๏ธ Quick Start
One command. That's it.
# Windows PowerShell (Run as Administrator)
powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/fir3storm/chakra-ai/main/install.ps1 | iex"
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/fir3storm/chakra-ai/main/setup.sh | bash
After install, just type:
chakra
The installer handles everything โ Python deps, C++ compilation, model download (~1 GB), system benchmark. Takes ~5 minutes.
โก Speed: On a standard laptop CPU, Chakra AI generates ~300 tokens/sec via llama.cpp with a GGUF-quantized model โ code generation takes under 1 second.
โจ Features
| Category | What It Does |
|---|---|
| โก Blazing Fast | 300+ tok/s via llama.cpp with GGUF quantized models โ ~1 GB RAM |
| ๐ง Multi-Agent Team | Architect โ Coder โ Auditor โ Supervisor collaborate to build projects |
| ๐ Security Auditor | 10+ OWASP vulnerability checks (hardcoded secrets, SQL injection, eval, weak crypto) |
| ๐ Sandbox Execution | Code runs in an isolated subprocess with restricted environment |
| ๐ Self-Debugging Loop | If code fails, errors feed back to the model to fix automatically |
| ๐ญ Persona Switcher | Hot-swap between fullstack, infosec, architect, devops |
| ๐พ Persistent Sessions | Save and resume conversations with /sessions and /resume |
| ๐ฒ Workspace Awareness | /context indexes your files, /tree shows your directory |
| โก Streaming Output | Tokens appear as generated โ like a real conversation |
| ๐ System Benchmark | Auto-measures tokens/sec and configures optimal settings |
| ๐ป Built for 8GB RAM | Runs comfortably on consumer laptops with 1 GB for the model |
๐ฎ The Terminal Experience
(fullstack) > hi
โ Thinking...
Hello! I'm your coding assistant. What would you like to build today?
โ Thinking... 3 chunks (0.3s)
(fullstack) > make a python calculator
โ Thinking about: make a python calculator...
โ Thinking... 28 lines (0.9s)
๐พ chakra_output/generated_script.py โ 28 lines
โก Sandbox execution โ Exit 0
(fullstack) > /persona infosec
(fullstack) > /audit chakra_output/generated_script.py
๐ก InfoSec Audit Report
Target: chakra_output/generated_script.py
โ PASS: Score: 100/100
(fullstack) > /status
Engine: llama.cpp (Qwen2.5-Coder-1.5B Q4_K_M)
Threads: 22
Persona: [INFOSEC] - InfoSec Expert
RAM: ~1 GB
๐ Three Engine Tiers
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ENGINE A ENGINE B ENGINE C (default) โ
โ kimi-k3-in-c PyTorch K3 llama.cpp GGUF โ
โ
โ Full 2.78T model Full 2.78T model Qwen2.5-Coder 1.5B โ
โ 8.24 GB RAM 8-10 GB RAM 1 GB RAM โ
โ 1.56 TB disk 1.56 TB disk 1 GB disk โ
โ Linux only Windows/Linux Any OS โ
โ Bit-exact verified atol 1e-4 300+ tok/s โ
โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ --trunk <path> --trunk <path> setup.bat / setup.sh โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Engine C ships with a setup.bat/setup.sh one-click installer.
Engine A runs the legendary 176 KB kimi-k3-in-c binary as a subprocess.
Engine B is the PyTorch implementation for Windows when you have the full checkpoint.
๐ง All Commands
| Command | What it does |
|---|---|
type anything |
AI generates code, executes it, self-debugs |
/team <prompt> |
Multi-agent collaboration (ArchitectโCoderโAuditor) |
/persona [role] |
Switch persona: fullstack, infosec, architect, devops |
/audit <file> |
OWASP security audit a Python file |
/scan-vuln |
Scan all Python files for vulnerabilities |
/context |
Workspace file index (counts, sizes) |
/tree |
Directory tree |
/run <file> |
Execute a Python file in sandbox |
/diff [file] |
Code diff between versions |
/sessions |
List saved sessions |
/resume <id> |
Resume a previous session |
/status |
Engine, threads, RAM, session info |
/clear |
Clear terminal |
/help |
Show all commands |
/exit |
Save session and quit |
๐ Security Auditing
Chakra AI scans every generated code file with 10+ OWASP rules:
- ๐ Hardcoded credentials โ passwords, API keys, tokens
- ๐ SQL injection โ dynamic query construction
- โ ๏ธ Code injection โ
eval(),exec(),__import__ - ๐จ Command injection โ
os.system,subprocess(shell=True) - ๐ Weak cryptography โ MD5, SHA1, DES
- ๐ฆ Unsafe deserialization โ
pickle.loads,yaml.unsafe_load
Each finding gets a severity rating, line number, and actionable remediation.
โ๏ธ CLI Flags
python -m chakra.cli [OPTIONS]
--preset {laptop,desktop,workstation,server} Hardware preset
--engine {auto,c-backend,pytorch,local} Inference engine
--trunk PATH Trunk weights (Engine A/B)
--trunk-gb FLOAT Memory budget for streaming
--gen INT Max tokens (default: 512)
--prompt TEXT Single-shot mode (no REPL)
--tiny 13-layer test model
--device {cpu,cuda} Compute device
๐ Made in India ๐ฎ๐ณ
Chakra AI is proudly built in India. The name "Chakra" (เคเคเฅเคฐ) is a Sanskrit word meaning "wheel" or "cycle" โ representing the continuous cycle of code generation, execution, auditing, and refinement.
- Author: Abhirup Guha
- Organization: Info Security Solution
- Location: India
Why "Chakra"?
In Indian philosophy, chakras are energy centers. Each Chakra AI component maps to one:
| Chakra | Component | Role |
|---|---|---|
| ๐ฌ Vishuddha (Throat) | Chat Engine | Understanding your intent |
| ๐ง Ajna (Third Eye) | Architect Agent | Seeing the blueprint first |
| โ Manipura (Solar Plexus) | Coder Agent | Writing real code |
| ๐ก Anahata (Heart) | Auditor Agent | Protecting through vigilance |
| ๐ Sahasrara (Crown) | Supervisor | Orchestrating the whole system |
๐ Technical Architecture
Speed Optimizations
- llama.cpp GGUF backend โ Q4_K_M quantized model, SIMD-optimized C++ kernels, 300+ tok/s
- Float16 precision โ PyTorch fallback at half precision, 3 GB RAM instead of 6 GB
- Multi-threaded โ Uses all CPU cores for matrix operations
torch.inference_mode()โ Faster thanno_grad()for generation
Kernel-Level (Engine B โ Full Kimi K3)
- Fused MXFP4 Matmul โ Packed 4-bit nibbles, 7.5x less memory traffic
- Ring Buffer Trunk Streaming โ Pinned prefix + ring slot for 1.56 TB checkpoint
- Direct I/O Reader โ
O_DIRECT(Linux),FILE_FLAG_NO_BUFFERING(Windows) - Bit-Exact Verification โ Gate ladder tests at atol=1e-4
Repository Structure (48 files)
chakra-ai/
โโโ chakra/ # Core engine (18 files)
โ โโโ agent.py # Sandbox, self-debugging
โ โโโ cli.py # REPL terminal & commands
โ โโโ engine_c_backend.py # kimi-k3-in-c wrapper
โ โโโ engine_llama.py # llama.cpp GGUF backend โก
โ โโโ model.py # PyTorch K3 + MXFP4Linear
โ โโโ multi_agent.py # Multi-agent orchestrator
โ โโโ ops.py # Fused kernels, SiTU-GLU, KDA
โ โโโ security.py # InfoSecAuditor (OWASP)
โ โโโ session.py # Session persistence
โ โโโ persona.py # Persona management
โ โโโ trunk_streamer.py # Ring buffer streaming
โ โโโ st_reader.py # Safetensors + DirectReader
โ โโโ ui.py # Spinner, tools, chat roles
โโโ tests/ # Test suite
โโโ tools/ # Benchmark + model downloader
โโโ setup.bat / setup.sh # One-click installer
โโโ start_chakra_ai.bat # Windows launcher
โโโ README.md
๐ Standing on the Shoulders of Giants
Chakra AI builds upon the pioneering work of Fareed Khan and his remarkable kimi-k3-in-c project โ a 176 KB C99 binary proving a 2.78 trillion parameter model runs on 8GB RAM. His innovations in zero-copy streaming, fused MXFP4 matmul, O_DIRECT I/O, and bit-exact verification set the gold standard.
Chakra AI extends that vision with a complete agentic coding system while remaining honest about where it differs. To Fareed Khan: thank you. ๐
โ License
MIT License ยท Copyright ยฉ 2026 Abhirup Guha ยท Info Security Solution ยท Made in India ๐ฎ๐ณ
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chakra_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chakra_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 86.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5da9493ebeee9e363a50ba9829beb49793f87c70d6a46fd9914628affac2595c
|
|
| MD5 |
594e65eb425807c8c8d01f89db69f22a
|
|
| BLAKE2b-256 |
4175347cb31f9e7931cc8bfcefdf016b9d22881406f6004576e41b70242b38ac
|