Install Tally
Choose an installation method, then follow its steps. The binary installer is recommended: one command keeps Tally and its own PostgreSQL and ClickHouse in your home folder and handles downloads, verification, database setup, HTTPS, and automatic startup.
Choose how to install#
Binary installer
Linux or macOS. One command installs Tally with its own PostgreSQL and ClickHouse in your home folder and starts it automatically. Continue on this page.
Docker
Run Tally, PostgreSQL, and ClickHouse with Docker Compose: download one file, create a settings file, and start.
Apple container
Apple silicon Mac with macOS 26 or newer. The same images and settings as Docker.
Build from source
Build the binary or the container image from a clone of the repository.
Choose before your first installation: switching methods later does not move your data.
Requirements#
Use a normal user account on amd64 or arm64. The default private database downloads need macOS 15 or later or Linux with glibc 2.36 or later, including Debian 12 and Ubuntu 24.04. The installer checks these requirements. On other systems, use existing databases or install with Docker.
Bash, curl, tar, a SHA-256 checksum tool, and OpenSSL must be available. Current macOS includes these tools; its LibreSSL works with Tally's bundled certificate verifier. The private installation does not install system packages and does not need Homebrew, apt/yum, Python, or sudo. Linux uses OpenSSL 1.1.1 or newer to create local certificates; you may also supply your own.
Run the installer#
This command uses private database downloads and local HTTPS. To use a public hostname, prepare your certificatebefore running it. To use existing databases, choose a database mode first.
curl -fsSL \
https://raw.githubusercontent.com/godellabs-ai/godel-tally/main/install.sh \
-o install-tally.sh && \
bash install-tally.sh --port 2357Seven numbered steps explain progress in plain language. Blue means progress, green means success, yellow means a note, and red means setup stopped. Every color has a text label. PostgreSQL and ClickHouse download at the same time, about 250–280 MB in total. Every 10 seconds the installer shows how much of each has arrived and the current speed, so you can tell a slow connection from a stalled one. A first installation can still take several minutes for downloads and database setup.
The installer creates private Tally database instances on loopback: PostgreSQL on 5433 and ClickHouse on 8124. It creates the databases and generates credentials. Existing clusters are not repurposed. Tally applies its embedded migrations on startup.
PostgreSQL 18.6 is downloaded from the theseus-rs portable binary distribution (package 18.6.1). On Linux, ClickHouse 26.9.23.15 comes from ClickHouse's official package repository, packages.clickhouse.com, with its GitHub release as a fallback; on macOS it comes from the GitHub release. Versions and SHA-256 hashes are pinned in the Tally release, so every source must serve identical files. Verified downloads are cached under ~/.godel-tally/runtime and reused on reinstall.
If a database download is interrupted, the installer makes up to five attempts, each continuing from the data already received. A connection that stays below 10 KB/s for a minute is reopened. If setup still stops, or you press Ctrl+C, rerun the same command: the download resumes where it left off instead of starting over.
Create the first account#
Open the URL printed by the installer. Inspect and accept the local self-signed certificate for evaluation, then register the first administrator. Additional accounts need invitations. Tally is self-hosted: no SaaS subscription or Gate portal account is needed to install or use it.

