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
# Clone the repository
git clone https://github.com/joaompinto/janito.git
cd janito
# Install the package
pip install -e .
🚀 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:
- Set it as an environment variable:
export ANTHROPIC_API_KEY=your_api_key - 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
[Add your license information here]
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 janito-0.10.0.tar.gz.
File metadata
- Download URL: janito-0.10.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2944b4951b3b767ded2261c5bc92a4cc1e105d591107c009b38caa08ee43e752
|
|
| MD5 |
02d2a7213f47d2d2bdca2492d004828a
|
|
| BLAKE2b-256 |
9dc74ffc4667f973a3de0bb8c41a6672014ba71fc10a274ec28681cec37521c6
|
File details
Details for the file janito-0.10.0-py3-none-any.whl.
File metadata
- Download URL: janito-0.10.0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67074ba471941850064472ce5ab3878679e6a6eba57d63a6e82064051c33e43b
|
|
| MD5 |
35a05e54ec414f15697dc526f5d3f0be
|
|
| BLAKE2b-256 |
0cc9c9065be97d21b22ced5f9fff8eaa99710f8566b984cba2eafb0b1bf10f23
|