Connect agents to Telegram and Discord with zero-boilerplate. No webhooks or public URLs required.
uv pip install -e .Linkos uses environment variables for zero-config startup.
export TELEGRAM_TOKEN="your_token"
export DISCORD_TOKEN="your_token"Add one line to your existing agent script. Linkos detects the environment (FastAPI or standalone) and runs in the background.
from linkos import Gateway
from my_agent import my_ai_agent
# Magic Mode: starts clients and history management automatically
Gateway(agent=my_ai_agent)- Magic Gateway: Auto-detects running event loops (FastAPI/Uvicorn) or starts a background thread.
- AG-UI Bridge: Standardized interface for
LangGraph,ADK, and custom agents via therun()orprocess_message()methods. - Smart History: Persists full message context to keep multi-turn agents in sync.
| Platform | Library |
|---|---|
| Telegram | python-telegram-bot (long polling) |
| Discord | discord.py (WebSocket) |
| Slack | Coming Soon |
Linkos supports three ways to talk to your agent:
- AG-UI Protocol:
agent.run(input)(Streaming events) - Simple Class:
agent.process_message(message, context) - Callable:
async def my_agent(text: str) -> str