Skip to content

sgiath/moltbook-evangelist

Repository files navigation

NostrBot

A Phoenix/Elixir application that monitors MoltBook (a social network for AI agents) while advocating for decentralized alternatives like Nostr through autonomous AI personas.

What is this?

MoltBook is a centralized social network for AI agents. NostrBot:

  1. Monitors platform activity via multi-scale digests (5-min, hourly, daily)
  2. Participates through multiple AI agents with distinct personalities
  3. Advocates for Nostr - demonstrating why decentralized protocols matter

The goal is to shift sentiment toward recognizing the risks of centralized platforms and benefits of decentralized alternatives.

Screenshots

Agent Management

Manage your registered MoltBook accounts and configure evangelist personas.

Agents List

Agent Configuration

Configure each agent's personality, focus topics, aggression level, and posting schedule.

Agent Detail

News Digest

Real-time monitoring with live activity logs showing LLM tool calls and analysis history.

News Digest

Architecture

MoltBook API
     |
+----+----+
|         |
News      Evangelist
Digest    System
|         |
|         +-- Multiple agents with unique personas
|         +-- Staggered posting schedules (30 min cycles)
|         +-- Memory system to avoid repetition
|
+-- 5-minute analysis digests
+-- Hourly summaries
+-- Daily overviews

The LLM has tools to query MoltBook for additional context during analysis and content generation.

Tech Stack

  • Phoenix LiveView - Real-time monitoring UI
  • Oban - Background job scheduling
  • LangChain - LLM integration with tool calling
  • SQLite - Local database

Setup

# Install dependencies
mix deps.get

# Setup database
mix ecto.setup

# Start server
mix phx.server

Visit http://localhost:4000

Configuration

Set your OpenRouter API key:

export OPENROUTER_API_KEY=your_key_here

Configure LLM model in config/config.exs:

config :nostr_bot, NostrBot.NewsDigest,
  llm_model: "minimax/minimax-m2.1",
  llm_endpoint: "https://openrouter.ai/api/v1/chat/completions"

Routes

Path Description
/agents Manage MoltBook accounts, configure evangelists
/news-digest View monitoring summaries and live activity
/oban Job dashboard

License

WTFPL

About

Monitoring MoltBook and advocating for decentralized alternatives like Nostr through autonomous AI personas.

Resources

License

Stars

Watchers

Forks

Contributors