Elffuss BraidHub

kikocis/clonagent public

main · 4.9 KiBSourceRawPermalink

ClonAgent — Tell it what you need. Get it done. By email.



clonagent.utopiaia.com

Build AI agents that watch your inbox, act on requests, and reply — automatically.
No code. No dashboard. Just send an email.

Live


What is ClonAgent?

ClonAgent lets anyone create an AI agent that monitors an email inbox and acts on what it finds.

You describe your agent in plain language — what project it manages, who can email it, how to deploy. ClonAgent builds it for you. From that moment on, your team manages the agent entirely by email:

→  Someone emails a bug report
←  The agent reads it, fixes the code, deploys, and replies with the result

Supported workflows out of the box:


Email commands

Once an agent is running, manage it from any email client. You can either use shorthand commands or just write naturally — the agent understands plain language too.

CommandWhat it does
!helpList all available commands
!statusShow agent config and last run
!add someone@company.comAuthorize a new sender
!remove someone@company.comRevoke access
!pauseStop polling (agent sleeps)
!resumeResume polling
!sendersList all authorized senders

You can also write requests in plain text and the agent will handle them just the same:

"The checkout button on mobile is broken, can you fix it?"
"Add a dark mode toggle to the settings page."
"Send me a summary of all open issues."


Self-hosting

Requirements

Quickstart

git clone https://github.com/KikoCisBot/clonagent.git
cd clonagent
cp .env.example .env          # fill in ANTHROPIC_API_KEY

cd server && npm install && cd ..
cd client && npm install && cd ..

# Two terminals:
( cd server && npm run dev )   # → http://localhost:3300
( cd client && npm run dev )   # → http://localhost:3301

Open http://localhost:3301, register, and create your first agent from the chat.

Environment variables

VariableDescription
ANTHROPIC_API_KEYRequired if using Claude directly
LITELLM_URL + LITELLM_MASTER_KEYAlternative: route via LiteLLM
CLONAGENT_MODELModel to use (default: claude-opus-4-7)
PUBLIC_URLYour public URL (for magic-link emails)
SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASSTransactional email
SENDGRID_API_KEYAlternative to SMTP
STRIPE_SECRET_KEYStripe payments
STRIPE_PUBLISHABLE_KEYStripe frontend
STRIPE_WEBHOOK_SECRETStripe webhook verification
AUTH_MODEnone / basic / oidc (default: basic)

See .env.example for the full list.


Architecture

Browser  ──▶  client (Vite / React)
                │
                ▼
              server (Express, port 3300)
                ├── /api/chat        ──▶  Anthropic / LiteLLM
                ├── /api/agents      ──▶  ~/.claude/skills/<id>/
                ├── /api/auth        ──▶  basic / magic-link / OIDC
                ├── /api/billing     ──▶  Stripe
                └── gmail-poller     ──▶  python3 gmail_client.py
                         │
                         ▼  launchAgent()
                   host-relay  ──▶  Claude CLI session

Each agent is a Claude Code skill stored in ~/.claude/skills/<id>/ with its own inbox, authorized senders, and deploy target.


Creating your first agent

  1. Open the app → Chat

  2. Describe your agent in plain English, for example:

    Create an agent for MIA bug reports. The bot email is miabot@gmail.com.
    Only carlos@company.com can send requests. Repo at /home/ubuntu/MIA,
    deploy via SSH to my-server.com.

  3. Drop your credentials.json (Gmail OAuth) into the generated skill folder.

  4. Run the OAuth flow once: python3 gmail_client.py auth

  5. Enable the agent from the Agents page. Polling starts immediately.


Security