Skip to main content

CatalEx Cloud and account

Your CatalEx account is your only identity. It connects this computer to CatalEx Cloud, which carries messages between your agents and WhatsApp, Slack or Google Chat. Agents always run on their own computer. CatalEx needs a sign-in: until you are signed in, the app shows only its sign-in screen, and the catalex command refuses nearly everything.

To run agents on another computer, such as a Linux server, see Devices.

Sign in​

Google is the only way to sign in. There is no email-and-password sign-in, sign-up or password reset.

Signing in also joins this computer to your account in one step. A computer that has not joined an account joins this one without asking, and this device becomes trusted for changes on your computers.

In the app​

  1. Open CatalEx. On a first run the setup ends at CatalEx Cloud; after a log out the app opens on Welcome back to CatalEx.
  2. Choose Log in using Google. Your browser opens Google's account chooser.
  3. Finish in your browser. The app shows Finish in your browser. and continues by itself.

Expected result: the app opens and, after a moment, starts CatalEx and your agents. If the sign-in fails, the app says Sign-in didn't finish. with the reason and offers to try again.

If the app signs you out, it says why before the sign-in, for example You were signed out from another device., This computer was removed from your account. or Your account was deleted., followed by Sign in again to continue. A computer that was connected to another account stays out of the way: its agents are stopped and kept for that account, and the app tells you once. Sign in to that account again to use them.

With the CLI​

catalex login

catalex login opens Google in your system browser and waits up to 10 minutes. It prints the link too, in case no browser opens. On success it prints Signed in to SERVICE as EMAIL., then This computer is now one of your computers. when it joined, and Trusted for changes: yes. catalex computers leave undoes the join.

  • Signing in again to the same service changes nothing; add --force to replace the saved sign-in.
  • --service URL names another account service (HTTPS, or HTTP on a loopback address). The default is CatalEx Cloud.
  • To sign in a device that has no browser, create a sign-in code on a trusted device and use catalex login --code.
  • Signed out, the command refuses everything except signing in and joining, logout, account status, installing and setting up, updating, uninstalling, version and help, and a few start-up and provider commands. The refusal is ACCOUNT_SIGNIN_REQUIRED; the fix is catalex login.

Check your account​

In the app​

Choose your name at the bottom left. The NAME's account dialog shows your picture and Connected since DATE, with Log out. Settings → Devices has Delete account at the bottom right. The page shows it only while you are signed in.

With the CLI​

catalex account status

Signed in, it prints Account: signed in as EMAIL, Service:, Client: and Trusted for changes: yes or no, and a line when an account deletion is pending. Signed out it says Account: not signed in. catalex status adds This computer: Connected, Connecting… or Offline (CODE) once this computer has joined, with the reason and the fix.

A device signed in with Google on a computer that has not joined shows Trusted for changes: no until a trusted device trusts it. On a computer that has joined your account, catalex devices trust-this trusts this device. A trusted device that sees a new sign-in shows New sign-in: NAME with Trust for changes and Not me, sign it out. Devices covers both.

Log out​

Logging out removes the sign-in. Your agents, chats and settings stay on this computer.

In the app​

  1. Choose your name at the bottom left, then Log out.
  2. The dialog asks Are you sure you want to log out? Leave Also stop the agents running on this Mac off to keep the agents running, or tick it to stop them.
  3. Choose Log out.

Expected result: the app returns to Welcome back to CatalEx. Logged out with the box off, this computer stays joined to your account, CatalEx keeps running and the agents keep answering. With the box on, this computer also leaves your account and drops its connection to CatalEx Cloud, and running agents stop answering until their next message. Nothing is deleted. Signing in again starts agents that are off.

With the CLI​

catalex logout
catalex logout --stop-agents

catalex logout prints Signed out of SERVICE. It never stops CatalEx. With --stop-agents, the output adds that the computer left your account and disconnected from CatalEx Cloud. If that fails, you stay signed in; run it again.

Move your account to another service​

Moving is CLI only; the app has no screen for it. It moves your account between CatalEx Cloud and another CatalEx service, in either direction. Every computer leaves the account and rejoins with a join code from the new service. Chat history stays on the old service, and Slack and WhatsApp connect again on the new one. Agents, their folders and local chats stay on each computer.

catalex account move --to https://catalex.example.com

It shows what the move changes, asks you to type your account email, signs you in on the new service with Google and verifies that sign-in, then asks before signing the move with this device's key. It needs a sign-in made within the last 10 minutes on a device you trust. This computer rejoins by itself. If the answer was lost, run the same command again. Without a terminal, add --confirm-email YOUR_EMAIL.

On a computer that left when the account moved, the app shows This computer left your account when it moved with Rejoin. Choose it to join again. In Settings → Devices, Rejoin your computers lists the other computers that left; add each one again with Add device.

Delete your account​

Deleting the account erases, for good, its computers, signed-in devices, messaging accounts, routes and the chat history of every conversation. Other computers are only signed out and keep their local data. This computer then removes everything CatalEx keeps here, but never your agent folders. Slack apps, WhatsApp numbers and Google Chat apps stay at their providers; the result lists what to remove there.

In the app​

  1. Open Settings → Devices and choose Delete account at the bottom right.
  2. The Delete your CatalEx account? dialog lists what is erased and what this computer removes and keeps, and says This cannot be undone.
  3. Tick Also remove CatalEx from this computer to remove the app and its commands too.
  4. Type your email in Type EMAIL to confirm, then choose Delete account. The app asks you to confirm with this device (Touch ID where available).

Expected result: Your CatalEx account was deleted appears. Continue returns to first-time setup. With the removal box ticked, Quit CatalEx closes the app and finishes removing it. If a step stops part-way, the dialog says what stayed and offers Try again or Finish removing CatalEx.

