Skip to main content

hyper-personal, always-on, open-source AI companion.

Project description

Hyper-personal, always-on, open-source AI companion.

Connect it with your everyday tools โ€” Gmail, Calendar, CRMs, and more โ€” in minutes.

banner

๐Ÿ’ป Try CelestoAI PyPI version License: Apache 2.0

โœจ What is ZeroZen?

ZeroZen is an open-source framework for building AI assistants that handle your personal and professional tasks. Connect it with your everyday tools โ€” Gmail, Calendar, CRMs, and more โ€” in minutes.

๐ŸŽฏ Perfect for:

  • Busy professionals who live in their inbox
  • Power users seeking zero-friction automation
  • Privacy-conscious individuals who prefer local, controllable AI

๐Ÿš€ Quick Start

๐Ÿ”ง DIY with OSS ย  | ย  ๐Ÿ–ฅ๏ธ Try the CelestoAI web interface

Installation

pip install zerozen

Setup Google Integration (2 minutes)

  1. Get Google credentials (one-time setup):

    # Opens setup guide with direct links
    zen setup-google
    
  2. Start chatting with your data:

    zen chat
    
  3. Ask questions like:

    • "Show me emails from GitHub about security alerts"
    • "What meetings do I have this week?"
    • "Find invoices from Stripe in my Gmail"

That's it! ๐ŸŽ‰


๐Ÿ› ๏ธ Integrations

Gmail and Google Calendar

pip install zerozen
zen setup-google  # One-time setup
zen chat          # Start using!

Google Setup Details

The zen setup-google command guides you through:

  1. Creating Google Cloud Project (if needed)
  2. Enabling APIs (Gmail, Calendar)
  3. OAuth credentials (desktop app)
  4. Browser authentication (automatic)
  5. Credential storage (secure, local)

First run:

zen setup-google
# โœ… Opens browser for one-time authentication
# โœ… Saves credentials locally
# โœ… Ready to use!

Already set up:

zen setup-google
# โœ… Google credentials already exist
# Use --force to re-authenticate

๐Ÿ’ฌ Chat Interface

The heart of ZeroZen is its conversational interface. Just talk to your data naturally.

zen chat

Example Conversations

๐Ÿ“ง Email Management:

You: Find emails from stripe with invoices
AI: ๐Ÿ” Found 3 invoices from Stripe in the last 30 days:
    โ€ข Dec 15: Monthly subscription - $29.00
    โ€ข Nov 15: Pro upgrade - $99.00  
    โ€ข Oct 15: Monthly subscription - $29.00

๐Ÿ“… Calendar Queries:

You: What's my schedule tomorrow?
AI: ๐Ÿ“… Tomorrow (Dec 16):
    โ€ข 9:00 AM - Team standup (30 min)
    โ€ข 2:00 PM - Client presentation (1 hour)
    โ€ข 4:30 PM - 1:1 with Sarah (30 min)

๐Ÿ”— Cross-tool Intelligence:

You: Do I have any meetings about the project mentioned in John's email?
AI: ๐Ÿ” Found John's email about "Project Alpha" from yesterday.
    ๐Ÿ“… Yes! You have "Project Alpha Planning" tomorrow at 10 AM.

Chat Features

  • ๐Ÿง  Smart context - Remembers your conversation
  • ๐Ÿ› ๏ธ Multiple tools - Gmail, Calendar, web search (coming soon)
  • โšก Fast responses - Optimized for quick queries
  • ๐ŸŽจ Rich formatting - Beautiful, readable output
  • ๐Ÿ’พ Session memory - Continues where you left off

๐Ÿง‘โ€๐Ÿ’ป Developer Experience

Python API

Use ZeroZen programmatically in your own applications:

from zerozen import agents

# Simple agent usage
result = agents.run_sync(
    "Find emails from GitHub about security issues", tools=["search_gmail"], max_turns=3
)
print(result)

# Advanced usage with specific tools
result = agents.run_sync(
    "What's my schedule conflicts next week?",
    tools=["list_calendar_events", "search_gmail"],
    model="gpt-4o",  # Optional model override
)

Custom Integrations

from zerozen.integrations.google import GmailService, load_user_credentials

# Load your saved credentials
creds = load_user_credentials("credentials.my_google_account.json")

# Direct tool usage
gmail = GmailService(creds)
messages = gmail.search_messages(query="from:github.com", limit=10)

# Your custom logic here...

Backend Integration

Perfect for server applications:

from zerozen.integrations.google import CredentialRecord, UserProviderMetadata, UserInfo

# Create from your database/API
user_creds = CredentialRecord(
    access_token="ya29.xxx",
    user_provider_metadata=UserProviderMetadata(
        refresh_token="1//xxx",
        scope=(
            "openid "
            "https://www.googleapis.com/auth/gmail.readonly "
            "https://www.googleapis.com/auth/calendar "
            "https://www.googleapis.com/auth/calendar.readonly "
            "https://www.googleapis.com/auth/userinfo.email "
            "https://www.googleapis.com/auth/userinfo.profile"
        ),
        expires_at=1234567890,
    ),
    user_info=UserInfo(email="user@example.com", sub="google_user_id"),
    client_id="your_oauth_client_id",
    client_secret="your_oauth_secret",
)

