Metadata-Version: 2.4
Name: sudosu
Version: 0.1.7
Summary: Your AI Coworker - that can actually get work done. Unlike chatbots that just talk, these teammates can read your files, write code, create documents, connect to all your tools (Gmail, Calendar, GitHub, Linear, Slack), and run commands - all while you stay in control
Author: Akash Munshi
License-Expression: MIT
Project-URL: Homepage, https://github.com/csakash/sudosu-cli
Project-URL: Repository, https://github.com/csakash/sudosu-cli
Project-URL: Issues, https://github.com/csakash/sudosu-cli/issues
Keywords: ai,assistant,cli,automation,agent,coworker,productivity,llm
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Office/Business
Classifier: Topic :: Communications
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: websockets>=12.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: python-frontmatter>=1.0.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: prompt-toolkit>=3.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: certifi>=2023.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Dynamic: license-file

# Sudosu 🚀

[![PyPI version](https://badge.fury.io/py/sudosu.svg)](https://badge.fury.io/py/sudosu)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![Downloads](https://pepy.tech/badge/sudosu)](https://pepy.tech/project/sudosu)

**Your AI Coworker - Right in Your Terminal**

Sudosu gives you AI coworkers that can actually get work done. Unlike chatbots that just talk, these teammates can read your files, write code, create documents, connect to all your tools (Gmail, Calendar, GitHub, Linear, Slack), and run commands - all while you stay in control.

**No more hopping between tools.** Your AI coworker does it all.

## Installation

```bash
pip install sudosu
```

## Quick Start

**Zero configuration required.** Just install and run:

```bash
# Install
pip install sudosu

# Start using immediately - no setup needed!
sudosu
```

That's it! Sudosu works out of the box with our hosted backend.

### Example Tasks

```bash
# Start interactive session
sudosu

# Then just ask:
> Summarize the unread emails in my inbox
> Create a Linear ticket for the bug we discussed
> Check my calendar for tomorrow and draft a prep email
> Go through #product-team slack and summarize yesterday's messages
```

### Connect Your Tools

```bash
# Inside sudosu, connect integrations:
/connect gmail      # Connect Gmail
/connect slack      # Connect Slack  
/connect linear     # Connect Linear
/connect github     # Connect GitHub
/connect notion     # Connect Notion
```

## Self-Hosting (Optional)

Want to run your own backend? You can self-host the Sudosu backend with Docker:

### Quick Self-Host

```bash
# Pull the Docker image
docker pull akash07/sudosu-cli-image:latest

# Run with your own configuration
docker run -d -p 8000:8000 \
  -e GOOGLE_API_KEY=your-google-api-key \
  -e COMPOSIO_API_KEY=your-composio-api-key \
  -e DATABASE_URL=postgresql://user:pass@host:5432/db \
  -e REDIS_URL=redis://host:6379 \
  -e RESEND_API_KEY=your-resend-api-key \
  akash07/sudosu-cli-image:latest
```

### Full Stack with Docker Compose

For a complete setup with Redis and background worker, create a `docker-compose.yml` file:

use this compose code : https://gist.github.com/csakash/d26619add372013af6d0e7b119af28c0

Create a `.env` file with your credentials:

```bash
# Create .env file
cat > .env << EOF
GOOGLE_API_KEY=your-google-api-key-here
COMPOSIO_API_KEY=your-composio-api-key-here
DATABASE_URL=postgresql://user:password@host:5432/database
RESEND_API_KEY=your-resend-api-key-here
LOG_LEVEL=INFO
EOF

# Start all services
docker-compose up -d
```

### Connect CLI to Your Self-Hosted Backend

After starting your backend, configure the CLI:

```bash
# Set development mode to use local backend
export SUDOSU_MODE=dev
export SUDOSU_BACKEND_URL=http://localhost:8000

# Or configure within CLI
sudosu
> /config mode dev
> /config backend http://localhost:8000
```

### Requirements for Self-Hosting

- **PostgreSQL Database**: Any provider (Neon, Supabase, local, etc.)
- **Redis**: Included in docker-compose or use external instance
- **API Keys**:
  - Google API Key (Gemini): [Get here](https://aistudio.google.com/app/apikey)
  - Composio API Key: [Get here](https://app.composio.dev)
  - Resend API Key: [Get here](https://resend.com)

For detailed self-hosting instructions, see the [backend repository](https://github.com/csakash/sudosu-cli-backend).

## Features

- 🚀 **Zero Config**: Install and run - works immediately with hosted backend
- 🤖 **AI Coworkers**: Create specialized coworkers with specific personalities and capabilities
- 🔌 **Tool Integrations**: Connect to Gmail, Calendar, GitHub, Linear, Slack, Notion, and more
- 📝 **File Operations**: Coworkers can read and write files in your repository
- 🔄 **Real-time Streaming**: See responses as they're generated
- 🔒 **Local Execution**: File operations happen on your machine, keeping data secure
- ⚡ **Action-Oriented**: Your coworkers don't just answer questions — they take action

## Commands

| Command | Description |
|---------|-------------|
| `/help` | Show all available commands |
| `/connect <service>` | Connect an integration (gmail, slack, etc.) |
| `/disconnect <service>` | Disconnect an integration |
| `/integrations` | Show connected integrations |
| `/agent create <name>` | Create a new agent |
| `/agent list` | List available agents |
| `/clear` | Clear the screen |
| `/quit` | Exit sudosu |

## Configuration (Optional)

Sudosu works out of the box, but you can customize it:

### Environment Modes

```bash
# Development mode (local backend)
export SUDOSU_MODE=dev
sudosu

# Production mode (default - uses hosted backend)
export SUDOSU_MODE=prod
sudosu

# Or switch within CLI
/config mode dev   # Switch to development
/config mode prod  # Switch to production
```

### Configuration Files

Sudosu stores minimal global config in `~/.sudosu/`:

```
~/.sudosu/
└── config.yaml     # API keys, mode settings, user ID
```

**Project-level configuration** is created automatically when you run `sudosu` in any folder:

```
your-project/
└── .sudosu/
    ├── AGENT.md    # Your customizable AI assistant prompt
    ├── agents/     # Custom agents created with /agent create
    └── context.md  # (optional) Project context for all agents
```

Edit `.sudosu/AGENT.md` to customize how your AI assistant behaves in that project.

## Requirements

- Python 3.10+
- Internet connection (for hosted backend)

## Links

- **Website**: [trysudosu.com](https://trysudosu.com)
- **Issues**: [GitHub Issues](https://github.com/csakash/sudosu-cli/issues)

## License

MIT