With the CLI​

catalex account delete --impact
catalex account delete

--impact only shows what would be erased. The second command shows the same list and asks you to type the account email. Add --uninstall to remove CatalEx from this computer afterwards, as catalex uninstall --purge does. Without a terminal, use catalex account delete --yes --confirm-email YOUR_EMAIL. Deleting needs a device trusted for changes. If the command reports ACCOUNT_DELETION_UNCONFIRMED, the answer was lost: run the same command again. Until then, catalex account status shows the deletion as pending.

Disconnect and reconnect​

The app has no separate connect or disconnect control for CatalEx Cloud: signing in connects and Log out with Also stop the agents running on this Mac disconnects. From the terminal:

catalex connections hosting show
catalex connections hosting off
catalex connections hosting on

off disconnects this computer from its messaging service without stopping CatalEx; native chats keep running. on reconnects it with the address and credential it kept. catalex local-setup off stops the complete setup on this computer and keeps saved data; catalex local-setup on turns it back on.

Control another computer​

The app manages this computer only. To manage CatalEx on another computer of your account from the terminal, add --computer to a command. See Devices. To use a saved connection with that computer's address and control token instead, keep the token in a private file:

catalex connections add office --url https://YOUR-COMPUTER --token-file /absolute/path/to/control-token
catalex connections list
catalex --connection office status
catalex connections use office

A control token administers that computer. Inspect the selected connection before changing anything. connections edit, remove and rescan are described in their --help. Removing a saved connection does not uninstall the other computer.

Earlier conversations and health​

catalex agents sync
catalex status

agents sync reports whether earlier conversations from the AI providers on this computer have reached CatalEx Cloud: waiting for the connection, syncing, synced, not synced yet (CatalEx retries on its own), unsupported by this server or waiting for the server connection. Only "synced" means the history is complete in CatalEx Cloud. See the Privacy Policy for what a service connection stores.

catalex status shows the end-to-end health check of CatalEx, the messaging service and the agents' link to it. A read returns the last result at once and starts a new check only after the minimum interval, 5 minutes by default; see the settings catalog for its range.

Supported releases on your own service​

CatalEx Cloud decides which releases of catalex and the app it still accepts. A service you run yourself sets the same limits in the [clients] table of its configuration file. Omitted keys take their defaults, and an out-of-range value stops the service from starting with an error that names the key. Each key also has an environment variable, RELAY_CLIENTS_ followed by the key in capitals.

KeyDefaultRangeMeaning
min_versionempty (no minimum)a release such as 0.1.12The lowest release the service accepts. A computer below it, or one that names no release, is refused with CLIENT_UPDATE_REQUIRED, and so is a signed-in catalex or app request (HTTP 426). Those clients update themselves, then connect again.
updating_grace_ms120000 (2 minutes)10000–3600000How long a computer that announced an update shows as Updating instead of offline. Messages for it wait and arrive when it reconnects.
release_list_urlhttps://downloads.catalex.co/latest.jsonan http or https addressThe release list read at start to check min_version.
release_list_timeout_ms5000500–60000How long that read may take.
release_list_max_bytes1048576 (1 MiB)1024–16777216The largest release list the read accepts.

Raise min_version only after the release that satisfies it is published, never in the same deploy that needs it. The service refuses to start with a min_version above the newest release in the list. With min_version empty, nothing is read.

Conversation record​

The [record] table tunes the numbered record the service keeps of each chat an agent serves (see WhatsApp Personal). Messages that start no work wait in memory and are stored together, so a restart loses up to one window of them; they are stored when the service stops. Each key also has an environment variable, such as RELAY_RECORD_BATCH_WINDOW_MS.

KeyDefaultRangeMeaning
batch_window_ms2000100–30000How long a held message waits before its chat is stored.
batch_max_messages1001–1000Messages one chat holds before they are stored at once.
buffer_max_messages10000100–1000000Messages all chats hold together. At the cap the chat held longest is stored early; nothing is dropped.
sync_batch_messages5001–5000The most messages in one batch sent to a computer catching up. A computer's own limit, or the frame size limit, can make a batch smaller.

The [providers] table has two keys for what the agent is told. record_unseen_inline (default 5, 0–5) is the most earlier messages one input shows inline, for every app; 0 shows only their count. slack_backfill_page_size (default 999, 1–999) is the size of the one Slack read a mention makes. A value out of range stops the service from starting with an error that names the key.

Web view​

The [web_view] table serves the conversation web page at <public address>/web. It is off by default on a service you run yourself, and CatalEx Cloud turns it on. While enabled is false, no agent is viewable on web whatever its setting, no reply links the page and the service does not offer the feature to a computer. Turning it on also needs accounts.google_client_id and a public address. The page is built into the service's release; a service built without it answers WEB_PAGE_MISSING. A web sign-in uses the same Google web client and redirect address as the app's sign-in, so Google's console needs no new setting. Each key has an environment variable, such as RELAY_WEB_VIEW_ENABLED.

KeyDefaultRangeMeaning
enabledfalsetrue or falsetrue offers the web view and the links to it.
session_idle12h1m–720hA web session ends after this long unused.
session_max168h1h–2160h, not below session_idleA web session ends this long after sign-in, however much it is used.
max_text_bytes2621441024–4194304The longest text of one message sent from the page.
max_body_bytes10485764096–67108864, at least max_text_bytesThe largest request body the page may send.
record_page501–1000How many messages the offline view shows first.
setting_propagation30s1s–5mThe longest a change of an agent's Viewable on web setting may take to reach the service.

A value out of range stops the service from starting with an error that names the key and its range.