Version

See and update the Open Ticket AI version that is running.

Version

Settings → License shows the software version that is running. Change it from the server with the commands below. Updates always create a backup first and roll back automatically if post-update checks fail.

Bash
otai version

Online update

Bash
# From any directory once install put `otai` on PATH:
otai update # latest version allowed by the license
# or:
otai update 0.2.0

Air-gap update

Copy the new extracted release tree to the server, then:

Bash
otai update --from-dir /path/to/otai-0.2.0

No download API call is made in this mode.

What otai update does

  1. Tags the currently running images with the old software version (for rollback).
  2. Runs otai backup and stores an archive under backups/.
  3. Downloads or uses --from-dir to get the new release.
  4. Loads image tars, replaces compose files and CLI helpers, updates version fields in .env, and refreshes the PATH wrapper.
  5. Starts the stack (docker compose up -d).
  6. Runs otai verify (Studio + Runtime health).
  7. On failure: restores the pre-update backup (compose, .env, both SQLite databases) and starts the previous version again.

Verify

Bash
otai verify
otai version

verify checks that Studio API and Runtime containers are running and that their /health endpoints respond. Full unit tests run in Open Ticket AI CI; customer hosts only run this smoke check.

Tips

  • Prefer pinned versions in production (otai update 0.2.0) over latest.
  • Do not run docker image prune during or immediately after an update — old tags are kept so rollback can reuse them.
  • Ticket-system databases are not upgraded by otai update. Apply the OpenTicketAI core package (and optional OTAICustomerChat) from the release’s ticket-system add-on folder according to your ticket system’s package procedure.
  • Keep a recent backup off-host before large upgrades (see Backups).