Skip to main content

Groq-powered AI coding assistant with streaming responses, cost tracking, and zero-configuration setup

Project description

TermiCode Logo

TermiCode AI Coding Assistant

A blazing fast, private, local AI coding assistant running directly in your terminal, powered by Groq and Llama 3.3.

License: MIT Python 3.8+


TermiCode is a terminal-based Micro-SaaS AI coding assistant built for speed and security. It reads your codebase, modifies files securely via surgical edits, and can even run terminal commands (with your permission). Because it leverages Groq's lightning-fast inference API, TermiCode feels instant.

Bring Your Own Key (BYOK): No monthly subscriptions. No bloated Electron apps.

✨ Features

  • ⚡ Blazing Fast: Powered by Groq's LPU technology and Meta's Llama models.
  • 🛡️ Secure File Operations: Built-in path traversal protection and a blocklist for sensitive files (like .env).
  • 👀 Surgical Edits: Modifies existing files precisely without rewriting the whole document, saving tokens and preventing hallucinations.
  • 🖥️ Beautiful Terminal UI: Powered by rich for elegant panels, Markdown rendering, and live spinners.
  • 🧠 Long-Term Memory: Automatically summarizes past context to preserve memory without exceeding token limits.
  • 🚦 Command Execution: Can run test suites, git commands, and shell scripts on your behalf (always asks for permission first).

🚀 Installation

Option 1: Install globally via pipx (Recommended)

pipx installs Python CLI applications into isolated environments so they don't break your system Python.

pipx install termicode-ai

Option 2: Install via pip

pip install termicode-ai

⚙️ Configuration

TermiCode requires a free Groq API key to operate.

  1. Get a free API key at console.groq.com/keys.
  2. Create a .env file in the directory where you plan to run TermiCode, and add:
    GROQ_API_KEY=your_api_key_here
    

(Alternatively, you can export GROQ_API_KEY as a system environment variable in your terminal).

💻 Usage

Navigate to any project directory in your terminal and simply type:

termicode

This starts the interactive AI shell. Type /help to see available slash commands:

  • /map - Print the current project structure tree.
  • /clear - Clear the terminal screen.
  • /reset - Wipe the agent's short-term memory and start fresh.
  • /exit - Save session and exit.

Example Prompts:

  • "Refactor my calculate_tax function in utils.py to handle edge cases."
  • "Search the codebase for 'DATABASE_URL' and tell me where it's used."
  • "Run the pytest suite and fix any failing tests."

🛠️ Developer Setup (Local Building)

If you want to contribute or build TermiCode locally from the source code:

  1. Clone the repository

    git clone https://github.com/yourusername/termicode.git
    cd termicode
    
  2. Create a virtual environment

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install in editable mode with dev dependencies

    pip install -e .[dev]
    
  4. Run the CLI locally

    termicode
    

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termicode_ai-0.1.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

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

termicode_ai-0.1.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file termicode_ai-0.1.2.tar.gz.

File metadata

  • Download URL: termicode_ai-0.1.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for termicode_ai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d96f42356c43d5a82b83f34056cc4315901c09b2a3e303c9e595983b312680e
MD5 6da3095469d7183efc02f35f61978bab
BLAKE2b-256 e652102b81a559993e28d95775863080221d3374fff6e726f6a9039dd83dad56

See more details on using hashes here.

File details

Details for the file termicode_ai-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: termicode_ai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for termicode_ai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57f5c0720ccc460c3df7f67159b48009e4d42f93f232e90e000400143aa73a88
MD5 cfe92dc0f4bbd5c72c850efe7bf62dbc
BLAKE2b-256 3ba794d9d160d321347aa8b0fb75ea96e174d9a2be9c890ebfa98e6acc8d7e32

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