Proto - ClickHouse AI Agent
Natural language interface for ClickHouse databases
Proto is an intelligent CLI agent that allows you to interact with ClickHouse databases using natural language. Ask questions about your data, generate SQL queries, and get insights without writing complex SQL.
Features
- 🤖 AI-Powered: Natural language interface powered by local or cloud AI models
- 📊 Smart Analysis: Automatic table analysis and data insights
- 🔍 Query Generation: Convert questions to optimized SQL queries
- 📈 Data Visualization: Generate charts and visualizations from your data
- ⚡ Fast Setup: One-command installation, no Python knowledge required
- 🔒 Privacy-First: Option to run completely locally with local AI models
- 🚀 Cross-Platform: Works on macOS (Intel/Apple Silicon), Linux, and Windows
- 📦 Easy Installation: Install via pipx, pip, or one-liner script
Quick Start
Install Proto
curl -fsSL https://proto.dev/install.sh | sh
Start Using Proto
proto
Follow the interactive onboarding to configure your ClickHouse connection and AI provider.
Installation Options
Using pipx (Recommended)
pipx install proto-clickhouse-agent
Using pip
pip install proto-clickhouse-agent
One-liner (Legacy)
curl -fsSL https://proto.dev/install.sh | sh
Usage Examples
# Start interactive chat
proto
# Execute a single query
proto query "Show me the top 10 users by activity"
# Analyze a specific table
proto analyze users
# Load data from a file
proto load-data users.csv users
Configuration
Proto supports multiple AI providers:
- Local LLM: Run completely offline with local models
- Local LLM: Built-in ClickHouse AI model (no API keys needed)
- OpenAI: Direct OpenAI API integration
Configuration is stored in ~/.config/proto/proto-config.json.
System Requirements
- macOS 10.15+ or Linux
- ClickHouse database (local or cloud)
- AI provider (Local LLM built-in)
- ~3.5GB free space for AI model (first run)
Development
Setup Development Environment
# Clone the repository
git clone https://github.com/yourusername/proto.git
cd proto
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run Proto
python main.py
Building Standalone Binaries
./build_installers.sh
This creates platform-specific binaries in the builds/ directory.
Architecture
proto/
├── agent/ # Core AI agent logic
├── config/ # Configuration management
├── providers/ # AI provider integrations
├── tools/ # Database and data tools
├── ui/ # User interface components
├── utils/ # Utility functions
└── main.py # Entry point
Contributing
- 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
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
Roadmap
- Web interface
- More AI providers
- Advanced data visualization
- Query optimization suggestions
- Multi-database support
Metadata
Release files for proto-clickhouse-agent 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| proto_clickhouse_agent-1.0.5.tar.gz | 41.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proto_clickhouse_agent-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.4 kB
Release files / proto_clickhouse_agent-1.0.5.tar.gz
| Download URL | proto_clickhouse_agent-1.0.5.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19786c9cde8ac29a1675ed456daac20241c7e33732cfddcf9f662b82afcacd56
|
|
BLAKE2b-256 checksum How to use checksums |
e4479a62c0e7000b4906734967cf919cc6aeecd82e45d4bef9ef1370bb2d0a9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / proto_clickhouse_agent-1.0.5-py3-none-any.whl
| Download URL | proto_clickhouse_agent-1.0.5-py3-none-any.whl |
|---|---|
| Size | 44.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d51444a22d81a96d19ba02dfa748d01101901a97c7e288c80cccf0896024ded
|
|
BLAKE2b-256 checksum How to use checksums |
29487bef717fd384d6aecd4ac232dae254f8fad35fca6326ca0111677df421b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|