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.11.0.tar.gz (18.1 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.11.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for janito-0.11.0.tar.gz
Algorithm Hash digest
SHA256 e5b034f6bd7a7b404ed797e48fab2967d367bc49ebe18220a680514754b5ff38
MD5 f36f603c2236b09dd0e85f5a65796190
BLAKE2b-256 9e9904d3befc564eebe4f8bf7ee047be468e8e32a3cf2b3ba80c0e6ed6906b00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: janito-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 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.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76f2d0bff3ef77e8bcee354fa6160db29a903da7c7ff4cf6fdc0c69bde8671de
MD5 d8563c111496bbb44af3316cc910f432
BLAKE2b-256 23a74ade532ac1d7c2ce7a1d4260df7633d6561664e4d1fa488b98ccc75107ee

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