solovieff/kibernikto
Acerca de
Kibernikto is a multi-agent AI framework built on PydanticAI with MCP tools, persistent memory, and Telegram bot integration.
IA y aprendizaje automáticoCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalkibernikto
Kibernikto is a multi-agent AI framework with a Telegram bot connection, built on
pydantic-ai and aiogram 3. Run it as a ready Telegram bot or use
build_kibernikto_agent() (a plain pydantic_ai.Agent with Kibernikto capabilities) as the core of your own app.
2.0 is in beta and is a full rewrite: 1.x code and env names are not compatible. See the changelog and migration table.
Telegram
- ✍️ conversations with AIs in groups or privately, per-chat history
- 🔉 voice message transcription and optional spoken replies (
/toggle_voice) - 📸 image understanding and generation
- 🤖 other Telegram bots as delegated sub-agents (peers)
- ⭐️ Telegram Stars subscriptions
- 🧐 user messages and errors forwarded to a service group
Core
- 🐫
build_kibernikto_agent()— a plainpydantic_ai.AgentwithConversationHistory+PersonaCapability - 🧩 local experts (web, image, conversation) via pydantic-ai-harness
SubAgents - 💾 history in files, SQLite or PostgreSQL; media in files or S3; public images via imgbb or S3
- 🔭 Logfire tracing of every agent, model and tool call
Install
pip install --pre kibernikto # 2.0 beta
Run the Telegram bot
- Copy
deploy/tg_bots/kibernikto/kibernikto.envand fill in at leastTG_BOT_KEY,TG_MASTER_IDand the provider key for your model (e.g.OPENROUTER_API_KEY). - Start it — one process per bot token:
kibernikto --env_file_path=/path/to/kibernikto.env # single agent
kibernikto --env_file_path=/path/to/kibernikto.env --multi-agent # with local experts
Models are provider-prefixed: openrouter:vendor/model, OpenAI-compatible gateways
(vsegpt:, routerai:, beget: — key in VSEGPT_API_KEY, ROUTERAI_API_KEY, BEGET_AI_API_KEY)
or any pydantic-ai model string. A new gateway is one
OPENAI_COMPATIBLE_PROVIDERS entry in kibernikto/ai/agent/utils.py.
Voice replies
Set TTS_OPENAI_API_KEY to enable speech synthesis. In a Telegram chat, /toggle_voice
switches between spoken and text replies; existing chats default to text. Voice output is
generated through an OpenAI-compatible speech endpoint and billed by that provider. See
the voice configuration and fallback behavior.
Deploy
Both Dockerfiles default to --multi-agent. In this mode,
AGENT_KIBERNIKTO_ALLOW_ZERO_CREDITS=true (default) keeps chats on the poor model
when credits run out; false blocks billable agent runs at balance ≤ 0 with a /pay hint.
Charging stops at zero. Non-billable peer envelopes are exempt; subscription checks are independent.
deploy/ is a ready server layout: copy it, add a deploy key and env, run as root:
deploy/scripts/rebuild.sh -b kibernikto # clone from git, build, run as kibernikto.service (podman + systemd)
deploy/scripts/update.sh # rebuild every bot with new commits
One folder per bot in deploy/tg_bots/. Plain Docker, storage, backups and rollback:
deployment runbook.
Telegram peer agents
Add a Telegram bot alongside local experts with
build_multi_agent_with_tg_peers([TelegramPeerAgent(...)]).
Development
Python 3.14 and the locked dependencies in uv.lock:
uv sync
uv run python -m unittest discover -s tests -q
uv run python main.py --env_file_path=env/kibernikto.env
Explorar proyectos relacionados
Cargando…