Bot Setup¶
SimpleContext-Bot is a ready-to-run Telegram bot powered by SimpleContext. A built-in wizard handles all setup automatically.
Requirements¶
- Python 3.10+
- Telegram Bot Token (from @BotFather)
- LLM API key (Gemini free / OpenAI / Ollama local)
Install¶
Run Setup Wizard¶
The wizard walks through 6 steps:
═══════════════════════════════════════════════════════
🧠 SimpleContext-Bot — Setup Wizard
═══════════════════════════════════════════════════════
Step 1/6: Download SimpleContext Engine
⬇️ Downloading SimpleContext engine... ✅
📦 Installing engine... ✅
Step 2/6: Download Agent Definitions
⬇️ Downloading SimpleContext-Agents... ✅
📦 Installing agents... (15 agents) ✅
Step 3/6: Plugin Ecosystem (Optional)
Install Vector Search?
→ Semantic similarity search — find memory by meaning, not exact words
[y/N]: y
⬇️ Downloading plugin registry... ✅
📦 Installing Vector Search... ✅
Step 4/6: Telegram Bot Token
Get token from @BotFather on Telegram.
Telegram Bot Token: ****
Step 5/6: LLM Provider
1. Gemini (Google) ⭐ FREE
2. OpenAI
3. Ollama (Local, Free)
Enter choice [1]: 1
Gemini API Key: ****
Step 6/6: Final Configuration
Default agent [general]: general
✅ Setup Complete!
Get Your Tokens¶
- Open Telegram → search
@BotFather - Send
/newbot - Follow the steps → copy the token
- Go to aistudio.google.com/app/apikey
- Click Create API Key → copy
- Go to platform.openai.com/api-keys
- Click Create new secret key → copy
- Install from ollama.ai
ollama pull llama3- Make sure Ollama is running before starting the bot
Start the Bot¶
CLI Reference¶
simplecontext-bot setup # First-time setup
simplecontext-bot start # Start the bot
simplecontext-bot start --debug # Start with verbose logging
simplecontext-bot status # Show configuration summary
simplecontext-bot status --test # Test LLM connection
simplecontext-bot agents # List installed agents
simplecontext-bot update # Update engine + agents
simplecontext-bot update --engine-only # Update engine only
simplecontext-bot update --agents-only # Update agents only
simplecontext-bot plugins list # List all plugins
simplecontext-bot plugins install <id> # Install a plugin
simplecontext-bot plugins remove <id> # Remove a plugin
Files After Setup¶
Everything is stored in ~/.simplecontext-bot/:
~/.simplecontext-bot/
├── config.json ← your settings (tokens, LLM config, plugin list)
├── bot.db ← conversation memory (SQLite)
├── simplecontext/ ← engine (auto-downloaded)
├── agents/ ← agent YAML files (auto-downloaded)
│ ├── general.yaml
│ ├── coding.yaml
│ └── ...
└── plugins/ ← installed plugins
└── vector_search_plugin.py
Start Fresh¶
If something goes wrong, wipe everything and start over: