Skip to main content

TzamunCode CLI 🚀

AI Coding Assistant powered by local models - Built in Saudi Arabia 🇸🇦

TzamunCode is a privacy-first AI coding assistant that runs entirely on your local infrastructure using Ollama and vLLM. No cloud dependencies, no API costs, complete control.

✨ Features

  • 🤖 Agentic AI - Multi-step planning and execution
  • 📝 Code Generation - Create files, functions, and entire projects
  • ✏️ Multi-file Editing - Edit multiple files in one operation
  • 🔧 Tool Calling - Git operations, file search, command execution
  • 🎯 Context Aware - Understands your project structure
  • 🔒 Privacy First - Everything runs locally
  • ⚡ Fast - Powered by vLLM for optimized inference
  • 🌍 Multi-model - Use any Ollama model (15+ available)

🚀 Quick Start

Installation

# Clone the repository
git clone https://github.com/tzamun/tzamuncode-cli.git
cd tzamuncode-cli

# Install
pip install -e .

# Or install from PyPI (when published)
pip install tzamuncode

Prerequisites

  • Python 3.9+
  • Ollama running locally (http://localhost:11434)
  • At least one Ollama model installed

Basic Usage

# Start interactive chat
tzamuncode chat

# Generate code
tzamuncode generate "Create a Flask REST API with authentication"

# Edit a file
tzamuncode edit app.py "Add error handling to all routes"

# Explain code
tzamuncode explain main.py

# Quick alias
tzc chat

📖 Documentation

Commands

chat - Interactive Chat

tzamuncode chat
tzamuncode chat --model qwen2.5:32b

generate - Code Generation

tzamuncode generate "Create a Python web scraper"
tzamuncode generate "Add unit tests for user.py" --output tests/

edit - File Editing

tzamuncode edit app.py "Refactor to use async/await"
tzamuncode edit . "Add type hints to all functions"

explain - Code Explanation

tzamuncode explain complex_function.py
tzamuncode explain --detailed auth.py

review - Code Review

tzamuncode review pull_request.diff
tzamuncode review --strict src/

Configuration

Create ~/.tzamuncode/config.yaml:

# Default model
model: qwen2.5:32b

# Ollama settings
ollama:
  base_url: http://localhost:11434
  timeout: 120

# vLLM settings (optional, for faster inference)
vllm:
  enabled: true
  base_url: http://localhost:8000
  model: deepseek-coder-7b

# Preferences
preferences:
  show_diff: true
  auto_apply: false
  max_context: 64000
  temperature: 0.7

🏗️ Architecture

┌─────────────────────────────────────┐
│     TzamunCode CLI                  │
│  (Typer + Rich UI)                  │
└─────────────────────────────────────┘
           ↓
┌─────────────────────────────────────┐
│   Agentic Layer (LangChain)         │
│  - Multi-step planning              │
│  - Tool calling                     │
│  - Context management               │
└─────────────────────────────────────┘
           ↓
┌─────────────────────────────────────┐
│   AI Backend                        │
│  - Ollama (15+ models)              │
│  - vLLM (fast inference)            │
└─────────────────────────────────────┘

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details.

🌟 Built by Tzamun Arabia IT Co.

TzamunCode is part of the Tzamun AI ecosystem:

  • TzamunAI - AI platform with 15+ models
  • TzamunERP - ERPNext + AI integration
  • Auxly - AI coding assistant for IDEs
  • AccessHub - Privileged Access Management

Visit tzamun.com to learn more.


Made with ❤️ in Saudi Arabia 🇸🇦

Metadata

Release files for tzamuncode 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tzamuncode 0.1.14
File Size Uploaded Provenance
tzamuncode-0.1.14.tar.gz 44.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tzamuncode 0.1.14
File Interpreter ABI Platform
tzamuncode-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 97.9 kB

Release files / tzamuncode-0.1.14.tar.gz

Download URL tzamuncode-0.1.14.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ffea6be11bdd1409cd2d7f21e04e9998d451b51dacaff7f60020ab30cf02950a
BLAKE2b-256 checksum
How to use checksums
59d14b489a81cdc6dc95fcdf9a70b9ededec084faf04b4d2b884ff264338631a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / tzamuncode-0.1.14-py3-none-any.whl

Download URL tzamuncode-0.1.14-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8974fd43d09d2e1f8ab7e64565fa443ce75fa7e7945ef99309d81e1d64bd0cb2
BLAKE2b-256 checksum
How to use checksums
ec2d7abebad405cf9da84ce6113511bce0c0718d04766b2169ca2958aff7f755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for tzamuncode 0.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page