Eliza — TypeScript AI Social Agent Framework
Build autonomous AI agents for Discord, Telegram, Twitter, and Slack. Plugin ecosystem with RAG memory. By elizaOS. 18K+ stars.
What it is
Eliza is a TypeScript framework for building autonomous AI agents that operate across social platforms. It supports Discord, Telegram, Twitter, and Slack as communication channels. Agents are defined through character files that specify personality, goals, and behavior. The framework includes a plugin ecosystem for extending agent capabilities and RAG-based memory for context retention.
Eliza targets developers building social AI agents, community bots, and autonomous assistants. The character-driven approach means you define who the agent is and how it behaves, not just what it does.
How it saves time or tokens
Eliza provides the platform integration layer that you would otherwise build from scratch. Discord OAuth, Twitter API, Telegram Bot API, and Slack integration are handled by the framework. The character file system means you configure agent behavior declaratively instead of writing custom handler code. RAG memory gives agents long-term context without manual state management.
How to use
- Create a new agent project:
npx elizaos create my-agent. - Copy
.env.exampleto.envand add your API keys and platform tokens. - Define your agent's character in
character.jsonand start withnpx elizaos start.
Example
# Create and start an agent
npx elizaos create my-agent
cd my-agent
cp .env.example .env
# Edit .env with API keys
npx elizaos start
{
"name": "TechBot",
"bio": "A helpful AI assistant for developer communities",
"lore": ["Passionate about open-source software"],
"messageExamples": [
[
{"user": "user1", "content": "What is TypeScript?"},
{"user": "TechBot", "content": "TypeScript adds static types to JavaScript. It catches bugs at compile time."}
]
],
"plugins": ["@elizaos/plugin-discord", "@elizaos/plugin-twitter"]
}
Related on TokRepo
- Agent Tools — AI agent frameworks
- Automation Tools — Bot and automation platforms
Common pitfalls
- Each platform has rate limits and terms of service. Aggressive posting or messaging on Twitter or Discord can get your agent banned. Configure posting frequency conservatively.
- Character files define agent personality but do not prevent all undesirable outputs. Add explicit constraints in the character's rules and lore sections.
- RAG memory grows over time. Implement memory pruning or summarization to prevent context windows from filling with irrelevant historical data.
Frequently Asked Questions
Eliza supports Discord, Telegram, Twitter/X, and Slack. Each platform is available as a plugin that you add to your character configuration. The framework handles platform-specific API integration.
Characters are JSON files that define the agent's name, bio, personality traits (lore), example conversations, and active plugins. The character shapes how the agent responds and interacts across all connected platforms.
Yes. Eliza includes RAG-based memory that stores and retrieves relevant context from past conversations. This gives agents long-term memory without manually managing conversation history.
Yes. Eliza supports OpenAI, Anthropic, and local models via Ollama or other OpenAI-compatible endpoints. Configure the model provider in your environment variables.
Eliza is open source. You pay for LLM API calls and any platform-specific costs (e.g., Twitter API access). The framework itself has no licensing fees.
Citations (3)
- Eliza GitHub— Eliza is a TypeScript framework for autonomous AI agents on social platforms
- elizaOS Documentation— Character-driven AI agent development with plugin ecosystem
- elizaOS— AI social agent patterns and platform integration
Related on TokRepo
Source & Thanks
Discussion
Related Assets
Conda — Cross-Platform Package and Environment Manager
Install, update, and manage packages and isolated environments for Python, R, C/C++, and hundreds of other languages from a single tool.
Sphinx — Python Documentation Generator
Generate professional documentation from reStructuredText and Markdown with cross-references, API autodoc, and multiple output formats.
Neutralinojs — Lightweight Cross-Platform Desktop Apps
Build desktop applications with HTML, CSS, and JavaScript using a tiny native runtime instead of bundling Chromium.