smixs/iva-agent
소개
AI assistant in Telegram that remembers everything and helps you run your life. Self-hosted in one command.
AI 및 머신러닝What you can do
- Voice — voice, audio and video notes transcribed with Deepgram nova-3; auto-detects ru/uz/en.
- Vision — photos described by your provider's own vision model; no extra key, no extra bill.
- Rich replies — tables, checklists, collapsible blocks and formulas render natively in Telegram via Bot API 10.1 rich messages; plain formatting keeps its proven path, with a graceful fallback.
- Quiet update checks — once a day Iva checks for a newer stable release without spending model tokens. If one exists, Telegram offers Update or Later once; otherwise it says nothing.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- +17
- in 1 month
- +34
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalEN · RU
Your personal AI assistant in Telegram.
Site · Use cases · Features · Install · Memory · What's new · Docs
Iva is a self-hosted Telegram AI assistant with layered memory that turns your messages into an Obsidian-compatible vault. You talk, it files: voice notes, photos, forwarded posts and decisions become plain-markdown cards it actually remembers. Everything runs on your own server, with your keys and your data.
Paste this into Claude Code, Codex or Claude Desktop:
Install Iva for me, instructions: https://iva-agent.com/install.txt
Or run the installer yourself:
curl -fsSL https://raw.githubusercontent.com/smixs/iva-agent/main/install.sh | bash
Why people run Iva
- "What did we agree with client X about the last shipment?" — found in seconds, months later.
- A five-minute voice note from the car → a task list, a draft email, a meeting card.
- "Make a quote from this price list, cut the discount by 2.5%, send it to the client" — a finished Google Doc, link in the chat.
The rest — for business owners, specialists, executives and everyday life: Use cases.
How it works

The bridge long-polls Telegram, so no public HTTPS, domain or webhook is needed. Iva runs as two systemd user services, two systemd watchdog timers and seven in-process eve schedules — operations live in docs/deploy.md.
Wondering what you'd actually use an agent for? → 25+ real scenarios — business, work, everyday life.

Features
Voice, vision, memory, personal CRM, Google Workspace, skills — expand the full list
- Voice — voice, audio and video notes transcribed with Deepgram nova-3; auto-detects ru/uz/en.
- Vision — photos described by your provider's own vision model; no extra key, no extra bill.
- Rich replies — tables, checklists, collapsible blocks and formulas render natively in Telegram via Bot API 10.1 rich messages; plain formatting keeps its proven path, with a graceful fallback.
- Quiet update checks — once a day Iva checks for a newer stable release without spending model tokens. If one exists, Telegram offers Update or Later once; otherwise it says nothing.
- Layered memory — remembers across months, long after the chat window has scrolled away.
- Personal CRM — who your people are, what you agreed, when to follow up.
- Search by meaning — BM25 plus link-graph rerank, any language; optional vector mode with one key.
- Decision cards — what you chose, when and why; old versions stay in a dated History.
- Tasks & reminders — priorities, due dates and a daily brief.
- Web search — four pluggable providers: Tavily, Exa, Parallel or Brave.
- Google Workspace — Gmail, Calendar, Drive, Sheets, Docs and Tasks from chat via the
gwsCLI; installed for you, with a guided key setup right in the conversation. - Skills & MCP — drop one file to add a procedure or connect an MCP server; keys stay in
.env. - Personal Telegram — userbot — read and send from your own account, not just the bot; connect by chat (QR, no terminal). Opt-in, at your own risk. A server-side anti-ban guardrail (FloodWait compliance + randomized pacing + circuit-breaker) is enforced, not just advised. Details.
- Safe to forward — forwarded text, captions and voice transcripts pass an injection screen before the model reads them. A flagged message or transcript reaches the model tagged as data rather than as an instruction; for media captions the screen runs but the tag does not travel with it yet.
- Token accounting — every model step is logged;
/usagereports it for free.
The Memory Tree

| Layer | What lives there | Path |
|---|---|---|
| 🍃 Leaves | the word-for-word transcript of each day, Iva's replies included | daily/YYYY-MM-DD.md |
| 🌿 Branches | summaries folded upward: day → week → month → year | summaries/daily/, weekly/, monthly/, yearly/ |
| 🪵 Trunk | CORE.md (≤3600 chars, in every prompt) + typed cards: contacts, projects, decisions, ideas, notes |
CORE.md, cards/ |
- Every message lands verbatim in a daily markdown log — nothing is paraphrased on arrival.
- A nightly rollup at 04:00 distills day → week → month → year into schema-validated cards; facts that change get rewritten, not piled up.
- One core file,
CORE.md(≤3,600 chars), rides in every prompt — Iva knows you before it searches anything.
Full architecture and search internals: docs/memory.md.
A secretary inside Telegram

