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.0.tar.gz (20.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.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termicode_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 128b2b8b95a6436dd1ec06d79c05d4e7eb43256a7fa503f374d848d128e69263
MD5 22cacc995a77dba2306a29e1c39e3868
BLAKE2b-256 2b9cfd9bb5d1cb9e25f0d8f9d5721d8007cb2163febd16112217600a5d5e1096

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for termicode_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6636adba9aa94b01d46565be28966cf0340450bdf10c2fd23ee45a1f269bef96
MD5 84efad6c2b5fc349ca226674f2d3de74
BLAKE2b-256 75c9c8152c1781769379ebc2f8a3fc355e64af0d423c0023eb30e7941dbd9b07

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