Skip to content

Zor: An Open-Source Claude Code-like Tool

License: MIT Python Version PRs Welcome Build Status PyPI Downloads Stable Version

Zor Logo

Powerful AI assistance for your codebase

What is Zor?

Zor is an open-source command-line tool that brings AI-powered code assistance directly to your terminal. Inspired by tools like Claude Code, Zor helps developers understand, modify, and improve their codebases through natural language interactions.

Key Features

  • Contextual Code Understanding: Zor analyzes your entire codebase to provide relevant answers and suggestions
  • Interactive Mode: Have ongoing conversations about your code
  • File Editing: Edit files using natural language instructions
  • Test Generation: Automatically create unit tests for your code
  • Refactoring: Implement complex refactoring across multiple files
  • Git Integration: Commit changes directly through Zor

Quick Demo

Demo Video

Tech Stack

  • Python: Core language (3.9+)
  • Gemini API: Powers AI code understanding and generation
  • Typer: Command-line interface framework
  • Rich: Beautiful terminal output formatting
  • Google GenerativeAI: Client library for Gemini models

Getting Started

Installation

pip install zor

Or install from source:

git clone https://github.com/arjuuuuuunnnnn/zor.git
cd zor
pip install -e .

Setup Guide

  1. Get a Gemini API Key:
  2. Visit Google AI Studio
  3. Create an account and generate an API key

  4. Configure Zor: bash zor setup

  5. Enter your Gemini API key when prompted

  6. Verify Installation: bash zor help

Available Commands

Command Description
zor ask Ask about your codebase
zor init Create a new project with Zor
zor edit Edit a file with natural language
zor commit Create a git commit
zor interactive Start an interactive session
zor history View conversation history
zor generate_test Generate tests for a file
zor refactor Refactor code across multiple files
zor config View or update configuration
zor setup Configure your Gemini API key
zor help Show available commands

Detailed Usage

Asking About Your Code

zor ask "How does the rate limiting work in this codebase?"

Editing Files

zor edit path/to/file.py "Add error handling for network failures"

Interactive Mode

zor interactive

Create or Initialize new project

zor init "create a modern React portfolio app for a software engineer with dark theme"

To know more about a command

zor <command> --help

Contributing

We welcome contributions of all kinds! See our Contributing Guide for more details.

License

Zor is licensed under the MIT License.

Contact & Support

  • GitHub Issues: For bug reports and feature requests
  • Email: arjunbanur27@gmail.com