| Crates.io | kanuni |
| lib.rs | kanuni |
| version | 0.1.0 |
| created_at | 2025-09-27 16:12:19.817014+00 |
| updated_at | 2025-09-27 16:12:19.817014+00 |
| description | AI-powered legal intelligence CLI - The Ottoman Edition |
| homepage | https://github.com/v-lawyer/kanuni-cli |
| repository | https://github.com/v-lawyer/kanuni-cli |
| max_upload_size | |
| id | 1857451 |
| size | 236,376 |
curl -fsSL https://get.kanuni.dev | sh
Or if you prefer wget:
wget -qO- https://get.kanuni.dev | sh
brew install v-lawyer/tap/kanuni
npm install -g @v-lawyer/kanuni
cargo install kanuni
docker run -it vlawyer/kanuni --help
# Or use docker-compose for persistent config
docker-compose run kanuni login
docker-compose run kanuni chat "Your legal question"
Download pre-compiled binaries from GitHub Releases:
kanuni-darwin-x64) or Apple Silicon (kanuni-darwin-arm64)kanuni-linux-x64) or ARM64 (kanuni-linux-arm64)kanuni-windows-x64.exe)git clone https://github.com/v-lawyer/kanuni-cli.git
cd kanuni-cli
cargo build --release
sudo mv target/release/kanuni /usr/local/bin/
kanuni --version
First, authenticate with your V-Lawyer API key:
kanuni auth login
Don't have an API key? Sign up at v-lawyer.ai
Analyze legal documents to extract key information:
# Basic analysis
kanuni analyze contract.pdf
# Extract specific information
kanuni analyze contract.pdf -e dates -e parties -e obligations
# Output as JSON
kanuni analyze contract.pdf --format json
Get instant legal guidance:
# Start interactive chat
kanuni chat
# Ask a specific question
kanuni chat "What are the key elements of a valid contract?"
# Chat with document context
kanuni chat -d contract.pdf "What are the risks in this agreement?"
# Continue previous session
kanuni chat --session abc123
Search through legal precedents:
# Basic search
kanuni search "negligence duty of care"
# Filter by jurisdiction
kanuni search "contract breach" -j "California"
# Limit results and date range
kanuni search "intellectual property" -n 20 -d "2020-2024"
Extract important dates from documents:
# Extract from single document
kanuni extract contract.pdf
# Extract from directory
kanuni extract ./legal-docs/
# Export as calendar file
kanuni extract contract.pdf --format ical
# Add reminders
kanuni extract contract.pdf --reminder 7
Generate completions for your shell:
# Bash
kanuni completions bash > /usr/local/share/bash-completion/completions/kanuni
# Zsh
kanuni completions zsh > /usr/local/share/zsh/site-functions/_kanuni
# Fish
kanuni completions fish > ~/.config/fish/completions/kanuni.fish
# Show current config
kanuni config show
# Set custom API endpoint
kanuni config set api_endpoint https://custom.api.endpoint
# Reset to defaults
kanuni config reset
# Clone the repository
git clone https://github.com/v-lawyer/kanuni-cli.git
cd kanuni-cli
# Build debug version
cargo build
# Run tests
cargo test
# Build optimized release
cargo build --release
kanuni-cli/
βββ src/
β βββ main.rs # Entry point
β βββ cli.rs # CLI argument parsing
β βββ commands/ # Command implementations
β βββ api.rs # API client
β βββ config.rs # Configuration management
β βββ utils/ # Utilities and helpers
βββ Cargo.toml # Dependencies
βββ README.md # This file
We welcome contributions! Please see our Contributing Guide for details.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is dual-licensed under either:
at your option.