Skip to main content

Updates and everyday operation

This page covers the routine tasks for a running CatalEx: checking it, updating it, stopping it, repairing it and removing it. The app does most of this by itself. The catalex command does the rest and works whether or not the app is open.

Open and check CatalEx​

In the app​

  1. Open CatalEx from Applications, or from the menu bar icon with Open CatalEx.
  2. Look at the small light on your name at the bottom of the side navigation. It shows the health of the whole setup.
  3. Open Settings, then Devices. While this computer is offline, a warning says why and offers Try again (or Rejoin, Sign in or Update CatalEx, depending on the cause). While it connects, the panel shows Connecting….

The menu bar menu also shows a status line. Closing the window and quitting the app leave CatalEx running, so agents keep answering. Opening the app starts a stopped setup. Keep the agent computer awake, online and signed in to its AI provider while it handles messages.

With the CLI​

catalex open
catalex status
catalex doctor
catalex install status

catalex open opens the app. catalex status shows the configured setup, its components and, once this computer has joined your account, This computer: Connected, Connecting… or Offline (CODE). catalex doctor checks CatalEx, its storage, the link to your agents, the link to the messaging service and voice transcription, and exits 1 when a part is not ready. catalex install status checks the installed files only. All four are read-only.

catalex status metrics shows how many calls each part of CatalEx makes and receives, which helps when call volume looks too high. CatalEx must be running. catalex usage shows CPU, memory, disk and token use per chat and service.

Update​

CatalEx updates itself. There is nothing to install or confirm, and the app has no update button or menu item. CatalEx checks for a new release every hour, downloads and verifies it while the running version keeps working, and switches the command and the service to it when nobody is using the app and no agent has been working. The update needs no sign-in, so a computer that is signed out or not set up yet updates too:

  • The app has been unused for 2 minutes and no agent turn has ended in the last 15 minutes.
  • Messages sent during the switch wait and are delivered once CatalEx reconnects. In Settings > Devices the computer shows as Updating.
  • CatalEx keeps a copy of its saved data, installs the release, starts it and checks it is healthy. A release that does not become healthy is rolled back and never tried again. A release that failed only because the computer was busy, for example a locked settings file, is tried again on a later pass.
  • A running app is never quit or covered by an update. Its new version waits on the computer and replaces the app the next time the app is closed, or when it starts, behind its Starting CatalEx screen. Until then the app may be one release behind the service.
  • An app that is not running is replaced during the switch.

While a switch runs, catalex start, restart, prepare and setup refuse with UPDATE_IN_PROGRESS, and the app does not restart CatalEx. Wait a minute and run the command again. A switch that never finishes stops counting after 30 minutes. To see what is happening without changing anything:

catalex update status

Expected result: it prints whether a switch is running (switching) and whether a new version of the app waits to replace the running one (app_pending, with its version). It reads no network.

If CatalEx Cloud refuses a version as too old, the app first says Your app is too old and needs to be updated. and CatalEx switches at once, with the CatalEx logo and CatalEx is updating. Please don't close this window. in the app. Afterwards the app reopens on the chat or screen you had open, with any unsent message kept. A development build and an installation Homebrew owns are never updated automatically. Settings shows no version or update line.

Start CatalEx at login​

After a restart, nothing would start CatalEx on a computer nobody opens, so it would get no updates. catalex setup and catalex install therefore register a per-user login item that runs catalex start at login. It starts the service and your agents without opening the app window. On macOS it is a launch agent, on Linux a systemd user unit; Windows is not supported. A computer that is signed out or not set up gets only the management service, so it keeps checking for updates. The first update after an older release registers the item too, unless you turned it off.

catalex service autostart status
catalex service autostart off
catalex service autostart on

Expected result: status says whether the item is registered and whether you turned it off. off removes it and keeps it off across updates. on registers it again. catalex uninstall removes it. While it is on, a CatalEx you stopped with catalex stop starts again at the next login. The app's own Open at Login (catalex app login on) is separate: it opens the app window.

Update now or tune automatic updates​

catalex update auto --now
catalex update auto --app-only

Expected result: --now switches to the newest release at once, without waiting for the computer to be quiet, and a running app still waits for its next start. --app-only only replaces the app with its waiting new version, quitting it and opening the new one; with nothing waiting it prints current with the reason no_app_pending. catalex update auto without flags runs one normal pass, the same one CatalEx runs in the background.

The timing is set with catalex settings advanced set; changes take effect without restarting CatalEx:

SettingDefaultRangeMeaning
updates.automatic10–10 turns automatic switching off. CatalEx then switches only when CatalEx Cloud refuses this version.
updates.check_interval60 minutes1 minute–1 weekHow often CatalEx looks for a new release.
updates.app_quiet2 minutes1 minute–1 weekHow long the app must be unused.
updates.agent_quiet15 minutes1 minute–1 weekHow long after an agent's last turn ended.
updates.max_wait24 hours1 hour–30 daysHow long a downloaded release waits for a quiet moment.
updates.health_timeout2 minutes1 minute–1 weekHow long a new release has to become healthy before it is rolled back.
catalex settings advanced set updates.app_quiet=10 updates.agent_quiet=30

