Install
July 19, 2026 ยท View on GitHub
Everything between curl and a working bot. One command on a fresh server: the installer asks your language, walks you through five keys, and ends by messaging you from your own bot.
Requirements
- ๐ฅ๏ธ A server or your own machine โ Ubuntu/Debian is the tested path (apt); Fedora (dnf) and macOS (brew) work too. Any always-on box.
- ๐ง 512MB RAM is enough โ on boxes under 1.5GB the installer adds a 2GB swapfile so the build isn't OOM-killed (needs ~2.6GB free disk).
- ๐ sudo โ asked up front, and only if system packages are missing or a swapfile is needed; the Chromium step may ask once more.
Never used a server? The host sends you an address (IP), a login and a password. On Mac or Linux open Terminal, on Windows PowerShell, type
ssh root@YOUR_ADDRESS, enter the password. You're in.
Install
curl -fsSL https://raw.githubusercontent.com/smixs/iva/main/install.sh | bash
The first question is your language โ English or Russian โ before anything touches the system. Input is read from /dev/tty, so the wizard stays interactive even piped through curl. If there's no terminal at all (Docker, CI), setup is skipped and the script prints how to run it later.
Setup wizard
Five steps. Each key comes with a direct link to where it lives, and each is validated live โ a bad key is rejected on the spot, not discovered at runtime. Enter keeps the current value, so re-running the wizard (iva config) changes only what you want.
- Provider and model. Ollama Cloud or OpenCode Go (comparison); the key is checked against the API, then you pick a model from the provider's live list.
- Voice, search, hybrid memory. Deepgram key (free starter credit); recognition language
multiauto-detects ru/uz/en. The same step picks a web-search provider โ Tavily, Exa, Parallel or Brave; Enter skips and search stays off โ and offers optional hybrid memory with an embedding key. - Telegram bot. Paste the token from @BotFather; the wizard validates it via
getMeand detects the bot's username itself. - Access. Send your new bot any message โ "hi" works. The wizard reads
getUpdates, shows who wrote, and you pick yourself. Iva answers only these IDs; an empty list means it answers nobody. - Timezone, vault, port. IANA timezone so nightly jobs run on your clock, the vault directory, and the port โ default 8723, probed for conflicts.
What install.sh does
- ๐ฆ System packages โ
git gh python3 ffmpeg pandoc poppler-utils(poppleron brew):ghbacks your vault up to a private GitHub repo, pandoc and poppler extract text from incoming docx/pdf files, ffmpeg converts media the transcriber can't take directly. - ๐ uv โ runs the vault's Python maintenance scripts.
- ๐ข Node 24 via nvm โ no root needed; 24 is a hard floor because memory search uses the built-in
node:sqlite. - ๐ agent-browser + Chromium โ headless browser for web tasks; the longest step, 1โ3 minutes of visible download output.
- ๐๏ธ Vault init โ your memory is created from
vault-template/as a separate git repo, so personal data never enters the code repo. - โ๏ธ systemd user units โ the agent service, the Telegram bridge and 5 memory timers, with linger enabled so they survive logout. Details: deploy.md.
- ๐งฐ The
ivacommand โ installed into~/.local/bin:iva status,iva doctor,iva update. Full reference: cli.md. - โ Telegram confirmation โ the last thing the installer does is message you from your own bot: "Iva is installed and online. Send me a message โ I'll reply." That's the success signal.
Re-running the same command later is safe: it reuses the existing checkout, fast-forwards it, and keeps .env and the vault untouched.
Flags and overrides
Flags pass through the pipe with bash -s --:
curl -fsSL https://raw.githubusercontent.com/smixs/iva/main/install.sh | bash -s -- --skip-setup
| Option | Effect |
|---|---|
--skip-setup | install everything, don't run the wizard |
--non-interactive | no questions at all โ defaults only, wizard skipped |
-h, --help | show the built-in help and exit |
REPO_URL=โฆ | install from a fork (default https://github.com/smixs/iva.git) |
BRANCH=โฆ | install and keep updating from this branch (default main) |
INSTALL_DIR=โฆ | where the code goes (default ~/iva) |
The last three are environment variables, read by the script at startup.
If the wizard didn't run
Skipped setup, or no terminal at install time:
cd ~/iva && npm run setup
Then re-run the install command above โ it finds the existing checkout and finishes the build, the systemd units and the confirmation.
Next steps
- Every
.envvariable, defaults and warnings โ configuration.md - The
ivaserver CLI and Telegram commands โ cli.md - Transport, timers, webhook mode and operations โ deploy.md