For access beyond this machine, follow the HTTPS setup above and use that hostname in your browser.
Choose the HTTPS port#
bash install-tally.sh --port 9443Then open https://localhost:9443. Supported installer ports are 1024–65535. Choose a free port different from the database and internal runtime ports.
Use the same command to change an installed service. It updates the saved public URL, listening port, and upgrade origin together, then restarts Tally. The configured hostname and bind address are preserved. Reinstalling without --port retains the saved port; a new installation defaults to 2357.
HTTPS and your own SSL certificate#
For local use, the installer generates a self-signed certificate. To use your own SSL/TLS certificate, point your hostname's DNS to this server and allow the selected HTTPS port through your firewall. The certificate must cover that hostname.
Install with an existing certificate
Download the installer as shown above, replace the hostname and absolute file paths below, then run as Tally's normal user. Add your preferred database flags to the final command if needed.
export TALLY_URL=https://tally.example.com:2357
export TALLY_HTTP_BIND=0.0.0.0:2357
export TALLY_TLS_CERT_FILE=/absolute/path/to/fullchain.pem
export TALLY_TLS_KEY_FILE=/absolute/path/to/privkey.pem
bash install-tally.sh --port 2357Supply a PEM full-chain certificate and its matching, unencrypted PEM private key. Both files and their parent directories must be accessible to Tally's user; keep the private key readable only by that user. The installer checks expiry, hostname, and key matching, and leaves your files intact.
Change HTTPS on an existing installation
Edit these values in ~/.godel-tally/config/tally.env (or your custom configuration file). Use literal absolute paths, without shell quotes or $HOME substitution:
TALLY_URL=https://tally.example.com:2357
TALLY_HTTP_BIND=0.0.0.0:2357
TALLY_UPGRADE_WEB_ORIGIN=https://tally.example.com:2357
TALLY_TLS_CERT_FILE=/absolute/path/to/fullchain.pem
TALLY_TLS_KEY_FILE=/absolute/path/to/privkey.pemRestart Tally and open the configured hostname. Tally serves HTTPS directly; nginx is not required. Restart after every certificate replacement or renewal so it loads the new files.
Generate a certificate with Certbot (optional)
Use a public domain you control, replacing tally.example.com and the email in these commands. Its DNS must resolve to this machine, and inbound TCP port 80 must be reachable and unused during issuance and renewal. Tally can keep running on 2357. This example does not issue certificates for localhost; for private hosts or wildcard names, use a DNS plugin.
1. Install Certbot
brew install certbotsudo apt-get update
sudo apt-get install -y certbotsudo dnf install -y certbotFor other Linux distributions, follow the official Certbot installation instructions. Run only the command for your OS.
2. Request the certificate
sudo "$(command -v certbot)" certonly --standalone \
--config-dir /etc/letsencrypt \
--cert-name tally.example.com \
--domain tally.example.com \
--email admin@example.com \
--agree-tos3. Copy the files for Tally's user
Certbot's files are owned by root. From your normal Tally user's terminal, copy them into a private directory. Adjust the destination if you use a custom data directory.
tally_cert_dir="$HOME/.godel-tally/data/tls"
mkdir -p "$tally_cert_dir"
chmod 700 "$tally_cert_dir"
sudo install -m 600 -o "$(id -u)" -g "$(id -g)" \
/etc/letsencrypt/live/tally.example.com/fullchain.pem \
"$tally_cert_dir/fullchain.pem"
sudo install -m 600 -o "$(id -u)" -g "$(id -g)" \
/etc/letsencrypt/live/tally.example.com/privkey.pem \
"$tally_cert_dir/privkey.pem"4. Install Tally with those files
export TALLY_URL=https://tally.example.com:2357
export TALLY_HTTP_BIND=0.0.0.0:2357
export TALLY_TLS_CERT_FILE="$HOME/.godel-tally/data/tls/fullchain.pem"
export TALLY_TLS_KEY_FILE="$HOME/.godel-tally/data/tls/privkey.pem"
bash install-tally.sh --port 2357If Tally is already installed, update tally.envusing the instructions above instead, then restart it.
5. Renew and apply the renewed certificate
# Test renewal against the staging service.
sudo "$(command -v certbot)" renew --dry-run \
--config-dir /etc/letsencrypt --cert-name tally.example.com
# Renew the real certificate when due.
sudo "$(command -v certbot)" renew \
--config-dir /etc/letsencrypt --cert-name tally.example.comAfter renewal, repeat step 3 to copy the new files, then restart Tally as its installing user:
systemctl --user restart tally-serverlaunchctl kickstart -k "gui/$(id -u)/ai.godel.tally.server"These commands deploy certificates manually. For unattended operation, schedule Certbot renewal and configure a deploy hook to copy the files and restart the user service. Certbot's renewal alone does not update Tally's copies or reload its certificate.
Installer options#
| Option | Effect |
|---|---|
--port PORT | Choose the public HTTPS and listening port. |
--db MODE | Choose native (private downloads, the default) or existing for both databases. docker and apple run only the databases in containers; to run all of Tally in containers, use the container deployment instead. |
--postgres MODE / --clickhouse MODE | Select a mode independently for either database. |
--no-start | Register Tally's service without starting it. Private databases stay stopped; container provisioning may start containers. |
--no-service | Skip service registration and print a manual launcher. Private databases start with that launcher and stop with Ctrl+C. |
--dry-run | Show platform, release selection, options, and service manager without downloading or changing anything. |
Set TALLY_VERSION=v0.1.1 before running the script to install a particular published release. Otherwise it selects the latest release.
Choose how your databases run#
Private downloaded PostgreSQL and ClickHouse are the default (the command-line mode is named native). Keep Tally as a native binary and use existing database servers instead, or mix modes. To run Tally itself in containers, see Install with Docker.
Download install-tally.sh using the command above, then choose one of the following commands instead of the default installer invocation. Decide before your first installation: switching database modes does not move existing data.
Use existing databases#
Prepare PostgreSQL 15+ and ClickHouse 26.9+ with dedicated Tally databases. The PostgreSQL account must own its database and be able to apply migrations. The ClickHouse account needs table creation, read, and write permissions in its database.
export TALLY_POSTGRES_URL='postgres://tally:URL_ENCODED_PASSWORD@db.example.com:5432/tally?sslmode=require'
export TALLY_CLICKHOUSE_URL='https://clickhouse.example.com:8443?user=tally'
export TALLY_CLICKHOUSE_PASSWORD='REPLACE_WITH_YOUR_PASSWORD'
export TALLY_CLICKHOUSE_DATABASE=tally
bash install-tally.sh --port 2357 --db existingReplace the example addresses and passwords. URL-encode the PostgreSQL password. Existing mode does not install, start, stop, or remove the database servers. It does apply Tally migrations inside the configured databases, so take backups before using populated databases.
Mix database modes#
For example, use an existing PostgreSQL database and a private ClickHouse download:
export TALLY_POSTGRES_URL='postgres://tally:URL_ENCODED_PASSWORD@db.example.com:5432/tally?sslmode=require'
bash install-tally.sh --port 2357 \
--postgres existing \
--clickhouse native