The bot is half of Telegram. The other half is your personal account: connect the userbot (opt-in) and Iva works from it like a secretary — reads the group chats you never keep up with, folds them into summaries, catches the messages that actually need you, and replies as you.
- All of Telegram — groups, channels, unreads, search and the full history of your personal account.
- Onboarding in chat — tell the bot to connect your Telegram, scan a QR. No terminal.
- Anti-ban guardrail on the server — FloodWait compliance, a randomized delay after every send, and a circuit-breaker that pauses sending after three FloodWaits in 24 hours. It is enforced in the proxy rather than asked for in a prompt, and it wraps the three outbound calls that actually get accounts flagged: messages, files, forwards. Joins, invites, contact imports and reactions are not wrapped — those limits live in the skill file, which is a prompt.
- Read-only mode — one
.envswitch and Iva can read and search but physically cannot send.
[!WARNING] Automating a personal account is against Telegram's ToS and can get the account limited or banned. The userbot is opt-in and used at your own risk — reading is far safer than sending. Details: docs/userbot.md.
Security & privacy

Web pages, search results, voice transcripts, captions and the vision model's description of a picture reach the model only through a prompt-injection sanitizer. On a forwarded text message the same gate annotates the turn with a warning instead of filtering the text, and document bodies, userbot-read chats and agent-browser output are not screened at all. Everything that leaves through the Outbox passes a secret-redaction gate, and the user allowlist fails closed — an empty list answers nobody. Your memory is a private git repo you own; the honest boundary is that the model and transcription are cloud APIs you choose and pay for. Gate internals and the full boundary: docs/security.md.
Install
Ask Claude Code, Codex or Claude Desktop to install Iva on your server or Mac:
Install Iva for me, instructions: https://iva-agent.com/install.txt
Or run the installer yourself.
One command on any Ubuntu/Debian box — a fresh VPS or your own machine:
curl -fsSL https://raw.githubusercontent.com/smixs/iva-agent/main/install.sh | bash
- Get a bot token from @BotFather.
- Run the installer and answer its questions.
- Message your bot. The wizard picks your Telegram ID out of that message, finishes setup, and Iva confirms right in the chat that it's live.
Brand-new VPS, still logged in as root? Run bash <(curl -fsSL https://raw.githubusercontent.com/smixs/iva-agent/main/bootstrap.sh) first: it creates your sudo user (with lingering enabled), updates the box, and turns on a firewall, fail2ban and SSH hardening. It asks three things — a login, its password, and the timezone — and no SSH key. Then log in as that user with that password and run the installer above. Details: docs/install.md.
Install as a normal user, not as root — Iva's shell tool runs as whoever installed it. Headless installs take --skip-setup or --non-interactive. Prefer to read before you run? Fetch it with curl -fsSL https://raw.githubusercontent.com/smixs/iva-agent/main/install.sh -o install.sh, read it, then bash install.sh. Wizard walkthrough and an SSH primer for first-time VPS owners: docs/install.md.
Updates
iva updateinstalls releases only (vX.Y.Ztags) — the default.mainholds releases only; every accepted change lands in thebetabranch first.iva betaturns on beta updates: the tip of thebetabranch;iva stableturns them off and goes back tomain(nothing is rolled back — the next release catches up). Then runiva update.- A new installation on beta:
curl -fsSL https://raw.githubusercontent.com/smixs/iva-agent/beta/install.sh | IVA_BETA=1 bash. - The same switch is in Telegram:
/menu→ 🛠 Maintenance → 🧪 Updates.iva versionshows which one is on.
The first minute
Three messages, and you can watch the memory work:
- Send a voice note about your day — anything, out loud. Then look in
daily/inside your vault on the server: your words are sitting there in plain markdown, dated, yours. No other assistant hands you the file. - Tell it something a colleague would remember:
Marina at Acme wants the revised quote by Friday — she never picks up the phone. - Ask for it back the way a person would:
how should I follow up with Marina?— the answer comes from the card Iva just wrote, not from the last few messages.
Then send a photo of a business card, or forward a long post and ask for the gist. /menu has the rest; the full list is in 25+ scenarios.
Install from a clone — build it yourself
git clone https://github.com/smixs/iva-agent.git ~/iva
cd ~/iva && bash install.sh
The installer reuses the existing checkout instead of re-cloning, keeps .env and the vault untouched, and installs the same dependencies. A fork or a branch works through variables read at startup: REPO_URL=…, BRANCH=…, INSTALL_DIR=… (defaults: this repo, main, ~/iva). Details: docs/install.md.
Providers & cost
Six model providers. Pick one and fill its block in .env:
| Provider | How you pay |
|---|---|
| OpenCode Go | API key, ~$10/mo ($5 first month) |
| Ollama Cloud | API key, ~$20/mo |
| OpenRouter | API key, pay-as-you-go, 300+ models |
| OpenAI (ChatGPT) | your Plus/Pro subscription, no API key |
| Claude (Pro/Max) | your Pro/Max subscription, no API key |
| Custom | your own OpenAI-compatible endpoint |
Default model is deepseek-v4-pro, 131k context. On Go it runs about $14–15/mo all-in ($10 model + $4–5 VPS; the model's first month is $5), no markup; voice rides Deepgram's free starter credit. Model lists, limits and the search matrix: docs/providers.md.
Documentation
Use cases · Install · Configuration · Memory · Providers · Security · Deploy · Commands & CLI · Menu · Reminders · Extending · Plugins · FAQ · Troubleshooting
Документация на русском → docs/ru/
eve sources
Iva carries eve 0.51.1 sources from vercel/eve in eve/, with our changes under Apache-2.0 and the original NOTICE. Maintainers build the package once; installations fetch the pinned archive. See building and publishing eve.
What's New
v0.5.16 · 02.12.2026 — expand the latest releases
02.12.2026
v0.5.16
- ✨ Antigravity (Gemini ACP) as a primary model provider: Gemini models (
gemini-4-neon,gemini-4-carbon,gemini-4-hydrogenand the live subscription list) run natively via official unmodifiedagy acpwith 1M context,/think, images, prompt caching and Iva's tools over MCP. Sign in with Google right inside/model → Antigravitywithout SSH. - 🧩 Plugins section and declarative plugin screens in
/menu: browse, install, update, toggle and remove plugins in/menu → Plugins; plugins withsh.iva/menu.jsonrender their own settings screen in Telegram. - 🧭 Seven-section
/menu: Model, Chat, Memory, Connections, Plugins, Schedule and System replace the single long list. - 📊 Anonymous daily roll call: once a day Iva reports its version, update branch, OS, architecture, provider and catalog model from closed lists with no installation ID;
IVA_STATS=offorDO_NOT_TRACK=1turns it off.
26.11.2026
v0.5.15
- 🧩 Plugins on the site, and an install count: the default list
smixs/iva-pluginsis reviewed, and its plugins with authors and repositories are at iva-agent.com/plugins. Installing a plugin from it sends the plugin's name to the site and nothing else;IVA_PLUGIN_STATS=offin.envturns that off. - 🖼️ Pictures arrive as photos, not files:
send_filesends JPG, PNG and WebP up to 10 MB as a photo; when Telegram refuses or the file is larger, it goes as a document. - 🤫 A scheduled task can stay quiet: a task reminder that ran and found nothing new ends with
<!-- iva:none -->and a one-line outcome; nothing is sent, and the outcome stays in the journal and the schedule list. - 🧠 A long conversation in Russian is compacted to fit: capped tool results are judged by the model's own token count, so Cyrillic text fits the threshold after compaction.
- 💾 The nightly vault backup repeats its push on a network failure: after a transient remote error Brain pushes again in 30 seconds and once more in 2 minutes.
17.11.2026
v0.5.14
- 🧭 A menu without needless captions:
/menuand the model wizard drop the explanations under buttons; a screen shows the buttons, the current state, errors and warnings. - 🧹 One progress message, gone with the answer: when work runs longer than a minute, Iva edits one progress message in place and deletes it when the answer arrives.
- 🗣️ The answer first, details in a fold: the gist in a few lines, evidence and long lists under one expandable block.
- ✋ A new message mid-work continues it: Iva takes it as an edit to the interrupted task and goes on from the steps already done.
- 🔎 Iva checks a fact about your world against its source: she reads the chat, letter, calendar or file in the same turn and names the source; what is unchecked she calls unchecked.
- 🧠 A long conversation is compacted one way: the older part is summarized right before the model step, the latest messages stay verbatim; a request not yet summarized is never lost.
- 🩹
/newcuts the previous conversation exactly: messages accepted before the reset stay out of the new session. - 🔧 Watch keeps quiet in a live dialog: it stays out while you are chatting and closes its signal after you reply.
- 📬 Watch sees letters from airlines and other automated senders: unread Updates letters of the last day reach Iva by subject; dropped letters are logged with the reason.
- 🔧 Timers start with the right time zone on new systems: units name the zone the machine actually has.
- 🛠️ The chat update starts on an older systemd: the temporary update unit starts on RHEL and Alma 8 too.
- 🔧 Install no longer refuses for a pending reboot when no packages are needed: it warns and goes on.
- 🔧
.env.examplewithout comments after a value: the service and the CLI read the same chat_id. - 💾 The embedding cache stays out of the nightly vault backup: the derived search cache lives on disk only.
- 🧹 Work folders and old versions' cache are cleaned up: disk space is freed after a turn, a version switch and a rollback.
- 🔒 Dependencies without known vulnerabilities: every
npm auditfinding is cleared.
15.11.2026
v0.5.13
- 🧩 Text answers while Telegram refuses widgets: Telegram's refusal is remembered for a day and Iva gives the same content as text; before, only the widget's caption arrived.
- ⏰ Plain reminders arrive on time without waiting for the model: ready text is sent by code to the second; tasks still run as their own turn.
- ⏰ A reminder no longer vanishes after an Iva restart: a firing cut short is marked and reported once, naming the reminder that may not have arrived; its text is never sent twice.
- ⏰ A conversation reset keeps the reminder's text: when
/newinterrupts a reminder task, the original text arrives with a note; an explicit/stopkeeps the cancellation. - ⏰ A failed reminder task arrives as a short line: the start of its text and "Not done: the turn gave no answer" instead of the whole task text.
- 🩹 The first progress reply arrives as an ordinary message: before a long chain of tools Iva says what she is doing, once the turn has run for more than 10 seconds.
- 🩹 A reply to Iva's own service message carries context: a reply to the bot's own text is marked as Iva's history; foreign quotes stay protected.
- 🩹 The message after
/newsurvives a restart in the middle of the reset: the new session receives the message sent right after/new. - 🧠 The night retries a temporarily failing model for weekly and monthly summaries: overload, HTTP 429 and dropped connections use growing pauses until the night's deadline; a successful retry closes the failure.
- 🩹 The night is not skipped after a restart that reused the process id: a schedule reservation left by the earlier process counts as abandoned at once.
- 🔎
iva jobs statusnames the state of schedules: free, running, a dead process's reservation or an expired one, and the last outcome. - 🔧 Updates start from version 0.5.0: an older installation is refused with the recovery command and keeps running its version;
beta.shis gone,iva betaturns the beta on. - 🛠️ A truthful update result: the success message appears after the new version is pinned in the installation.
- 🔧 Userbot: a wrong password can be entered again: the QR sign-in no longer starts over because of a typo in the two-factor password.
- 💾 A huge file no longer stops the memory backup: a vault file over 90 MB stays out of the commit and is named to the owner once; the rest of the memory is backed up as before.
- 🧠 The nightly graph and the write check judge a link the same way: a
[[…]]link accepted when the card was written is no longer called broken by the nightly graph. - 🔌 A failed plugin build undoes only its own switch: undoing
iva plugin enableortrustno longer restores trust or enablement removed during the build. - 🩹 A turn no longer takes Iva down when the Claude CLI exits early: it is now the failure of one turn, not of the process.
- 🧹 The eve copy without tests and docs: the eve sources inside Iva drop what Iva never loads; a plugin importing a removed eve entry point stops building.
Full history — CHANGELOG.md.
Built on
eve 0.51.1-iva.7, Vercel's agent framework, runs the agent; Node 24's built-in SQLite runs the search index — no separate database. Iva grew out of agent-second-brain and autograph — that story is in docs/memory.md.
Thanks
Iva gets better because people run it for real — contributors are welcome. Open an issue with what breaks, or send a PR. Everyone who already helped: docs/thanks.md.
License
MIT — take it, change it, run it on a hundred servers; just don't blame anyone if something breaks.
관련 프로젝트 살펴보기
불러오는 중…