Skip to main content

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

Project description

zerozen

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

Zero friction. Maximum zen. ๐Ÿง˜โ€โ™€๏ธ

Dedicated to the creators of Zero โ€” Aryabhatta and Bhaskara โœจ

zerozen CLI

PyPI version License: MIT


โœจ What is ZeroZen?

ZeroZen is your personal AI assistant that seamlessly integrates with your daily tools. Think of it as having a smart conversation with your Gmail, Google Calendar, and more โ€” all through a beautiful command-line interface.

๐ŸŽฏ Perfect for:

  • Busy professionals who live in their inbox
  • Developers who want AI that actually helps with real work
  • Power users seeking zero-friction automation
  • Privacy-conscious individuals who prefer local, controllable AI

๐Ÿš€ Quick Start

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! ๐ŸŽ‰


๐Ÿ› ๏ธ Installation & Setup

Option 1: Quick Install

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

Option 2: From Source

git clone https://github.com/aniketmaurya/zerozen.git
cd zerozen
pip install -e .
zen setup-google

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 GmailToolV2, load_user_credentials

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

# Direct tool usage
gmail = GmailToolV2(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="gmail.readonly calendar.readonly",
        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 = GmailToolV2(user_creds)

๐Ÿ”ง Configuration

CLI Options

zen chat --help
# Gmail-specific user context
zen chat --gmail-user-id me

# Model selection  
zen chat --model gpt-4o

# Show tool outputs
zen chat --show-tools

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.8.10.tar.gz (1.9 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.8.10-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zerozen-2025.8.10.tar.gz
Algorithm Hash digest
SHA256 e58126dab8b6c7f6cd8456e7c2cbf724fcda2777c1be05a21e3b3ab9e8a32119
MD5 41b26b2b2ab7a7bbfbc31533ae270cc6
BLAKE2b-256 debbe29b75a0309ac4de57eb0d96f3a059eb8af022b3d04ab725a8ee206929c6

See more details on using hashes here.

Provenance

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

Publisher: release.yml on aniketmaurya/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.8.10-py3-none-any.whl.

File metadata

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

File hashes

Hashes for zerozen-2025.8.10-py3-none-any.whl
Algorithm Hash digest
SHA256 002d2654b0af9b7398e10acf35f79e77b1a2600f8fb8d213ba26d8d36a1edaf2
MD5 33b61f715a868c1bb882164f197bad3a
BLAKE2b-256 bfde99d1132dbb2274724697dc9782bc623f9c9554aaa57983681cd0fffa835f

See more details on using hashes here.

Provenance

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

Publisher: release.yml on aniketmaurya/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