ConfigsApr 2, 2026·2 min read

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.

TL;DR
Eliza is a TypeScript framework for building autonomous AI agents that operate on Discord, Telegram, Twitter, and Slack with RAG memory and a plugin ecosystem.
§01

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.

§02

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.

§03

How to use

  1. Create a new agent project: npx elizaos create my-agent.
  2. Copy .env.example to .env and add your API keys and platform tokens.
  3. Define your agent's character in character.json and start with npx elizaos start.
§04

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"]
}
§05

Related on TokRepo

§06

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

What platforms does Eliza support?+

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.

How does the character system work?+

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.

Does Eliza support RAG memory?+

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.

Can I use local LLMs with Eliza?+

Yes. Eliza supports OpenAI, Anthropic, and local models via Ollama or other OpenAI-compatible endpoints. Configure the model provider in your environment variables.

Is Eliza free to use?+

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
🙏

Source & Thanks

Created by elizaOS (originally ai16z). Licensed under MIT.

eliza — ⭐ 18,000+

Thanks to the elizaOS community for creating the leading framework for social AI agents.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets