ClawdBody is a 1-click deployment platform for ClawdBot that runs 24/7 on cloud VMs, automating your life and business. ClawdBot is an autonomous AI agent with persistent memory, intelligent reasoning, and the ability to act in the real world.
- π 1-Click Deployment - Deploy ClawdBot to cloud VMs in minutes
- βοΈ Multi-Provider Support - Works with Orgo, AWS, E2B, and more
- π§ Email Integration - ClawdBot can send and reply to emails via Gmail
- π Calendar Management - Create, update, and delete calendar events
- π₯οΈ Web Terminal - Built-in terminal for real-time interaction
- π€ Telegram Bot - Optional Telegram integration for mobile access
- πΎ Persistent Memory - ClawdBot remembers context across sessions
- π Secure - OAuth-based integrations with encrypted token storage
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Cloud VM (Orgo/AWS/E2B) β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β ClawdBot β β
β β ββββββββββββββ ββββββββββββββ ββββββββββββββββββββββ β β
β β β Claude API β β Browser β β Communication API β β β
β β β Reasoning β β Automation β β Gmail + Calendar β β β
β β ββββββββββββββ ββββββββββββββ ββββββββββββββββββββββ β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β ClawdBody Web Interface β β
β β β’ Web Terminal β’ VM Setup β’ Integration Management β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Component | Role | Technology |
|---|---|---|
| ClawdBody | Deployment & management platform | Next.js, Prisma, PostgreSQL |
| ClawdBot | Autonomous AI agent | Claude API, Python |
| VM | Execution environment | Orgo/AWS/E2B cloud VMs |
| Integrations | Communication & automation | Gmail API, Google Calendar API |
| Web Terminal | Real-time interaction | WebSockets, xterm.js |
- Node.js 18+
- GitHub account
- Claude API key
- Orgo API key
git clone https://github.com/Prakshal-Jain/ClawdBody.git
cd ClawdBody
npm installCreate .env file:
# Google OAuth App credentials (for authentication)
# Create at: https://console.cloud.google.com/
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://localhost:3000/api/auth/callback/google
# NextAuth
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_secret_here # Generate with: openssl rand -base64 32
# Orgo API Key (optional, if using Orgo as VM provider)
ORGO_API_KEY=sk_live_your_orgo_api_key
# Database (PostgreSQL)
# For local dev, use Docker: docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/helloworld?schema=public"
# If using connection pooling (Vercel, Supabase), also set:
# DIRECT_URL="postgresql://..."
# Cron Job Secret (optional, for securing cron endpoints)
CRON_SECRET=your_cron_secret_here # Generate with: openssl rand -base64 32npx prisma generate
npx prisma db push- Go to Google Cloud Console
- Create a new project or select existing one
- Go to "Credentials" β "Create Credentials" β "OAuth 2.0 Client ID"
- Configure OAuth consent screen first if prompted
- Configure credentials:
- Application type: Web application
- Authorized redirect URIs:
http://localhost:3000/api/auth/callback/google
- Copy Client ID and Client Secret to
.env
npm run devVisit http://localhost:3000 and sign in with Google.
- Google OAuth - Sign in with your Google account
- API Keys - Enter your Claude API key and choose a VM provider (Orgo/AWS/E2B)
- VM Provisioning - Creates a VM with your selected provider
- VM Configuration:
- Installs Python and essential tools
- Installs Anthropic SDK for Claude
- Installs ClawdBot for autonomous task execution
- Configures communication helper scripts for Gmail/Calendar integration
- Configures Telegram bot (optional)
ClawdBody supports integrations with Gmail, Google Calendar, and GitHub. ClawdBot can use these integrations automatically without additional OAuth setup - it reuses the tokens stored in your database.
- Gmail - Send/reply to emails, read messages
- Google Calendar - Create, update, delete calendar events
- GitHub - Repository management (coming soon)
- Slack - Team communication (coming soon)
ClawdBot can use the communication features via a helper script automatically installed on the VM:
Sending Emails:
/home/user/clawd/send_communication.sh send_email \
--to "recipient@example.com" \
--subject "Subject line" \
--body "Email body text"Creating Calendar Events:
/home/user/clawd/send_communication.sh create_event \
--summary "Meeting Title" \
--start "2024-01-15T10:00:00Z" \
--end "2024-01-15T11:00:00Z" \
--description "Meeting description"See CLAWDBOT_COMMUNICATION.md for complete documentation.
Once setup is complete, ClawdBot runs 24/7 on your VM, ready to execute tasks. You can:
- Connect via Terminal - Use the web-based terminal to interact with ClawdBot
- Connect Gmail/Calendar - Enable communication capabilities from the Learning Sources page
- Use Telegram - Interact with ClawdBot via Telegram (if configured)
- VM Console: View at your VM provider's dashboard (Orgo/AWS/E2B)
- Web Terminal: Monitor ClawdBot activity through the built-in terminal
- Learning Sources: Check integration status and manage connections
Since the repository is public, you can deploy directly:
- Go to vercel.com/new
- Import your GitHub repository:
Prakshal-Jain/ClawdBody - Vercel will auto-detect Next.js settings
In Vercel Dashboard β Project Settings β Environment Variables, add:
| Variable | Description | Required |
|---|---|---|
DATABASE_URL |
PostgreSQL connection string (pooled, use Vercel Postgres, Supabase, or PlanetScale) | β |
DIRECT_URL |
Direct PostgreSQL connection (non-pooled, for migrations) | β |
NEXTAUTH_URL |
Your Vercel URL (e.g., https://clawdbody.vercel.app) |
β |
NEXTAUTH_SECRET |
Generate with: openssl rand -base64 32 |
β |
GITHUB_CLIENT_ID |
From GitHub OAuth App | β |
GITHUB_CLIENT_SECRET |
From GitHub OAuth App | β |
GOOGLE_CLIENT_ID |
From Google Cloud Console | For Gmail/Calendar |
GOOGLE_CLIENT_SECRET |
From Google Cloud Console | For Gmail/Calendar |
ORGO_API_KEY |
From Orgo dashboard | For VM integration |
CRON_SECRET |
Generate with: openssl rand -hex 16 |
For cron jobs |
TELEGRAM_BOT_TOKEN |
From BotFather | Optional, for Telegram bot |
TELEGRAM_USER_ID |
Your Telegram user ID | Optional, for Telegram bot |
Option A: Vercel Postgres (Recommended)
- In Vercel Dashboard β Storage β Create Database β Postgres
- It will auto-populate
DATABASE_URL
Option B: Supabase
- Create project at supabase.com
- Copy connection string to
DATABASE_URL
Update your OAuth apps with production URLs:
GitHub OAuth App:
- Authorization callback URL:
https://your-app.vercel.app/api/auth/callback/github
Google OAuth App:
- Authorized redirect URIs:
https://your-app.vercel.app/api/auth/callback/googlehttps://your-app.vercel.app/api/integrations/gmail/callbackhttps://your-app.vercel.app/api/integrations/calendar/callback
Push to GitHub and Vercel will automatically build and deploy:
git add .
git commit -m "Configure for Vercel deployment"
git push origin main# Run in development
npm run dev
# Build for production
npm run build
# Start production server
npm startSee CLAWDBOT_COMMUNICATION.md for detailed documentation on:
- Sending and replying to emails
- Creating, updating, and deleting calendar events
- API endpoint specifications and authentication
- Orgo: Documentation
- AWS: EC2 and SSM for VM management
- E2B: Documentation
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/ClawdBody.git - Install dependencies:
npm install - Set up environment variables (see
.envsection above) - Run development server:
npm run dev
- GitHub: Prakshal-Jain/ClawdBody
- Issues: Report bugs or request features via GitHub Issues
- Pull Requests: Submit PRs for bug fixes or new features
For questions or issues:
- Open an issue on GitHub
- Check existing documentation in the repository
MIT