Update components by hand​

catalex update --check
catalex update --restart

--check only reports the newest release and what would change. While CatalEx runs, update refuses unless --restart lets it stop, update and start CatalEx again; if it is already stopped, use catalex update. A running app is quit only with --yes, and --open opens it again afterwards. Nothing is ever downgraded, and a command you changed since installing it is kept and reported. If an update is abandoned, CatalEx starts again.

After updating, run catalex status and send a new message to a known agent.

Stop and start​

The app has no Start or Stop button. It keeps CatalEx running from launch until you quit the app, and it starts a stopped CatalEx by itself, even one you stopped with catalex stop. To keep CatalEx stopped, quit the app first. The login item starts a stopped CatalEx again at the next login unless you turn it off.

catalex app quit
catalex stop
catalex start
catalex restart

catalex app quit quits the app only; agents and chats keep running. While CatalEx is stopped, no messages reach its agents. catalex stop --all also closes the management service, so nothing of CatalEx keeps running. catalex prepare starts only the management service, without agents or messaging; it is safe to run at any time. catalex app login on opens the app when you log in to your Mac, and catalex app login off stops that.

Repair CatalEx​

In the app​

The app repairs CatalEx by itself. When a part stops or does not answer, the Starting CatalEx screen returns while the app restarts it. After three restarts in a row fail, the app shows Oops, there was an issue starting CatalEx. with Try again. Troubleshooting lists what to do if it keeps appearing.

With the CLI​

catalex doctor --fix

--fix restarts CatalEx when it stopped or does not answer and moves an oversized or unsafe activity log aside. It reports each finding as repaired or open, and for an open one prints the command that fixes it. It leaves damaged saved data alone. When saved data is damaged, catalex doctor --fix --fresh-start moves it aside, where it stays on disk unread, and starts clean. It asks first; --yes skips the question. Agents and settings on this computer are not available after a fresh start.

Sign out and manage computers​

In the app​

  1. Select your name at the bottom of the side navigation, then Log out.
  2. In Are you sure you want to log out?, tick Also stop the agents running on this Mac only if you want them to stop. Select Log out.

Under Settings > Devices, each computer has Rename, Disconnect and Delete, and each signed-in device has Trust for changes and Sign out. Disconnect a computer before you delete it. The computer you are using can be disconnected but not deleted. See Devices.

With the CLI​

catalex logout
catalex logout --stop-agents
catalex computers list
catalex computers disconnect COMPUTER_ID
catalex computers delete COMPUTER_ID
catalex devices list
catalex devices remove CLIENT_ID

catalex logout removes the sign-in. This computer stays joined and its agents keep running. --stop-agents also makes this computer leave the account, so CatalEx runs on this computer only and the agents stop answering until their next message. computers disconnect stops a computer's agents at once; computers delete erases a disconnected computer's agents and data and cannot be undone. devices remove signs another device out, for a lost device or a sign-in you do not recognize. Signing out deletes no agent, chat or setup. After the next sign-in they are there again.

Replace or check credentials​

This applies to a messaging account on a messaging service this computer runs. When someone else runs the service, the commands report that an administrator must act. Keep the existing account when a token expires or rotates:

catalex credentials status ACCOUNT_ID
catalex credentials check ACCOUNT_ID
catalex credentials set ACCOUNT_ID --token-file /absolute/private/new-token

For a Google Chat app, catalex credentials set ACCOUNT_ID --key-file KEY.json replaces its key. A rejected replacement keeps the saved credential. After a lost reply, inspect the original attempt with catalex credentials operation ACCOUNT_ID OPERATION_ID before trying again. catalex accounts health shows each Slack, WhatsApp and Google Chat account as Healthy, Needs attention, Check incomplete or Not checked, and prints the fix for any that need attention. The app shows an account's state under Settings > Channels; see Channels. Revoke a compromised token at the provider that issued it.

Remove the installation​

The app has no uninstall button of its own. Run the command below, or see Delete your account, where the account deletion can remove CatalEx from this computer too.

catalex uninstall

uninstall stops CatalEx and removes its components. Saved chats and settings are kept. catalex uninstall --purge also deletes CatalEx's saved chats, credentials and other data it owns, and, when the app is removed, the app's own data; use it only when you mean to delete them. A running app must be quit first, or add --wait-for-app to wait for it. Name components to remove only those, such as catalex uninstall app.

Uninstalling signs this computer out of CatalEx Cloud and prints "CatalEx Cloud signed this computer out." If CatalEx Cloud cannot be reached, the computer stays registered to your account. The command then prints how to remove it from another signed-in computer: catalex computers disconnect COMPUTER_ID, or Disconnect under Settings > Devices. To erase the account itself, see Delete your account.

Uninstalling never touches agent folders, history kept by a server or provider, or files people downloaded. Deleting one agent is different: see Add an agent.

Installation ownership and PATH​

catalex path status checks whether new terminals can find the commands, and catalex path add repairs the shell profile block. CatalEx does not overwrite or remove a command you changed, or an app another package manager installed; follow the remedy it reports and use that package manager for its own copy.