- π Document Analysis - Extract key information, dates, parties, and risks from legal documents
- π¬ AI Chat Assistant - Interactive legal guidance powered by advanced language models
- π Case Law Search - Search through legal precedents and case databases
- π Deadline Extraction - Automatically extract and track important dates
- π¨ Beautiful CLI - Intuitive interface with colors and progress indicators
- π Secure - API key authentication with secure storage
- β‘ Fast - Built with Rust for maximum performance
curl -fsSL https://get.kanuni.dev | shOr if you prefer wget:
wget -qO- https://get.kanuni.dev | shbrew install v-lawyer/tap/kanuninpm install -g @v-lawyer/kanunicargo install kanunidocker 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:
- macOS: Intel (
kanuni-darwin-x64) or Apple Silicon (kanuni-darwin-arm64) - Linux: x64 (
kanuni-linux-x64) or ARM64 (kanuni-linux-arm64) - Windows: x64 (
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 --versionFirst, authenticate with your V-Lawyer API key:
kanuni auth loginDon'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 jsonGet 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 abc123Search 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 7Generate 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- Rust 1.70+
- Cargo
# 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 --releasekanuni-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.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
- Named after Suleiman the Magnificent, known as "Kanuni" (The Lawgiver)
- Built with Rust for performance and safety
- Powered by V-Lawyer API
- Documentation: docs.v-lawyer.ai
- Issues: GitHub Issues
- Email: [email protected]
- Twitter: @vlawyer
Building the future of legal technology