# Standard Setup for Telegram

This is the fastest and most direct path to getting a private AI agent running. It is designed for users who want a stable, background service to interact with primarily through Telegram.

**Step 1: Install the Agent**

Open your terminal and run the universal installation script. This will download the Clawd Bot repository, install all dependencies, and create the necessary configuration directories for you.

`curl -fsSL https://clawd.bot/install.sh | bash`

**Step 2: Configure Your Agent**

Navigate into the newly created Clawd Bot directory. You will need to create a .env file to store your secrets. This file tells the agent which Large Language Model to use and how to connect to Telegram.

The two essential lines to add are your Telegram bot token, obtained from BotFather, and your personal Telegram user ID to ensure only you can command the agent.

`TELEGRAM_BOT_TOKEN=your_token_from_botfather`\
`TELEGRAM_ALLOWED_USERS=your_numeric_telegram_id`

**Step 3: Run the Agent**

Start the agent in its standard mode. It will run in the foreground of your terminal.

`npm start`

Your Clawd Bot is now online. You can begin interacting with it immediately from the Telegram chat you created. For a permanent setup, you can use a process manager like PM2 or configure a systemd service.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clawdtoken.xyz/4-setup/standard-setup-for-telegram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
