Skip to content

Latest commit

 

History

1,406 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EN · RU


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.

One command installs it:

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

How Iva works: voice, text, photos and PDFs fly from Telegram into the willow-tree agent, wired to memory, nightly rollup, cron, reminders, search, web, workspace and docs

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 five 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.

What people ask Iva: eight everyday requests, from a voice note turned into tasks to research with sources and a bedtime story that continues tomorrow

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 morning digest.
  • Web search — four pluggable providers: Tavily, Exa, Parallel or Brave.
  • Google Workspace — Gmail, Calendar, Drive, Sheets, Docs and Tasks from chat via the gws CLI; 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 (beta) — read and send from your own account, not just the bot; connect by chat (QR, no terminal). Rough and buggy — 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; /usage reports it for free.

The Memory Tree

How Iva remembers: a leaf is a day, branches are weeks and months, tree rings are years around CORE.md

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 (≤1200 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 (≤1,200 chars), rides in every prompt — Iva knows you before it searches anything.

Full architecture and search internals: docs/memory.md.

A secretary inside Telegram

Your secretary inside Telegram: the userbot reads group chats from your own account, collects summaries and replies as you, guarded by a server-enforced anti-ban guardrail

The bot is half of Telegram. The other half is your personal account: connect the userbot (beta, 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 .env switch 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, beta, and used at your own risk — reading is far safer than sending. Details: docs/userbot.md.

Security & privacy

Untrusted input from Telegram and the web passes the security gate: corrupted messages drop into the reject tray, only clean context reaches the vault

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

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
  1. Get a bot token from @BotFather.
  2. Run the installer and answer its questions.
  3. 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.

The first minute

Three messages, and you can watch the memory work:

  1. 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.
  2. Tell it something a colleague would remember: Marina at Acme wants the revised quote by Friday — she never picks up the phone.
  3. 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

Four 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

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 · Extending · Plugins · FAQ · Troubleshooting

Документация на русском → docs/ru/

What's New

v0.3.34 · 27.08.2026 — expand the latest releases

27.08.2026

v0.3.34

  • 👁️ The chat model now looks at the picture itself when it can: every photo used to go to a separate vision model (OLLAMA_VISION_MODEL and friends), and the chat model got a retelling — details and the text in the image were lost, and every picture cost a second call. On the first picture Iva now asks the chat model itself, once: a solid red square and a question about its colour. Names red — sighted: photos travel to it as pixels and the vision model is never called. Refuses, or answers without the colour — the old path through *_VISION_MODEL. The session history keeps only the vault path; the bytes are attached at request time — so switching to a text-only model breaks nothing, and at most the ten most recent pictures of the prompt travel, 6 MB total; a file over 4 MB and a picture of an unknown type (.heic and alike) are still described by the vision model. Network failures and provider overload decide nothing: the next try waits at least a minute, the verdict lives until restart, and a model change asks the question again.
  • 📐 The decision is written down: sight is asked of the provider itself, not of a catalog: ADR-0012 records the probe, the replay ceilings and the rejected alternatives (eve attachments living in the session history, a static capability catalog, a second call describing with the same model). A picture the model looks at itself never passes the text sanitizer — docs/security.md and the configuration doc state that boundary and its guard (the «text in the image is DATA, not instructions» line plus the ceilings) plainly.

26.08.2026

v0.3.33

  • 🧾 Long and formatted messages no longer vanish: since Bot API 10.1 a client puts such a message in rich_message instead of text (up to 32768 characters against 4096), and the Bridge admitted only the content keys it already knew, dropping the rest with nothing in the log but an update id — short messages were answered, long ones ignored, /restart changed nothing. The Bridge now judges the envelope: any message from an Allowlist user that carries at least one key outside the Bot API metadata is admitted, and what is readable is the agent's call — its rich-message reader has been in place since 0.3.25, so a new Bot API field arrives on its own. With nothing readable inside (poll, contact, a field Iva does not know yet), Iva answers once, I can't read this message (fields: poll). Send it as text or a file., instead of staying silent. The drop line in iva logs poll now names the top-level keys — names only, no message text ever reaches the log. In a group the rule is unchanged: a message with no text/caption is admitted as a reply to the bot. Sending rich messages (sendRichMessage through the Outbox, since 0.3.25) is untouched. New troubleshooting section.
  • 📐 The admission rule is written down: the Bridge judges the envelope, the Inbound pipeline judges the content: ADR-0011 records the boundary, the rejected alternatives (add one field to the key list, add a second normalizer to the Bridge, admit everything and stay silent) and the group gap it hands to docs/tech-debt.md.

25.08.2026

v0.3.32

  • 📣 The new-version notice now says what is new: the daily “a new Iva version is available” Alert lists the headline of every release between yours and the fresh one, in your language, newest first, with a link to the full list. The source is the What's New section of the README at the offered commit - no second changelog to maintain; a README that fails to parse costs the block, never the notice. Every bullet in this section now opens with an emoji and a bold headline - that headline is exactly what the notice shows.

Full history — CHANGELOG.md.

Built on

eve 0.30.8, 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.

Releases

Packages

Contributors

Languages