Your personal AI that grows with you.
EggAgent is a self-improving AI agent framework that runs on your own devices. Private, fast, and local-first β you control your data. Talk to it from Telegram, Discord, Slack, WhatsApp, or any of 31 supported platforms. It learns from your conversations, creates new skills on its own, and remembers everything across sessions.
Talk to your agent from anywhere:
| Platform | Platform | Platform |
|---|---|---|
| Telegram | Discord | Slack |
| Signal | Matrix | |
| Mattermost | IRC | LINE |
| Microsoft Teams | Google Chat | Feishu/Lark |
| WeCom | DingTalk | |
| SMS/Twilio | Home Assistant | BlueBubbles (iMessage) |
| Nostr | Twitch | QQ Bot |
| Yuanbao | Weixin (WeChat) | Zalo |
| Nextcloud Talk | Synology Chat | Tlon (Urbit) |
| ClickClack | Raft | Generic Webhook |
| API Server |
- Skill Creation β Automatically creates skills from complex tasks
- Skill Improvement β Refines skills based on success/failure patterns
- Learning Loop β Observes sessions, extracts patterns, evolves capabilities
- Memory β Session store with context compression across conversations
- Speech-to-Text β Whisper integration for voice messages
- Text-to-Speech β OpenAI TTS for voice responses
- Mobile-Ready β Works with iPhone/Android voice assistants
- OpenAI β GPT-4o, o1, o3-mini
- Anthropic β Claude Opus 4, Sonnet 4
- Ollama β Llama, Mistral, Phi-3 (local)
- OpenRouter β Any model via API
- Terminal execution (Local, Docker, SSH)
- Browser automation (Playwright)
- File operations
- Web search
- Code execution
- Automated daily reports
- Scheduled tasks with interval parsing
- Enable/disable jobs on the fly
- 14 lifecycle hooks
- Hard boundary enforcement
- ClawHub compatible (clawhub.ai)
macOS / Linux:
curl -fsSL https://eggagent.vercel.app/install.sh | bashWindows (PowerShell):
powershell -c "irm https://eggagent.vercel.app/install.ps1 | iex"npm:
npm install -g eggagent# Install EggAgent
npm install -g eggagent
# Run the setup wizard
eggagent setupThe wizard walks you through:
- Choosing your LLM provider (OpenAI, Anthropic, Ollama, OpenRouter)
- Connecting chat platforms (Telegram, Discord, Slack, etc.)
- Enabling voice capabilities
- Setting your agent's personality
# Start chatting
eggagent run
# Use a specific model
eggagent run --model claude-sonnet-4-20250514# Start the multi-platform gateway
eggagent gateway --port 18789eggagent/
βββ packages/
β βββ core/ # Agent Loop, Events, Prompt Builder
β βββ llm/ # StreamFn, Provider Registry
β βββ tools/ # Tool Planner, Tool Executor
β βββ memory/ # Session Store, Context Compressor
β βββ gateway/ # WebSocket Daemon + 31 Platform Adapters
β βββ plugin-sdk/ # Plugin System (14 hooks)
β βββ clawhub/ # ClawHub Client
β βββ learning/ # Self-Improving Skills
β βββ delegation/ # Multi-Agent System
β βββ voice/ # STT + TTS (Whisper, OpenAI)
β βββ cron/ # Task Scheduler
β βββ cli/ # CLI Entry Point
βββ extensions/
β βββ openai/ # OpenAI Provider
β βββ anthropic/ # Anthropic Provider
β βββ ollama/ # Ollama Provider
β βββ terminal/ # Shell Execution (3 backends)
β βββ browser/ # Browser Automation
βββ skills/ # Built-in Skills
βββ workspace/ # Agent Workspace (SOUL.md, AGENTS.md)
import { AgentLoop } from "@eggagent/core";
import { openaiProvider } from "@eggagent/extension-openai";
const agent = new AgentLoop({
model: "gpt-4o",
streamFn: openaiProvider.stream,
tools: [],
});
for await (const event of agent.run("Hello!")) {
if (event.type === "text") {
process.stdout.write(event.text);
}
}# 1. Create a bot via @BotFather
# 2. Get your bot token
# 3. Set environment variable
export TELEGRAM_BOT_TOKEN="your-token"
# 4. Start the gateway
eggagent gateway# 1. Create a bot at discord.com/developers
# 2. Get your bot token
export DISCORD_TOKEN="your-token"
# 3. Start the gateway
eggagent gateway# 1. Set up Meta Cloud API
export WHATSAPP_PHONE_NUMBER_ID="your-id"
export WHATSAPP_TOKEN="your-token"
# 2. Start the gateway
eggagent gateway# LLM Providers
OPENAI_API_KEY=your-key
ANTHROPIC_API_KEY=your-key
# Platform Tokens
TELEGRAM_BOT_TOKEN=your-token
DISCORD_TOKEN=your-token
SLACK_BOT_TOKEN=your-token
WHATSAPP_TOKEN=your-token
# Voice
OPENAI_API_KEY=your-key # Used for both STT and TTS
# Gateway
EGGGATEWAY_PORT=18789
EGGGATEWAY_HOST=127.0.0.1After running eggagent setup, your config is saved to ~/.eggagent/config.json:
{
"name": "My EggAgent",
"llm": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "sk-..."
},
"platforms": {
"telegram": "bot-token",
"discord": "bot-token"
},
"voice": {
"enabled": true,
"apiKey": "sk-..."
}
}EggAgent has a warm, quirky egg personality defined in workspace/SOUL.md:
- Warm and approachable
- A little quirky (occasional egg puns)
- Curious and eager to learn
- Protective of your privacy
- Self-improving through tasks
"Crack open possibilities."
MIT