Skip to main content

โšก Chakra AI

Agentic Coding Terminal ยท Multi-Engine MoE Inference ยท Made in India ๐Ÿ‡ฎ๐Ÿ‡ณ

Python 3.10+ License MIT Platform 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 than no_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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chakra_ai-0.1.0-py3-none-any.whl (86.4 kB view details)

Uploaded Python 3

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

Hashes for chakra_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5da9493ebeee9e363a50ba9829beb49793f87c70d6a46fd9914628affac2595c
MD5 594e65eb425807c8c8d01f89db69f22a
BLAKE2b-256 4175347cb31f9e7931cc8bfcefdf016b9d22881406f6004576e41b70242b38ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page