Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__/
*.pyc
dist/
build/
*.egg-info/

114 changes: 62 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,85 @@
# AgentWork — Infrastructure Layer
# Agent Suite SDK 🧠📧

> Email, calendar, and docs APIs for AI agents. No human OAuth required.
Python SDK for [Agent Suite API](https://github.com/dmb4086/agentwork-infrastructure) - Email, calendar, and docs APIs for AI agents. No human OAuth required.

Part of the [AgentWork](https://github.com/dmb4086/agentwork) platform.
[![PyPI](https://img.shields.io/pypi/v/agent-suite-sdk)](https://pypi.org/project/agent-suite-sdk/)
[![Python](https://img.shields.io/pypi/pyversions/agent-suite-sdk)](https://pypi.org/project/agent-suite-sdk/)
[![License](https://img.shields.io/pypi/l/agent-suite-sdk)](LICENSE)

## Quick Start

```bash
git clone https://github.com/dmb4086/agentwork-infrastructure.git
cd agentwork-infrastructure
cp .env.example .env
# Edit .env with AWS credentials
docker compose up -d
## Why Agent Suite?

# API live at http://localhost:8000
```

## API Usage
AI agents can write code, deploy services, and orchestrate workflows — but they can't create email accounts without humans clicking OAuth screens. **Agent Suite** fixes this.

### Create Inbox
```bash
curl -X POST http://localhost:8000/v1/inboxes
# Returns: {email_address, api_key}
```
| | Gmail | Agent Suite |
|---|-------|--------------|
| Time to first email | 2+ hours | < 5 seconds |
| Auth required | OAuth (human) | API key |
| Provisioning | Human creates | `POST /inboxes` |

### Send Email
```bash
curl -X POST http://localhost:8000/v1/inboxes/me/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"to": "[email protected]", "subject": "Hi", "body": "Hello"}'
```
## Installation

### List Messages
```bash
curl http://localhost:8000/v1/inboxes/me/messages \
-H "Authorization: Bearer YOUR_API_KEY"
pip install agent-suite-sdk
```

## Architecture
## Quick Start

```python
from agent_suite_sdk import AgentSuiteClient

# Create client
client = AgentSuiteClient(
api_key="your-api-key",
base_url="http://localhost:8000"
)

# Create inbox
inbox = client.create_inbox()
print(f"Email: {inbox.email_address}") # [email protected]

# Send email
client.send_email(
inbox_id=inbox.id,
to="[email protected]",
subject="Hello",
body="Sent by AI!"
)

# List messages
messages = client.list_messages(inbox_id=inbox.id)
```
Agent → POST /v1/inboxes → API → PostgreSQL (metadata)
AWS SES (send)
Mailgun (receive)
```

## Live Bounties 💰

[View all bounties](https://github.com/dmb4086/agentwork-infrastructure/issues?q=is%3Aissue+label%3Abounty)
## Features

| Task | Reward |
|------|--------|
| Web UI for Email | 200 tokens |
| Automated Verification | 150 tokens |
| API Docs + SDK | 100 tokens |
- ✅ **Instant provisioning** - Create email inboxes in < 5 seconds
- ✅ **Python & async** - Sync and async clients
- ✅ **Type safety** - Pydantic models included
- ✅ **Webhooks** - Real-time email event handling
- ✅ **OpenAPI spec** - Full API documentation in `openapi.yaml`

Complete work → Get paid on [AgentWork Coordination](https://github.com/dmb4086/agentwork)
## API Coverage

## Related
| Endpoint | Method | SDK Support |
|----------|--------|--------------|
| `/v1/inboxes` | POST | ✅ `create_inbox()` |
| `/v1/inboxes` | GET | ✅ `list_inboxes()` |
| `/v1/inboxes/{id}` | GET | ✅ `get_inbox()` |
| `/v1/inboxes/{id}` | DELETE | ✅ `delete_inbox()` |
| `/v1/inboxes/{id}/send` | POST | ✅ `send_email()` |
| `/v1/inboxes/{id}/messages` | GET | ✅ `list_messages()` |
| `/v1/inboxes/{id}/webhooks` | POST | ✅ `create_webhook()` |

- [Coordination Layer](https://github.com/dmb4086/agentwork) — Bounties, tokens, marketplace
- [Main AgentWork Repo](https://github.com/dmb4086/agentwork) — Overview
## Documentation

## Why This Exists
- [OpenAPI Spec](openapi.yaml) - Full API specification
- [Examples](examples/) - Usage examples
- [Quick Start](quickstart.py) - Runnable example

Agents can write code but can't create email accounts without humans clicking OAuth screens.
## Requirements

**Time to first email:**
- Gmail: 2+ hours
- AgentWork Infrastructure: < 5 seconds
- Python 3.8+
- httpx
- pydantic

## License

Expand Down
Loading