Features: - Multi-platform bot (Slack, Telegram) - Memory system with SQLite FTS - Tool use capabilities (file ops, commands) - Scheduled tasks system - Dynamic model switching (/sonnet, /haiku) - Prompt caching for cost optimization Optimizations: - Default to Haiku 4.5 (12x cheaper) - Reduced context: 3 messages, 2 memory results - Optimized SOUL.md (48% smaller) - Automatic caching when using Sonnet (90% savings) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Ajarbot Setup Guide
Quick Start
-
Clone the repository
git clone https://vulcan.apophisnetworking.net/jramos/ajarbot.git cd ajarbot -
Set up Python environment
python -m venv venv venv\Scripts\activate # Windows pip install -r requirements.txt -
Configure credentials
# Copy example files copy .env.example .env copy config\scheduled_tasks.example.yaml config\scheduled_tasks.yaml copy config\adapters.yaml config\adapters.local.yaml -
Add your API keys
- Edit
.envand add yourANTHROPIC_API_KEY - Edit
config\adapters.local.yamlwith your Slack/Telegram tokens - Edit
config\scheduled_tasks.yamlwith your user/channel IDs
- Edit
-
Run the bot
python bot_runner.py
Important Files (NOT in Git)
These files contain your secrets and are ignored by git:
.env- Your API keysconfig/adapters.local.yaml- Your bot tokensconfig/scheduled_tasks.yaml- Your user IDsmemory_workspace/memory_index.db- Your conversation historymemory_workspace/memory/*.md- Your daily logs
Model Switching Commands
Send these commands to your bot:
/haiku- Switch to Haiku (cheap, fast)/sonnet- Switch to Sonnet (smart, caching enabled)/status- Check current model and settings
Cost Optimization
- Default model: Haiku 4.5 (12x cheaper than Sonnet)
- Prompt caching: Automatic when using Sonnet (90% savings)
- Context optimized: 3 messages, 2 memory results
- Max tool iterations: 5
See README.md for full documentation.