Skip to content

Add example of running multiple bots on the same server #15

Closed

Description

@tiaod

I looked at the documentation and examples, and they only explain how to run a single bot. How should one operate if they want to run multiple bots on the same server at the same time?

Activity

  1. dahlia commented on Nov 5, 2025

    @dahlia
    Member

    Thank you for your interest in BotKit! This is a great question.

    Currently, BotKit has a limitation where each server instance can only run one bot (one ActivityPub actor). This means that if you want to run multiple bots, you would need to:

    1. Run them on different domains/subdomains (e.g., bot1.example.com, bot2.example.com)
    2. Run separate server processes for each bot, each listening on different ports and behind a reverse proxy

    This is indeed a limitation we're aware of, and we plan to address this in a future version to allow multiple bots per server instance. However, there's no specific timeline for this feature yet.

    For now, if you need to run multiple bots, I'd recommend using a reverse proxy setup (like nginx or Caddy) to route different domains/paths to different bot processes. Would that work for your use case?

  2. dahlia commented on Dec 13, 2025

    @dahlia
    Member

    We've created #16 to track the design and implementation of multi-bot support. The proposed approach introduces a new createInstance() function that can host multiple bots, while keeping the existing createBot() API for single-bot use cases.

  3. self-assigned this
    on Jul 5, 2026
  4. added theissue type on Jul 7, 2026
  5. dahlia commented on Jul 7, 2026

    @dahlia
    Member

    BotKit finally has multiple bots per instance (#16). It will ship with the next minor release, BotKit 0.5.0.

  6. updated Priority Low and Effort Medium on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Type

Fields

Priority

Low

Effort

Medium

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions