TzamunCode - AI Coding Assistant powered by local models
Project description
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 ๐ธ๐ฆ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tzamuncode-0.1.5.tar.gz.
File metadata
- Download URL: tzamuncode-0.1.5.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db351101fa56f76d1838c543ed47e07782e85064c1b6672d0ebcf9901e8b87cd
|
|
| MD5 |
a1ebeb19ae2ce42a5e755f2b83119605
|
|
| BLAKE2b-256 |
2a263d9e0bffd64282f3d333223a759266783e76429d7c26987036d41e4d7cda
|
File details
Details for the file tzamuncode-0.1.5-py3-none-any.whl.
File metadata
- Download URL: tzamuncode-0.1.5-py3-none-any.whl
- Upload date:
- Size: 49.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598ea839d83f01913d957df90ecd443df16b129235990ae3b220c6cd9d238611
|
|
| MD5 |
27ff15baf403bfc34e816ea7bf518817
|
|
| BLAKE2b-256 |
4f8dadda518223dca9191b76a3b5ce97a5af8441ce7115a512fc736b67a2c6f2
|