Quick start
This walks through the minimum to get a working Talon agent connected to Telegram. You’ll have a daemon running and responding to messages by the end.
What you need
Section titled “What you need”- Talon installed and built (installation guide)
- A Telegram bot token — get one from @BotFather
- Your Telegram user ID — send a message to @userinfobot to find it
1. Set up environment variables
Section titled “1. Set up environment variables”Create a .env file in the project root:
TELEGRAM_BOT_TOKEN=your-bot-token-here2. Create the config
Section titled “2. Create the config”If you ran npx talonctl setup, you already have a talond.yaml. Otherwise, create one. Here’s the minimal working config:
storage: type: sqlite path: data/talond.sqlite
personas: - name: assistant model: claude-sonnet-4-6 systemPromptFile: personas/assistant/system.md capabilities: allow: - channel.send:my-telegram
channels: - name: my-telegram type: telegram enabled: true config: botToken: ${TELEGRAM_BOT_TOKEN} allowedChatIds: - "123456789" # replace with your Telegram user ID, as a string
bindings: - persona: assistant channel: my-telegram isDefault: true
auth: mode: subscription
logLevel: infodataDir: dataReplace 123456789 with your actual Telegram user ID. Keep the quotes. Talon compares chat IDs as strings, so an unquoted number does not match.
3. Scaffold the persona
Section titled “3. Scaffold the persona”npx talonctl add-persona --name assistantThis adds the persona to talond.yaml and creates personas/assistant/system.md from the template. Edit the file to set the agent’s tone, constraints, and any tool instructions.
add-persona refuses a name that is already in the config. If you pasted the config above, the assistant entry exists already. In that case create the prompt file by hand:
mkdir -p personas/assistantecho "You are a helpful assistant." > personas/assistant/system.md4. Run migrations
Section titled “4. Run migrations”npx talonctl migrate --config talond.yaml5. Validate the config
Section titled “5. Validate the config”npx talonctl doctor --config talond.yamlAll checks should pass: Node.js version, Docker, config file, database access, and data directories. If any fail, the output gives a hint on what to fix.
6. Start the daemon
Section titled “6. Start the daemon”node dist/index.js --config talond.yamlThe daemon logs structured JSON. Look for these messages in the msg field:
daemon: startingdaemon: all channel connectors starteddaemon: running7. Send a message
Section titled “7. Send a message”Open Telegram and send a message to your bot. The agent should respond within a few seconds.
Connecting via terminal
Section titled “Connecting via terminal”The terminal channel lets you chat with any persona directly from the CLI — useful for testing without setting up a messaging platform.
Add the terminal channel to your config:
channels: - name: my-terminal type: terminal enabled: true config: port: 7700 host: 0.0.0.0 token: ${TERMINAL_TOKEN}Add TERMINAL_TOKEN=your-secret to .env, add a binding, restart the daemon, then connect:
npx talonctl chat --host localhost --port 7700 --token your-secretYou can also set TERMINAL_TOKEN in the environment instead of passing --token. Use --persona <name> to pick a persona and --client-id <id> to keep the same conversation thread across reconnects.
You get a rendered Markdown terminal client with a typing spinner while the agent works.
Next steps
Section titled “Next steps”- Configuration reference — all config options explained
- Personas guide — system prompts, capabilities, and model config
- Channels guide — setup for every supported channel
- Browser voice — talk to a persona from the browser
- Vision — send images and ask about them