# Use with any tool
gmail = GmailService(user_creds)

๐Ÿ”ง Configuration

CLI Options

zen chat --help

Environment Variables

# Optional: Set default model
export OPENAI_MODEL=gpt-4o

# Optional: Custom credential paths
zen setup-google --credentials-file /path/to/creds.json
zen setup-google --user-storage /path/to/user-creds.json

๐Ÿ” Security & Privacy

๐Ÿ›ก๏ธ Your data stays yours:

  • Local credentials - Stored securely on your machine
  • No data collection - We don't see your emails or calendar
  • Open source - Audit the code yourself
  • Standard OAuth - Uses Google's official authentication

๐Ÿ”’ Credential management:

  • Automatic token refresh
  • Secure local storage
  • Per-user isolation
  • Configurable file paths

๐Ÿ›ฃ๏ธ Roadmap

Feature Status Description
Gmail Integration โœ… Search, read, analyze emails
Google Calendar โœ… View events, check availability
Chat Interface โœ… Conversational AI with memory
Desktop OAuth โœ… One-command authentication
Backend API โœ… Programmatic access
Email Actions ๐Ÿ”œ Draft, reply, send emails
Calendar Management ๐Ÿ”œ Create, update events
Slack Integration ๐Ÿ”œ Team communication
Document AI ๐Ÿ”œ Google Docs, Sheets analysis
Multi-user Support ๐Ÿ”œ Team deployments
Plugin System ๐Ÿ”ฎ Custom integrations

๐Ÿค Contributing

We'd love your help making ZeroZen even better!

Quick Contribution Guide

  1. ๐Ÿด Fork & Clone

    git clone https://github.com/yourusername/zerozen.git
    cd zerozen
    
  2. ๐Ÿ”ง Development Setup

    # Create virtual environment
    python -m venv .venv
    source .venv/bin/activate  # or `.venv\Scripts\activate` on Windows
    
    # Install in development mode
    pip install -e .
    
    # Install development dependencies
    pip install pytest ruff black
    
  3. ๐Ÿงช Run Tests

    pytest tests/
    
  4. ๐ŸŽฏ Make Changes & Test

    # Test your changes
    zen setup-google
    zen chat
    
    # Run linters
    ruff check .
    black .
    
  5. ๐Ÿ“ Submit PR

Areas We Need Help

  • ๐Ÿ”Œ New integrations (Slack, Linear, Notion)
  • ๐ŸŽจ UI improvements (better formatting, themes)
  • ๐Ÿ“š Documentation (examples, guides)
  • ๐Ÿงช Testing (edge cases, error handling)
  • ๐ŸŒ Internationalization (non-English support)

๐Ÿ“– More Examples

Gmail Power Queries

zen chat
# Search patterns
You: "Emails from my manager in the last week"
You: "Unread emails with attachments"  
You: "Messages about the Q4 planning"

# Analysis
You: "Summarize the latest email from accounting"
You: "What action items do I have from recent emails?"

# Time-based
You: "Show me emails I received while I was on vacation"
You: "Important emails from the last 3 days"

Calendar Intelligence

# Schedule awareness
You: "When am I free for a 1-hour meeting this week?"
You: "Do I have conflicts with the team all-hands?"

# Event analysis  
You: "How many meetings do I have this week?"
You: "What's the longest meeting on my calendar?"

# Cross-reference
You: "Find emails about meetings I have tomorrow"

๐Ÿ™ Acknowledgments

Built with love using:

Special thanks to:

  • The open-source community for inspiration and contributions
  • Early beta testers for valuable feedback

๐Ÿ“„ License

Apache 2.0 License - see LICENSE for details.


Ready to experience zero-friction AI?

pip install zerozen
zen setup-google
zen chat

Welcome to your Zen mode. ๐Ÿง˜โ€โ™€๏ธโœจ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zerozen-2025.10.5.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zerozen-2025.10.5-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file zerozen-2025.10.5.tar.gz.

File metadata

  • Download URL: zerozen-2025.10.5.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zerozen-2025.10.5.tar.gz
Algorithm Hash digest
SHA256 89fa1d2fd0a5361180385590f36b90f52f589f63acff11cec9a5c60ce55aa84d
MD5 ad9c3ac511ce9903cdd8c405908e28bd
BLAKE2b-256 2a9265262f2c5da8029f38e4dcd9a31c5a6100958f6ff6129df4291c834f595b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zerozen-2025.10.5.tar.gz:

Publisher: release.yml on CelestoAI/ZeroZen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zerozen-2025.10.5-py3-none-any.whl.

File metadata

  • Download URL: zerozen-2025.10.5-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zerozen-2025.10.5-py3-none-any.whl
Algorithm Hash digest
SHA256 18062ccfc0bfb7677f7ee1fc4df1331a3740406eff624fae33da472278644846
MD5 c56011496cedf6c8c897ec643f6a9c76
BLAKE2b-256 9da5d79af8dbee1257f09f899b4082c39b58a33a88a962b5e67a0e36ac6bd774

See more details on using hashes here.

Provenance

The following attestation bundles were made for zerozen-2025.10.5-py3-none-any.whl:

Publisher: release.yml on CelestoAI/ZeroZen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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