Skip to main content

Janito CLI tool

Project description

🤖 Janito

Janito is a powerful AI-assisted command-line interface (CLI) tool built with Python, leveraging Anthropic's Claude for intelligent code and file management.

✨ Features

  • 🧠 Intelligent AI assistant powered by Claude
  • 📁 File management capabilities
  • 🔍 Smart code search and editing
  • 💻 Interactive terminal interface with rich formatting
  • 📊 Token usage tracking and cost reporting

🛠️ Installation

# Install directly from PyPI
pip install janito

For development or installation from source, please see README_DEV.md.

🚀 Usage

After installation, you can use the janito command in your terminal:

# Get help
janito --help


# Ask the AI assistant a question
janito "Suggest improvements to this project"

janito "Add a --version to the cli to report he version"

🔧 Available Tools

Janito comes with several built-in tools:

  • 📄 str_replace_editor - View, create, and edit files
  • 🔎 find_files - Find files matching patterns
  • 🗑️ delete_file - Delete files
  • 🔍 search_text - Search for text patterns in files

⚙️ Requirements

  • Python 3.8 or higher
  • Dependencies:
    • typer (>=0.9.0)
    • rich (>=13.0.0)
    • claudine (for Claude AI integration)

🔑 API Key

Janito requires an Anthropic API key to function. You can:

  1. Set it as an environment variable: export ANTHROPIC_API_KEY=your_api_key
  2. Or enter it when prompted

💻 Development

# Create a virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
pip install -e ".[dev]"

📜 License

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

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

janito-0.10.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

janito-0.10.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file janito-0.10.1.tar.gz.

File metadata

  • Download URL: janito-0.10.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for janito-0.10.1.tar.gz
Algorithm Hash digest
SHA256 41ed2b4a57f1eb057a046e18145e36412e9d4a36d112737b9f14cde2126f83bc
MD5 7e6406e14857f7ba0de2d185712fa759
BLAKE2b-256 507150288758bc83806941a30ecb53df076adbf62acb7278571a290afb008e7d

See more details on using hashes here.

File details

Details for the file janito-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: janito-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for janito-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9431d024c158c6728e4a843fd1d97d1ab9cc942304f8c8fc11c7a802109f1716
MD5 effa089c669e0f3b33b2d77837ae0624
BLAKE2b-256 3fa83f45dc87d982ce5209900a4ec5c0011eab1a27f3be0ac6f3dfeabba3ee11

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