Skip to main content

Prerequisites

  • Docker & Docker Compose: Install Docker.
  • Telegram Bot Token: Get one from @BotFather.
  • API Keys: At least one provider key (OpenAI, Gemini, Anthropic, etc.).

Installation

1. Create a Project Directory

Create a folder for your bot and enter it:

2. Create Configuration File (.env)

Create a file named .env and add your credentials.
Example .env content:

3. Create Docker Compose File

Create a file named docker-compose.yml with the following content. This tells Docker how to run Chibi.
You can read more about Agent configuration here: core settings You can get the env file template with all available settings here: .env template

4. Start the Bot

Run the following command to download the image and start the bot in the background:
Check the logs to ensure everything is running smoothly:

Updating

To update Chibi to the latest version:

Troubleshooting

  • Container keeps restarting: Check logs with docker-compose logs. Usually indicates a missing API key or invalid token.
  • Permissions errors: Ensure the user running docker has permissions to create volumes.