# CatalEx CatalEx brings your existing Codex or Claude Code agents into conversations. Each agent keeps its working folder, instructions and tools. Chat in the CatalEx app, or connect a WhatsApp number, Slack bot or Google Chat app. ## Two ways to use CatalEx Every guide explains a task twice: **In the app** (what you click and see in the CatalEx desktop app) and **With the CLI** (the same task with the `catalex` command). The app is the main way to work. The CLI suits terminals, scripts and AI agents; every command is in the [CLI reference](https://docs.catalex.co/reference/cli.md). - **App path.** [Install and open the app](https://docs.catalex.co/getting-started/app.md), sign in with Google, then follow the setup to bring in your first agent. - **CLI path.** Run the [installer](https://docs.catalex.co/getting-started/install.md), then [add an agent](https://docs.catalex.co/agents/add-an-agent.md) and [start a chat](https://docs.catalex.co/chats/native-chats.md). - **One prompt.** Open your Codex or Claude Code agent in the folder you want to onboard and paste the line below. Keep the docs link in it: an agent that is only told to onboard the folder does not know where the docs are. The agent installs and sets up everything; you only sign in when asked. The [setup playbook](https://docs.catalex.co/getting-started/agent-setup.md) has every step, and [Start prompts](https://docs.catalex.co/getting-started/start-prompts.md) has the prompts for onboarding an existing agent or connecting an agent package. ```text Run curl -fsSL https://docs.catalex.co/getting-started/agent-setup.md, read all of it and follow it to set up CatalEx. ``` ## Find your next task | I want to… | Guide | | --- | --- | | Install CatalEx and sign in | [Get the CatalEx app](https://docs.catalex.co/getting-started/app.md) | | Connect an agent folder | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | Chat with an agent and approve actions | [Chats](https://docs.catalex.co/chats/native-chats.md), [files and approvals](https://docs.catalex.co/chats/files-and-approvals.md) | | Choose what an agent may do | [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) | | Let someone try an agent through a link | [Share an agent](https://docs.catalex.co/agents/share-an-agent.md) | | Connect an agent package such as everyday-skills | [Connect an agent package](https://docs.catalex.co/agents/agent-packages.md) | | Install a ready-made agent | [Marketplace](https://docs.catalex.co/marketplace/overview.md) | | Reach an agent from my phone or team chat | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | Manage my account and computers | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md), [Devices](https://docs.catalex.co/settings/computers.md) | | Review conversations and cost | [Activity and usage](https://docs.catalex.co/activity.md) | | Look up a command | [CLI reference](https://docs.catalex.co/reference/cli.md) | | Update, restart or remove CatalEx | [Everyday operation](https://docs.catalex.co/operate.md) | | Fix a failed setup or missing reply | [Troubleshooting](https://docs.catalex.co/troubleshooting.md) | ## What you need - **A Mac with Apple Silicon** for the app, the `catalex` command and the agents. Install with `curl -fsSL https://downloads.catalex.co/install/catalex.sh | sh`, which installs the `catalex` command and the app, or [download the app](https://downloads.catalex.co/latest/CatalEx-arm64.dmg) alone. - **Codex or Claude Code**, installed and signed in on that Mac. - **A CatalEx account.** You sign in with Google; the app and the `catalex` command both need it. WhatsApp, Slack and Google Chat run through CatalEx Cloud and need no server or public address. The agent computer must stay awake and online to answer. ## For AI agents Read the [documentation index](https://docs.catalex.co/llms.txt) or the [complete Markdown guide](https://docs.catalex.co/llms-full.txt), or append `.md` to any guide's URL for its Markdown version. The [agent setup playbook](https://docs.catalex.co/getting-started/agent-setup.md) includes verification and recovery steps. No separate skill installation is needed: onboarding leaves a short CatalEx block in the agent's `AGENTS.md` or `CLAUDE.md` that points back to `catalex --help` and [llms.txt](https://docs.catalex.co/llms.txt). The optional [CatalEx plugin](https://docs.catalex.co/getting-started/start-prompts.md#install-the-catalex-plugin) lets Claude Code and Codex offer this setup on their own; it leads to the same playbook. # Get the CatalEx app The CatalEx app is the main way to use CatalEx on a Mac. You download it, open it and sign in with Google. Your agents run on this Mac, and CatalEx Cloud carries their messages, so you run no server and need no public address. The app keeps CatalEx running, so you do not need a terminal. The app is for Macs with Apple silicon. To install and set up from a terminal, or to let an AI agent do it, see [Install CatalEx](https://docs.catalex.co/getting-started/install.md) and [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md). ## Before you begin - A Mac with Apple silicon. - Claude Code or Codex, installed and signed in on this Mac. The app does not install them. - A Google account. CatalEx has no email and password sign-in. ## In the app 1. Install the app. The preferred way is the one-command installer, which also gives you the `catalex` command. In Terminal run `curl -fsSL https://downloads.catalex.co/install/catalex.sh | sh`. It installs CatalEx in `/Applications`, opens it and starts CatalEx in the background; skip to step 4. Or download [CatalEx for Mac (Apple silicon)](https://downloads.catalex.co/latest/CatalEx-arm64.dmg), open the `.dmg` and drag **CatalEx** to **Applications**. The checksums are in [SHA256SUMS](https://downloads.catalex.co/latest/SHA256SUMS). 2. If you downloaded the `.dmg`, open CatalEx from **Applications**. 3. The build is not notarized, so macOS may refuse the first launch. In that case open **System Settings**, choose **Privacy & Security**, and select **Open Anyway** for CatalEx. Or Control-click the app and choose **Open**. 4. CatalEx opens one window and shows the **Starting CatalEx** screen while it prepares everything on this Mac. This may take a few seconds. It needs no sign-in and no AI tool at this point. 5. On a first launch, the setup starts. Its milestones, top left, are **You**, **Your AI**, **CatalEx Cloud** and **Done**. - **What describes you best?** Pick a role. It only chooses the sample chat you see at the end. Select **Pick your AI**. - **Pick your AI.** Claude Code and Codex are listed. Each shows **Ready**, or **Not found on this Mac** with **Locate…** if you want to point CatalEx at the program. Tick the ones to use, at least one, and select **Reach it from anywhere**. - **Reach it from anywhere.** Select **Log in using Google**. Your browser opens Google's account chooser. Pick your account and finish there. - **Linking this Mac.** The window shows **Finish in your browser.** until the sign-in is done. Signing in and joining this Mac to your account are one step, and the window then shows **Starting CatalEx…** while CatalEx comes up. - **You're all set.** The next screen, **You are done**, shows a sample chat. Select **Create your first agent**. 6. If the sign-in does not finish, the window shows **Sign-in didn't finish.** with the reason. Select **Try again**. If CatalEx cannot start afterwards, it shows **There was an error starting CatalEx.** Select **Retry**. You end up in the **Agents** view. With no agent yet, it opens **Bring your agent**, the first of four steps: **Bring your agent**, **Say hi**, **Take it where you work** and **Set how it replies**. [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) walks through them. ### What you see The side navigation lists **Agents**, **Marketplace**, **Analytics** and **Settings**. At the bottom it shows your name and picture. Select it to open your account, which has **Log out**. The small light on it shows the health of the whole setup: no light means everything works, amber means a part is starting or reconnecting, and red means a part is broken or CatalEx on this Mac does not answer. While a problem dot shows, point at the entry to read the reason, for example *Can't reach CatalEx Cloud*; a working system shows no hover text. With nobody signed in, the entry is one **Sign in** button and shows no light. The app keeps CatalEx running while the app is open. Closing the window leaves the app and your agents running in the menu bar. **Quit CatalEx** in the menu bar menu also leaves CatalEx running, so agents keep answering. The menu also has **Open CatalEx**, **Settings…**, **Set Up CatalEx…** and **Open at Login**, which opens the app window at login. A separate login item, which `catalex setup` and `catalex install` register, starts CatalEx's service and your agents at login without the window; see [Start CatalEx at login](https://docs.catalex.co/operate.md#start-catalex-at-login). There is no update item and Settings shows no version: CatalEx [updates itself](https://docs.catalex.co/operate.md#update). ### Sign out and back in Select your name at the bottom of the side navigation, then **Log out**. The dialog **Are you sure you want to log out?** has one option, **Also stop the agents running on this Mac**. It is off by default, so the agents keep running unless you tick it. After a log out the app shows **Welcome back to CatalEx** with **Log in using Google**. Your agents and chats are still there once you sign in. Sign-in is required: while signed out, the app shows no agents, chats or channels. If another device signed you out, or this Mac was removed from your account, the window says so ("You were signed out from another device." or "This computer was removed from your account.") with **Sign in again to continue.** ### Updating screen When CatalEx [updates itself](https://docs.catalex.co/operate.md#update), a running app is left alone. Its new version waits and replaces the app the next time you close it or start it, and you see only the **Starting CatalEx** screen. The updating screen, with the CatalEx logo and *CatalEx is updating. Please don't close this window.*, appears only when CatalEx Cloud refuses the app as too old. The app first says *Your app is too old and needs to be updated.* When the update is done, the app reopens on the chat or screen you had open, with any message you had not sent yet. ### Starting and repair screens The app watches CatalEx and repairs it without asking. If something stops, the **Starting CatalEx** screen comes back while the app restarts it. It reinstalls damaged program files from its own copy, and if your saved data is damaged it moves that data aside, never deleting it, and starts again at the sign-in. A start that fails is repeated quietly while CatalEx still reads stopped, after 2, 4, 8 and 16 seconds; the app also waits, and does not fail, when a terminal is running `catalex setup` at that moment. Only when every repeat fails, or three restarts in a row fail, does the app show **Oops, there was an issue starting CatalEx.** with **Try again**. See [Troubleshooting](https://docs.catalex.co/troubleshooting.md#the-app-does-not-start). ## With the CLI The app carries its own copy of `catalex` and places it in `~/.local/bin`, but it does not add that folder to your `PATH`. For `catalex` in a terminal, run the [one-line installer](https://docs.catalex.co/getting-started/install.md#install-with-one-command), or run `~/.local/bin/catalex path add` and open a new terminal. | Task | Command | | --- | --- | | Sign in with Google (opens your browser, waits up to 10 minutes) | `catalex login` | | Check who is signed in | `catalex account status` | | Sign out (agents keep running) | `catalex logout` | | Sign out and stop the agents on this Mac | `catalex logout --stop-agents` | | Open the app | `catalex open` | | See whether the app runs, its version and whether it opens at login | `catalex app status` | | Quit the app; agents and chats keep running | `catalex app quit` | | Open the app at login, or stop that | `catalex app login on`, `catalex app login off` | | Reopen the chat or screen that was open before an update, with its unsent message, and end an updating screen | `catalex app open --restore` | | Show the updating screen (`catalex update auto` does this itself before it switches) | `catalex app updating --reason quiet`, or `--reason too_old` | | Replace the app with its waiting new version now | `catalex update auto --app-only` | | See whether CatalEx starts at login | `catalex service autostart status` | `catalex login` prints the sign-in link too, in case no browser opens. When it succeeds it prints: ```text Signed in to SERVICE as EMAIL. This computer is now one of your computers. Trusted for changes: yes ``` `catalex account status` then prints `Account: signed in as EMAIL`, the service, a client ID and `Trusted for changes: yes`. `catalex app status` also reports when the app window was last used (`last_input_at`, empty when never) and whether it is `visible`. `catalex open` accepts `--section agents`, `--section settings`, `--section settings/providers` or `--section settings/channels` to open a view. The setup questions of the app have one terminal equivalent for everything after the role: `catalex setup --preset cloud --native-providers claude --start` (use `codex`, or `claude,codex`). It signs in as `catalex login` does, joins this Mac and starts CatalEx. The role question has no command because it only picks the sample chat. ## Limits - The app is for macOS on Apple silicon. `catalex` also runs on Linux; see [Devices](https://docs.catalex.co/settings/computers.md). - Every `catalex` command that touches agents, chats or channels needs a sign-in and fails with `ACCOUNT_SIGNIN_REQUIRED` without one. Commands that install, update, set up, start, stop or check CatalEx run signed out. - A page opened in a plain browser shows only **CatalEx needs you to sign in**. Open the app, or run `catalex login`, then select **I've signed in**. - The app offers CatalEx Cloud only. Running everything on this computer, or against a server of your own, is a terminal setup: `catalex setup --preset everything` or `--preset self-hosted`. See the [command reference](https://docs.catalex.co/reference/cli.md). # Install CatalEx This guide installs CatalEx yourself. The one-command installer is the preferred path: it installs the `catalex` command and the app together. You can download the app alone instead. To have your AI agent do the setup, give it the [setup prompt](https://docs.catalex.co/index.md#two-ways-to-use-catalex) instead; it follows the same steps. ## Before you begin - A Mac with Apple silicon, where the app and your agents run. The `catalex` command also runs on Linux. - Codex or Claude Code, installed and signed in. Keep each agent on the AI tool its folder was designed for. - A Google account. CatalEx has no email and password sign-in. With CatalEx Cloud your agents run on this Mac and CatalEx Cloud carries their messages, so you run no server and need no public address. Commands use a POSIX shell. Replace uppercase placeholders with your own values. ## Install with one command Run the installer in a terminal. It is the preferred way to install: one command gives you both the `catalex` command and the app. ```bash curl -fsSL https://downloads.catalex.co/install/catalex.sh | sh export PATH="$HOME/.local/bin:$PATH" catalex version ``` The installer asks nothing. It downloads the newest release and checks each file against the release checksums. It installs `catalex` in `~/.local/bin` and adds that folder to the `PATH` of future login shells. On a Mac with Apple silicon it also installs the CatalEx app in `/Applications` and opens it. It then starts CatalEx and waits, for up to 2 minutes, until it is ready, and prints `CatalEx is running.` The app opens last. If the CatalEx app is already open, the installer keeps it as it is, prints `The CatalEx app is open, so it was kept as it is. Quit it and run: catalex install app`, and still installs and starts CatalEx; pass `--yes` to quit and replace the open app instead. If CatalEx does not start, the installer stops with an error that says CatalEx was installed but is not running, and names the command to check it (`catalex status`). Set `CATALEX_START_TIMEOUT` to a number of seconds to wait longer. The installer needs no account or token and nothing from GitHub: it downloads from `downloads.catalex.co`. It needs `curl`, `tar` and `sha256sum` or `shasum`, which a Mac already has. Run the installer again to recover from an interrupted installation. The app's checksums are at [SHA256SUMS](https://downloads.catalex.co/latest/SHA256SUMS). Options for the installer, passed as `sh -s -- OPTION`: | Option | Effect | | --- | --- | | `--no-launch` | Install the app but keep its window closed, to finish setup in the terminal first. CatalEx is still started. | | `--no-app` | Install only the `catalex` command. It cannot be combined with `--no-launch`. | | `--app` | Install the app too. This is the default on a Mac with Apple silicon, and is refused elsewhere. | | `--app-only` | Install only the app. | | `--version V` | Install release `V` instead of the newest. | | `--bin-dir DIR`, `--no-path` | Put `catalex` in `DIR`; with `--no-path`, leave `PATH` alone. | | `--apps-dir DIR` | Put the app in `DIR` (an absolute path) instead of `/Applications`. | | `--yes` | Quit a running CatalEx that must be replaced. | | `--from-dir DIR` | Install from a local release folder (`assets/` and `tree/`). | **Expected result:** `catalex version` prints a version number, such as `0.1.20`, the installer printed `CatalEx is running.`, and on an Apple silicon Mac the CatalEx app opens. Continue in [the app](https://docs.catalex.co/getting-started/install.md#in-the-app) or with [the CLI](https://docs.catalex.co/getting-started/install.md#with-the-cli) below. `catalex install` and `catalex update` download from `downloads.catalex.co` too, and check each file against the release checksums. The installer, `catalex install` and `catalex setup` also register a login item that starts CatalEx's service at every login without opening the app, so updates and agents keep running after a restart. See [Start CatalEx at login](https://docs.catalex.co/operate.md#start-catalex-at-login) to check or turn it off. CatalEx keeps its files under `~/.local/share` and `~/.local/state` and its settings under `~/.config`. An absolute `XDG_DATA_HOME`, `XDG_STATE_HOME` or `XDG_CONFIG_HOME` replaces the matching folder in the installer, `catalex install` and the service alike; a relative value is ignored. The `catalex` command stays in `~/.local/bin` unless you pass `--bin-dir`, and the app and a Linux login item still use the home folder. ## Or download the app Prefer to click? Download [CatalEx for Mac (Apple silicon)](https://downloads.catalex.co/latest/CatalEx-arm64.dmg), open the `.dmg` and drag **CatalEx** to **Applications**. This installs the app only; the app installs the `catalex` command and the rest when it first starts. [Get the CatalEx app](https://docs.catalex.co/getting-started/app.md) lists every screen and what to do when macOS refuses the first launch. ## Install parts on their own With `catalex` installed, `catalex install service web` installs the service and the web app next to it, checked the same way and without setting anything up. `catalex install app` installs only the app. `catalex install status` shows what is installed, from which release, and whether each file is still the one installed. ## Sign in to Codex or Claude Code ```bash codex login # Codex claude auth login # Claude Code catalex providers discover # installed, version, signed in ``` ## In the app Follow the setup the app shows: **What describes you best?**, **Pick your AI**, then **Reach it from anywhere** with **Log in using Google**. It ends with **You're all set** and **Create your first agent**. The app installs and starts everything else it needs. Continue with [Add an agent](https://docs.catalex.co/agents/add-an-agent.md). ## With the CLI The installer above already put `catalex` on this computer. The steps below finish the setup from a terminal; skip the app screens if you use them. ### 1. Check the installation ```bash catalex version ``` ### 2. Install the components The installer installs `catalex` and the app. The service that runs agents and the web app come next; the app's setup installs them itself. ```bash catalex install service web catalex install status ``` **Expected result:** `catalex`, `service` and `web` are listed as installed, and the app if you installed it. Nothing is set up or running yet. ### 3. Check your AI tool ```bash catalex providers discover ``` The list shows Codex and Claude Code, each with its version and state, installed and signed in or not. A tool is found even when its folder, such as `~/.local/bin`, is not on `PATH`. If your tool is signed out, run `catalex providers login claude` or `catalex providers login codex` and complete the provider's own sign-in. Run `catalex providers discover` again to confirm. Before CatalEx is set up, an installed and signed-in tool shows `Installed and signed in; setting CatalEx up connects it`: setup connects it, so there is nothing to connect by hand. These commands run before you sign in to CatalEx; `catalex providers` without `discover` needs the sign-in of step 4. ### 4. Start and sign in to CatalEx Cloud Use `codex` instead of `claude` for a Codex agent, or `claude,codex` for both: ```bash catalex setup --preset cloud --native-providers claude --start ``` Without a saved sign-in, the command first signs you in with Google. It prints a link and opens it in your browser: ```text Setting up CatalEx Cloud needs your CatalEx account; signing in first. Sign in with Google in your browser: https://… Waiting for you to finish signing in... ``` It waits up to 10 minutes; Ctrl-C stops it. After you sign in, the browser page reads "You're signed in to CatalEx" and the command prints: ```text Signed in to SERVICE as EMAIL. This computer is now one of your computers. Trusted for changes: yes ``` It then starts native chats and connects to CatalEx Cloud. If this computer is already signed in, it skips the sign-in. With `--start` it also opens the app if it is closed; add `--no-launch` to keep it closed. If the sign-in expires or you cancel it, run the same command again. When your account already has a trusted device, such as the CatalEx app, a first sign-in on this computer is not trusted for changes yet: setup stops with `DEVICE_NOT_TRUSTED` and says how. Trust this computer in the app's device list (**Settings** > **Devices**), or run `catalex devices trust CLIENT_ID` on a trusted device, then run the same setup command again. To sign in without running setup, run `catalex login`. Google is the only sign-in; there is no email and password option, and the first Google sign-in creates your account. See [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md#sign-in). Setup reuses saved choices. After fixing an interruption, run the same command again. When a setup changes deployment settings while CatalEx runs, it stops CatalEx, saves the setup and starts it again, and a failed stop or setup starts the earlier state again. Signing in is required. Without a sign-in, commands that touch agents, chats or channels fail with `ACCOUNT_SIGNIN_REQUIRED`. The refusal names the next step: the setup command above when CatalEx is not set up on this computer, and `catalex login` when only the sign-in is missing. The commands that install, update, set up, start, stop and check CatalEx run signed out. ### 5. Check the setup ```bash catalex install status catalex status catalex account status ``` `install status` confirms the installed files, `status` confirms the configured and running components, and `account status` shows `Account: signed in as EMAIL`. None of them proves that an agent can answer yet. Open the app with `catalex open`. ### 6. Onboard the agent and verify a reply Follow [Add an agent](https://docs.catalex.co/agents/add-an-agent.md), then [Native chats](https://docs.catalex.co/chats/native-chats.md). Check for an exact reply, then ask a question that needs the folder's own instructions or tools. Keep the test chat. Only then [connect a messaging channel](https://docs.catalex.co/channels/overview.md), if you want one. A connected account does not prove delivery: send a message from the real messaging app and check the reply there. ## Update, restart and uninstall ```bash catalex update --check # what is installed and what is newer; changes nothing catalex update # replace everything the installers installed catalex stop --all # restart CatalEx... catalex start # ...and keep saved agents, channels and conversations catalex uninstall # everything the installers installed; saved data is kept ``` `catalex update` updates every part the installers recorded, never downgrades, and keeps a command that was changed since it was installed. While CatalEx runs it stops and asks for `--restart`, which stops CatalEx, installs the new release and starts it again. A running CatalEx app is replaced only with `--yes`, which quits it first. `catalex uninstall service` or `catalex uninstall app` removes only that part; `catalex uninstall --purge` also deletes saved conversations, credentials and the release files, so use it only when you mean it. [Everyday operation](https://docs.catalex.co/operate.md) covers automatic updates, repair and removal in full. ## If setup fails If the CLI installation failed, fix that installer error first. Once `catalex` works, run `catalex status` to see why setup failed, fix the reported cause and run the same command again. An occupied port can be changed with setup's port flags; see [network settings](https://docs.catalex.co/settings/advanced.md#addresses-and-ports). A missing provider needs installing or signing in, not a new agent. [Troubleshooting](https://docs.catalex.co/troubleshooting.md) lists errors and fixes. Common installer symptoms: | Symptom | What to do | | --- | --- | | `checksum mismatch` | The download was damaged or replaced. Delete it and download again; never install a file that fails the check. | | An AI provider command is missing | Install the provider using its own instructions, then sign in as the user that runs agents. | | macOS says the app is damaged or from an unidentified developer | The build is not notarized: right-click and choose **Open**, or choose **System Settings** > **Privacy & Security** > **Open Anyway**. | | `catalex: command not found` | Open a new terminal: the installer's `PATH` change reaches new ones only. If the installer could not change your profile (or you used `--no-path`), add `export PATH="$HOME/.local/bin:$PATH"` to your shell's login profile, or run `~/.local/bin/catalex`. | | Anything else | `catalex status` shows what is running and why it stopped. | `catalex doctor --fix` restarts CatalEx on this computer if it stopped. # Add an agent **Starting with no CatalEx installed?** Complete [fresh setup](https://docs.catalex.co/getting-started/agent-setup.md) first. To get the app and sign in, see [Get the app](https://docs.catalex.co/getting-started/app.md). This page begins with CatalEx running and signed in. An agent that onboards itself reads [Onboard an agent from its own session](https://docs.catalex.co/agents/add-an-agent.md#onboard-an-agent-from-its-own-session); the prompt to start it is on [Start prompts](https://docs.catalex.co/getting-started/start-prompts.md). **An agent reading this page:** fetch the raw Markdown with `curl -fsSL https://docs.catalex.co/agents/add-an-agent.md` and read it in full; a web-fetch tool that summarizes pages drops commands and findings. Do the same for every page it links (add `.md` to the address). If `catalex` is missing or `catalex status` says nothing is set up, do not ask the person which setup they want: it is always CatalEx Cloud, so follow [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md) straight away, even when the CatalEx app is installed. Only the Google sign-in is theirs. If a hook of your own session blocks every `catalex` command (the read-only guard of a packaged agent, for example), stop: do not change or bypass it. Tell the person to open a new Claude Code session in their home folder and say: *Read https://docs.catalex.co/agents/add-an-agent.md and onboard the agent in FOLDER onto CatalEx*, with the absolute folder filled in. An agent is a named working folder with an AI provider (Claude Code or Codex), a model and an effort choice. You can connect a folder you already use with Claude Code or Codex, or let CatalEx create a new folder for a new agent. A folder belongs to one agent. ## In the app With no agents yet, **Agents** opens a four-step setup titled *Let’s get your agent talking*: **Bring your agent**, **Say hi**, **Take it where you work** and **Set how it replies**. Later, start it again with the **Connect agent** tile (*Bring another agent from this computer*) on the Agents home. Each step shows what it unlocks, and you can go back with **Back**. 1. **Bring your agent.** CatalEx looks through your recent AI sessions and says *Found N agents on this computer*. Choose **Connect** beside your agent's folder. **Show N more** reveals further folders and **Show fewer** hides them again. - If the folder is not listed, choose **Somewhere else?** › **Locate** and pick it. CatalEx uses the AI provider it finds installed. - If the search fails, choose **Scan again**. - Instead of clicking, choose **Copy** under *Or simply share this prompt with your agent* and paste the prompt into your agent. It then follows the [agent setup playbook](https://docs.catalex.co/getting-started/agent-setup.md) itself. - A setup you left half-done shows under *Pick up where you left off*; choose **Continue**. CatalEx checks the folder, repairs its own instruction and settings files, names the agent after the folder and saves it. The row then becomes a **Connected** card with **Meet NAME**, which opens the next step, and any notes onboarding left for you. If something needs you, such as a folder that is not trusted, the row lists the steps; see [Resolve onboarding findings](https://docs.catalex.co/agents/add-an-agent.md#resolve-onboarding-findings). If no AI provider is installed, the page says so: install Claude Code or Codex, then check again. 2. **Say hi** (*Meet NAME*). The left panel shows the agent's picture, name and folder. Use the pencil to rename it and the camera to change its picture (PNG, JPEG or WebP, up to 1 MiB by default; a wrong type, a larger file or a failed save is said in words under the picture). **AI provider**, **Model**, **Effort** and **Approvals** save as soon as you change them. **Tools** shows how many tools are on (for example *7 on*); choose **Edit tools** to turn tools on or off in a dialog. The agent starts with its provider's default tools. **Hide details** collapses the panel. In the chat on the right, send a message; the first reply completes the step. The greeting reads *Hi there! Ask me anything you’d normally ask me.* 3. **Take it where you work** (*Take NAME where you work*). Choose **Connect** on Slack, WhatsApp, Google Chat or WhatsApp Personal (*Experimental*) to add a messaging channel, or choose **Skip to Set how it replies**. Apps marked **Coming soon** are not available yet. See [channels](https://docs.catalex.co/channels/overview.md). A shared link is not offered here; add it from the agent's **Add channel** later ([Share an agent](https://docs.catalex.co/agents/share-an-agent.md)). 4. **Set how it replies** (*Set how NAME replies*). The left side lists the agent's **AI provider**, **Model**, **Effort** and **Tools**, each with a button to change it, and *Where it talks*. On the right choose **Chattiness**, **Tone** and **Humanizer**, plus **Rich formats** and **Share media** where they apply (see [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md)). Then choose **Complete Setup**. The app shows *Congratulations! NAME is live* once; choose **See your agents**. **Leave setup** at any step offers **Finish later**, **Start over with another agent** and **Keep going**. The Agents home shows one tile for each agent. A tile has the agent's picture with a status dot and its provider mark, its name with a pencil to rename it, one row of channel logos (connected ones in colour, offered ones muted; click a muted one to add that channel), its last reply time (*No replies yet* before the first), a **Chat** button and a **Settings** button (gear). Choose the picture to change it. On an agent imported from the [Marketplace](https://docs.catalex.co/marketplace/overview.md) whose repository has a newer version, an update icon (*New updates available*) at the top right opens the same *Update* confirmation as the Marketplace card. When the account also has agents on other computers, the agents on this computer are listed under *On this computer*. See [Devices](https://docs.catalex.co/settings/computers.md). If the AI cannot start in the folder, the app shows *NAME could not be connected to Claude Code* (or Codex) with the provider's error and a **Close** button, and nothing is saved. The row then carries a small red warning, and **Connect** tries again. Fix what the provider reported, then try again. ## With the CLI 1. List folders on this computer that look like agents: ```bash catalex agents discover ``` It lists up to 12 folders where Claude Code or Codex ran recently, newest first. A folder counts when it has `SOUL.md` or `IDENTITY.md`, a Claude Code output style that replaces the coding prompt, or `CLAUDE.md` or `AGENTS.md` without a build manifest such as `package.json`. Code projects, git worktrees and temporary folders are skipped. An empty list is a valid result; you can still name a folder yourself. 2. Inspect the folder. Without `--apply`, nothing changes: ```bash catalex agents onboard --folder /absolute/path/to/support --name "Support agent" --agent claude ``` 3. Review the findings (see [Resolve onboarding findings](https://docs.catalex.co/agents/add-an-agent.md#resolve-onboarding-findings)), then repair the folder's own instruction and settings files and save the agent: ```bash catalex agents onboard --folder /absolute/path/to/support --name "Support agent" --agent claude --apply ``` Onboarding never changes trust, hooks or launchers. If a finding needs you, the agent is not saved until you resolve it. 4. Confirm the agent and its native chat channel: ```bash catalex agents list catalex channels list --agent AGENT_ID ``` To start a new agent in a new folder, leave out `--folder`. With `--apply`, CatalEx creates a folder named after the agent in its agents folder: ```bash catalex agents onboard --name "Recipe Buddy" --agent claude catalex agents onboard --name "Recipe Buddy" --agent claude --apply ``` Without `--name` as well, the agent is called `Assistant` (then `Assistant 2` and so on). `catalex agents add --name NAME --folder /absolute/existing/folder --agent claude` saves an agent without repairing the folder. Prefer `onboard`, which checks the folder first. Both accept `--isolation folder` for Claude Code: the agent then starts with only its folder's settings and MCP servers instead of your user-wide configuration. This is not an operating-system sandbox. Run `catalex agents onboard --help` for every option in your release. When CatalEx adds an agent, it first starts a session of the AI provider in the folder. If that fails, nothing is saved and the command reports the provider's error, for example `AGENT_START_CHECK_FAILED`, or `PROVIDER_NOT_READY` when the provider is not installed. Fix what the provider reported, in the folder's settings or in the provider, and run the command again. New agents start with the **Agent recommends** approval mode (`automatic`) when the provider supports it, otherwise **Use global settings** (`inherit`). They also start with the provider's default tools. Read [Choose approvals](https://docs.catalex.co/agents/tools-and-permissions.md#choose-approvals) before changing either. ## Onboard an agent from its own session This section is for an AI agent that onboards the folder it runs in, or a person reading over its shoulder. For every chat CatalEx starts Claude Code (`claude -p`) or Codex in the agent's folder, gives it CatalEx's chat tools and delivers the messages from native chats, Slack, WhatsApp and Google Chat to it. Onboarding therefore means: make the folder work when CatalEx starts it, register it, connect channels and verify a reply. Three rules hold throughout: 1. **Onboarding needs no asking:** the person asked for it, and CatalEx Cloud is the default. **Ask before changing what the agent may do or who can reach it** (file access, connected tools, web, channels, message caps): suggest it with the reason, then stop and wait for a yes. 2. **Do not open the app before the agent is ready.** Run `catalex open` once at the end, unless the person asked for the app to stay closed ([report](https://docs.catalex.co/agents/add-an-agent.md#report)). 3. **Never message a real person or number to test.** Test only in a native chat. Assume the person knows nothing about CatalEx or its limits. When a limit, permission or setting first matters (what the agent may read or edit, the terminal, connected tools, approvals, caps), say in a sentence or two what it means before you ask. Use only CatalEx and agent names, not internals. Do every step with `catalex` commands and edits inside your own folder; never edit CatalEx's configuration or databases, call its APIs with `curl`, start or stop its processes yourself, or put a secret in chat, on a command line or in a file you print. Read `catalex COMMAND --help` before using a flag not shown here; every command takes `--json` and prints one `catalex.result.v1` result. You need no skill for CatalEx: [the block onboarding writes](https://docs.catalex.co/agents/add-an-agent.md#what-onboarding-leaves-in-the-folder) points back to `catalex --help` and the docs. ### 1. Check that CatalEx is ready ```bash catalex version && catalex status && catalex providers discover ``` If the shell says `catalex: command not found`, run `export PATH="$HOME/.local/bin:$PATH"` and try again: the installer puts the command in `~/.local/bin`, which an agent's shell may not have yet. Do not search the disk for it. If a hook of this session blocks every `catalex` command (a guard such as the read-only guard of a packaged agent), do not change or bypass it, and do not onboard from this folder. Tell the person: "Open a new Claude Code session in your home folder and say: Read https://docs.catalex.co/agents/add-an-agent.md and onboard the agent in FOLDER onto CatalEx", with the absolute folder filled in. An agent started outside the folder follows these steps for the folder named in the prompt, and the folder's own guard keeps deciding what the agent can do. - `catalex` missing, or `status` reports no setup: follow [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md) (or [Connect an agent package](https://docs.catalex.co/agents/agent-packages.md), which installs and sets everything up) and come back. With `catalex` installed, `catalex setup --preset cloud --native-providers claude --start --no-launch` (`codex` for Codex) sets CatalEx up and signs in with Google. Run it yourself, in the background or with a long timeout: it waits up to 10 minutes while the person finishes the sign-in at the link it prints. If it stops with `DEVICE_NOT_TRUSTED`, the account already has a trusted device: the person trusts this computer in the app's device list, or runs `catalex devices trust CLIENT_ID` on a trusted device, and you run the same setup again. A refusal with remedy `start_setup` means the same setup. - The provider you run on (`claude` or `codex`) must show as installed and signed in. If not, ask the person to sign in with `catalex providers login claude`; never sign in for them. If it shows `CONNECTED no`, run `catalex providers connect codex` (or `claude`): this keeps the setup and needs no stop or start. - The `native_chat` and `agent` components must be `ready` (an older CatalEx names the first `browser`). The CatalEx Cloud connection is needed only for Slack, WhatsApp or Google Chat. ### 2. Choose the agent folder The agent folder is the absolute folder CatalEx starts the agent in. It is usually the folder that holds the agent's own `CLAUDE.md` or `AGENTS.md`; for a packaged agent, it is the per-role folder its launcher changes into, such as `doctor-agent/`. One folder backs one agent. For several roles, for example a Patient and a Doctor assistant, onboard each folder as its own agent. Use the existing folder and do not copy the agent elsewhere. ### 3. Check the folder, then settle the person's steps Run the check from [With the CLI](https://docs.catalex.co/agents/add-an-agent.md#with-the-cli). `data.findings` lists what stands between the folder and a working agent. Branch on each finding's `code`, never on its message text; [Resolve onboarding findings](https://docs.catalex.co/agents/add-an-agent.md#resolve-onboarding-findings) lists them all. Ask for each person step in one short message, wait, and run the check again. Continue when every finding left is `repairable: true`, a folder-isolation warning or a `TOOL_HOOK_UNVERIFIED` you have checked. Those never block `--apply`; only person steps do. Unless the agent uses folder isolation, also move anything else its launcher passes as flags (an instructions file, environment variables its tools need, a pre-session script) into the folder's own files. With folder isolation, change nothing in the folder's settings, tools or guards. **Minimum communication access.** Where the person's request and the agent's own rules permit a hook repair, limit its exception to `ToolSearch` and these exact Claude MCP names: `mcp__relay__relay_context`, `mcp__relay__relay_emit`, `mcp__relay__relay_ask`, `mcp__relay__relay_validate`, `mcp__relay__relay_history`, `mcp__relay__relay_react` and `mcp__relay__relay_activity`. Optional attachment, delegation, reporting and person tools stay subject to their own rules. Never exempt the whole CatalEx server or all skills, weaken a package guard or change global settings to make a check pass. Folder isolation keeps the package's files as they are. **Serve each person in their own chat.** Each CatalEx chat is one person, with its own person ref. If the agent's tools serve one person per launch (`PERSON_FIXED_IN_TOOLS`, or a `--patient` or `--user` flag, a default customer or a config naming one account in the folder), switch them to the ref: 1. Find the flag that picks the person in the tool's `--help` or source. A tool that falls back to a default person when the flag is missing counts too. 2. Save it with the agent. CatalEx then starts that server with the flag set to each chat's person ref, and the folder's files, including `.mcp.json` and its launchers, stay as they are: ```bash catalex agents onboard --folder /absolute/path/to/support --person-arg SERVER=FLAG --apply --json ``` `SERVER` is the server's name in the folder's `.mcp.json`. This is CatalEx's own launch setting, so a package that forbids editing its files still allows it. When the tool takes the person's details (a JSON object with a name and phone number), write `SERVER=FLAG,DETAILS_FLAG`, for example `--person-arg clinic=--patient,--patient-details`; the second flag must differ from the first, and CatalEx leaves it out when it has no details. 3. The tool must accept any ID of letters, digits, `_` and `-` (a ref looks like `ct_…`) and create the person on first use. If it accepts only fixed IDs, that is a change to the agent's own code: list it in the report as the next step. The CatalEx block tells the agent to call `relay_person` for the person's ref and known name. Its deprecated `channels: []` member is always empty and does not say where the person can be reached. ### 4. Repair and register Run the same command with `--apply` ([With the CLI](https://docs.catalex.co/agents/add-an-agent.md#with-the-cli)). `state` is `onboarded` when it worked: `data.agent.id` is the agent ID and `data.agent.native_chat_channel` its native chat channel. `data.overview`, and the text output, says what the agent can use (file reading and editing, the terminal, the web, connected tools by name, approvals, folders, limits and channels) with the next steps and their exact commands; `catalex agents show AGENT_ID` prints the same. `data.changed` names the files it repaired. `action_required` means a person step remains: go back to step 3. Rerunning is safe: it changes nothing twice and reuses the saved agent. ### 5. Connect channels The native chat always works, so it is never the recommended stopping point: an agent is useful once people reach it where they already talk. Recommend one channel from the agent's context, its instructions, tools and the people it serves: | Who the agent serves | Recommend | | --- | --- | | Customers, patients or the public (bookings, support, orders) | WhatsApp: a business number, or WhatsApp Personal for a small business run from the owner's phone | | The person themselves, friends or family (a personal assistant, a hobby agent) | WhatsApp Personal | | A team or workplace | Slack, or Google Chat when the team uses Google Workspace | | Anyone who should try it once, with nothing to install | A shared link: `catalex channels add --agent AGENT_ID --type share_link` prints its address at once | Ask once, with that channel first and marked recommended, then the other channels, then "Only the CatalEx app for now" last. Describe each option by its outcome for this agent (who can reach it, where, and what that person does), never by its setup. For a joke agent, for example: **WhatsApp Personal (Recommended):** friends message your number on WhatsApp and the agent replies there; you scan one QR code. **Shared link:** anyone you send the link to chats with it in their browser, no app or account; anyone holding the link can use it. **Only the CatalEx app for now:** only you can chat with it, in the app. Never mark the native chat alone as recommended. When the package or the person already named a channel, use it without asking. When the person declines, keep the native chat and name the channel you recommended as the next step in the report. Then add it: ```bash catalex accounts list --json catalex channels add --agent AGENT_ID --type slack --account ACCOUNT_ID --name "Clinic" ``` Use an agent account that `catalex accounts list` shows as `Available` (`account_state` `idle`). Admin accounts are never channels, and an account another agent uses is refused with `ROUTE_TAKEN`. When none is available, add one for this agent with `catalex channels add --agent AGENT_ID --type TYPE --new` (the account takes the agent's name) and drive its setup in the terminal with `catalex destinations setup ACCOUNT_ID` and the provider's flag (`--slack`, `--whatsapp`, `--whatsapp_personal` or `--googlechat`), as [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md) says, one step at a time. Never send the person to the app to finish a channel. The provider's own steps, such as creating and allowing the app and copying its credentials, are the person's: never create a Slack or WhatsApp app yourself, never type or collect its secrets in chat, and for Google Chat pass the service-account key to `catalex` only as the file path the person gives you. When CatalEx refuses a channel it names the missing step; report it instead of working around it. ### 6. Review tool permissions New onboarding saves a default policy. MCP servers the native setup already enables stay selected. Built-in tools start as only the web tools, the task list and skills; file tools (Read, Glob, Grep, Edit, Write), the terminal, subagents and the rest start off. Terminal access starts Off unless an enabled server can already run commands, and approvals start as inherit, the agent's own settings, not No approval. It never grants future servers and does not replace native or package denials. Re-onboarding and rediscovery preserve saved exclusions. Inspect the agent with `catalex agents show AGENT_ID --json` (plain facts) or `catalex agents tools --agent AGENT_ID --json` (every tool), or use the **MCP servers**, **Terminal access** and **Approvals** rows in its settings. One flag is enough to change a setting; CatalEx keeps everything you leave out and prints the operation ID: ```bash catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep ``` `--builtin-tool-off`, `--tool-on` and `--tool-off`, `--terminal-access`, `--approval-mode`, `--sandbox` and `--add-folder` work the same way. If the verification question below fails because file reading is off, ask the person first, then run that command. Apply a change only within the person's authorized request and only what they agreed to. Never turn on terminal access, select a new server or choose Automatic approvals as a repair for a failed check; do that only when the person asks. Keep the folder's, the global and the package's settings. Saved choices are separate from what the running agent applies. A change may wait for the next supported message or start. Pending, unsupported or unreachable sessions are not applied. After an uncertain save, repeat the same operation ID and body, and refresh and review the saved state before starting a new operation. Do not delete policy state to retry. ### 7. Verify with a real reply [Verify the agent](https://docs.catalex.co/agents/add-an-agent.md#verify-the-agent) below says how. In short: ask the question the agent exists to answer, one that needs its own tools or data, and judge the reply by whether it comes from them. ### 8. Suggest the settings the agent needs After the first real reply, read the agent's settings (`catalex agents show AGENT_ID` covers `catalex agents tools` and `catalex agents limits show`). Work out from the person's request and the folder's instructions what the agent needs, explain each in plain words, and ask once. [Suggest the agent's settings](https://docs.catalex.co/getting-started/agent-setup.md#7-suggest-the-agents-settings) has the table of what to suggest and how to ask. Apply only what they agree to and never widen anything automatically; a CatalEx default is the bare minimum, so leave it unless they agree. Adding the instructions block to the folder's `CLAUDE.md` is its own yes or no question. ### 9. Keep the summary in chat Write no summary document: no artifact, Sites page or Markdown file. The report below is the summary. Take every fact from `catalex agents show AGENT_ID --json`, use plain words with no commands, IDs or internal component names, and end with two to four requests the person can make to you. When the person later asks you to change "the agent" (add a channel, let it read or edit files, cap it, remove it), do it with `catalex` and explain the result in plain words. ### Report Report each outcome as observed: the agent's name, ID and folder; what you changed in the folder (files and settings); its channels and their readiness; the verified reply; and anything pending with its next step, such as an unconnected Slack account. Give this in chat. Then run `catalex open` once, unless the person asked for the app to stay closed, and tell them they can chat with the agent in the CatalEx app and return to this session for the summary. When the person asked for a channel, open the app as soon as it is connected, in the message that asks them to try the agent there. ### What onboarding leaves in the folder With `--apply`, onboarding adds a short CatalEx block to the agent's instructions (`AGENTS.md` or `CLAUDE.md`), between `` and ``, and refreshes an outdated one; with folder isolation that block is the only change in the folder. It tells the agent how to use CatalEx's chat tools, and points it to `catalex --help` and [https://docs.catalex.co/llms.txt](https://docs.catalex.co/llms.txt) for everything else. An agent that later needs to do something with CatalEx returns there; it installs no skill. To restore the folder, remove the block and any settings `data.changed` named. If the block is outdated, repeat the `--apply` command to refresh only that block, and preserve all text outside its markers. Do not rewrite the owner's instructions as a side effect of changing writing preferences, and do not recreate accounts or tokens. ## Verify the agent Ask the agent something only its own instructions, files or tools can answer. For example, ask a clinic agent for the opening hours from its clinic tool, then check the reply against the source. The agent is onboarded when the reply comes from its own tools, data or rules: the real hours from its clinic tool, its sign-off, its limits. Do not judge by a "Who are you?" answer: under CatalEx the model may describe itself generically, and may even claim tools its permissions refuse. When the agent has limits, also send something its rules forbid, for example "Run the shell command ls", and check the actual permission and loaded-tool evidence as well as the reply; a model's refusal alone does not prove enforcement. If the domain reply is generic or a forbidden action runs, the folder's instructions, tools or limits did not load: return to the folder check, and remove the agent (`catalex agents delete AGENT_ID`) only if it ran something it must not. In the app, use **Chat** on the agent's tile. In the terminal, create a native chat on the channel ID from `catalex channels list` and wait for the reply: ```bash catalex chats create --channel CHANNEL_ID --name "Onboarding check" echo "What are the clinic's opening hours?" | catalex chats send CHAT_ID --wait ``` A Slack, WhatsApp or Google Chat channel counts as working only after a real message from the person in that app gets the agent's reply there. Ask them to send one; do not claim delivery without it. After an update to the rich-output guidance, test in a new native chat. For a regular messaging account, its owner deletes the chat in the app or with `catalex accounts chats delete` (IDs from `catalex accounts chats list ACCOUNT_ID --json`), and the next message starts a new chat. Never tell a regular WhatsApp user to use `/new` or reconnect credentials. Keep the existing agent, folder, model, permissions and channel credentials. For an agent that compares data or shares files, also verify those outputs. Ask it to compare three values, rank items and explain a trend over time without asking for a chart, and check that the chart kinds and exact values are right, that text-only requests and unrelated numbers stay text, and that every number and unit in the prose matches the data. "Share a chart image" still produces a structured chart; only an explicit request for a downloadable image file sends an original file. Then ask it to share an existing image and a data file unchanged: inspect the `events` from `catalex chats send --wait --json` (structured replies are under `payload.response`, or directly under `payload`), check the attachment references, download each file with `catalex chats attachments download` and compare its bytes with the original. Text-only history cannot prove a chart was left out. Keep agent output, channel rendering and delivery to the recipient as separate checks, and keep a folder's tool restrictions when rich tools are unavailable. When the app offers engagement and writing controls, set the agent's frequency, tone and Humanizer there; channels may override frequency only. Frequency is loose guidance, not a length or message quota. A saved preference is not an applied one: pending, failed or unsupported is not applied. See [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md). Once the native reply works, [add a messaging channel](https://docs.catalex.co/channels/overview.md) or [share the agent by link](https://docs.catalex.co/agents/share-an-agent.md). ## Change or remove an agent To remove (offboard) an agent, see [Remove (offboard) an agent](https://docs.catalex.co/agents/add-an-agent.md#remove-offboard-an-agent). ### In the app Choose **Settings** on the agent's tile. The agent's chats open with a settings card beside them: the agent's picture, name, folder and status, a **More actions** menu with **Rename agent**, **Change picture** and **Delete agent**, and four tabs: **General**, **Channels**, **Permissions** and **Limits**. Each change saves on its own: the status reads *Saving…*, then *Saved*, or *Not saved* with the reason. See [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) and [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) for what the tabs hold. The folder cannot be changed in the app; to use another folder, delete the agent and connect it again. The **General** tab ends with **On the web** and the switch **Viewable on web**. It is on for every agent unless you turn it off. While it is on, every final reply in a messaging app links to the conversation in a web page that opens after you sign in with Google, and only you can open it. Turn it off to close the page and drop the link. The switch is disabled with *This computer or your messaging service doesn’t offer the web view yet.* when this computer or the messaging service does not support it. See [View a conversation on the web](https://docs.catalex.co/activity.md#view-a-conversation-on-the-web). To delete the agent, open **More actions** on the settings card, choose **Delete agent**, read the *Delete NAME?* summary and confirm with **Delete agent**. The summary says *This permanently deletes NAME:* and lists what goes: its chats and chat files on this computer and in CatalEx Cloud, its replies in every channel, and each connected account that is removed or disconnected. An account another agent also uses stays. A WhatsApp Personal number is named as disconnected only when no other agent, on any of your computers, answers on it; if CatalEx cannot read that list, the app says so and deletes nothing. The agent's folder and the files in it stay, and the deletion cannot be undone. ![Delete Support agent? confirmation listing what is deleted, with Cancel and Delete agent](https://docs.catalex.co/img/app/delete-agent-confirm.png) ### With the CLI ```bash catalex agents edit AGENT_ID --name "Support desk" catalex agents edit AGENT_ID --model MODEL_ID --effort high catalex agents edit AGENT_ID --model '' --effort '' catalex agents edit AGENT_ID --agent codex catalex agents edit AGENT_ID --web-view off ``` An empty `--model` or `--effort` returns that setting to the default. A new chat takes the agent's latest model and effort; an existing chat keeps the ones it started with. Changing the provider, model or effort only saves them, and a provider that cannot start in the folder is reported at the agent's next message. Moving to another provider with `--agent` also repairs the folder for that provider, as `onboard --apply` does. If the tool choices cannot move without widening them, the command fails with `AGENT_TOOLS_NOT_CARRIED` and saves nothing. Add `--no-onboard` to save the provider change without touching the folder. `--folder` points the agent at another absolute folder on this computer. `--web-view on` or `off` sets **Viewable on web**; it is on until you turn it off, and an edit that leaves the flag out keeps it. Only you can change it, here or in the app, and never from another computer. Set or remove the picture the app shows (PNG, JPEG or WebP, up to 1 MiB by default): ```bash catalex agents picture set AGENT_ID picture.png catalex agents picture show AGENT_ID catalex agents picture remove AGENT_ID ``` #### Remove (offboard) an agent ```bash catalex agents delete AGENT_ID ``` Deleting removes the agent and everything CatalEx keeps for it, on this computer and in CatalEx Cloud: its conversations, its files and the messaging accounts only it uses. A WhatsApp Personal number is disconnected only when no other agent on any of your computers answers on it. Accounts that another agent also uses are kept. Your folder and its files stay. This cannot be undone. The command lists what it removes and asks first (default No); without a terminal it refuses unless you pass `--yes`. After an uncertain result, repeat it with the same `--operation-id`. Deleting also removes the agent's shared link and takes the marked CatalEx block (between `` and ``) out of the folder's instructions; the rest of the folder stays as it was. Run `catalex agents delete AGENT_ID --yes` when no terminal can answer the question. The agent's own unfinished channel setups (accounts listed as "Setup not finished") go with it: the command lists them before it asks. Finished accounts, accounts a channel uses, accounts another agent is on and other agents' setups stay. Remove a leftover account with `catalex accounts remove ACCOUNT_ID --yes`. To delete an agent that runs on another computer of your account, add `--computer`: ```bash catalex agents delete AGENT_ID --computer "Office VM" ``` The computer can be online or offline. CatalEx Cloud erases the agent at once, and that computer erases its own copy when it next connects; the confirmation names the computer and says which. The command needs your CatalEx sign-in on this device. In the app, open the agent of the other computer and choose **Delete agent** below **New chat** and **Reload**; the dialog *Delete agent NAME?* names the computer, and afterwards the app says *Deleted agent NAME.* with *It will be erased on COMPUTER when it next connects.* when that computer was not told yet. Its folder and your files stay, and the deletion cannot be undone. ## Resolve onboarding findings | Finding (`code`) | Next step | | --- | --- | | Instructions import, CatalEx block, MCP approval, CatalEx tool permissions or registration (`repairable: true`) | Nothing yet: `--apply` repairs them inside the folder | | `AGENT_INSTRUCTIONS_MISSING` (repairable) | `--apply` writes an instructions file that holds only the CatalEx block. If the agent's real instructions live elsewhere, this is the wrong folder: find the one that holds them | | `AGENT_FOLDER_NOT_FOUND` | Wrong folder: use the absolute folder the agent's AI actually starts in | | `AGENT_FOLDER_NOT_TRUSTED` with `repairable: true` | Nothing yet: choosing the folder is the person's trust decision, and `--apply` records it silently in the provider's own configuration. Do not mention it or edit `~/.claude.json` or Codex's `config.toml` yourself | | `AGENT_FOLDER_NOT_TRUSTED` with `repairable: false` | The provider's configuration file cannot be read and was left untouched. The person opens the provider in that exact folder once and accepts its trust prompt (`cd FOLDER && claude`); do not accept it for them. Then check again. Folder isolation does not need it | | `RELAY_TOOLS_BLOCKED` with `repairable: false` (folder isolation) | Nothing to do, and never change the folder: the agent's own permissions decide, and its replies still arrive as plain text | | `TOOL_HOOK_UNVERIFIED` with folder isolation (`data.isolation` is `folder`) | Nothing to do: the package's own hook keeps deciding which tools run. Continue | | `TOOL_HOOK_UNVERIFIED` otherwise | Read the folder's `PreToolUse` hook. If it is the agent's own and its rules allow changing it, keep its guards and allow only the minimum communication tools; otherwise tell the person what it blocks | | `AGENT_ISOLATION_NOT_REPRODUCIBLE` | Claude Code (`repairable: true`): `--apply` chooses folder isolation, so CatalEx starts the agent the way its launcher does and the folder stays as it is. Codex: stop for this agent and tell the person it needs a CatalEx-ready mode from its package. Never weaken the agent to onboard it | | `PROVIDER_NOT_READY` | The person installs, updates or signs in to the provider (`catalex providers login PROVIDER`); never sign in for them. Then inspect again | | `PERSON_FIXED_IN_TOOLS` | Configure [per-person routing](https://docs.catalex.co/agents/folders-and-tools.md#tools-that-serve-one-person) before serving several chats | | `PERSON_AGENT_UNREACHABLE` (repairable) | Nothing yet: this agent and another saved agent run the same tool, and one of them serves one person per chat. `--apply` lets the other agent message it about those people (`data.sends`) | A saved agent, a repaired folder and a useful native reply are separate checks. The [agent setup playbook](https://docs.catalex.co/getting-started/agent-setup.md) puts them in order. Read [Onboard an agent from its own session](https://docs.catalex.co/agents/add-an-agent.md#onboard-an-agent-from-its-own-session) when the agent onboards itself. # Set up with an AI agent This playbook takes a computer with **no CatalEx software installed** to an agent that answers in a CatalEx native chat. The agent reading it installs the `catalex` command first, then uses it for everything else. Read this page in full before starting. A web-fetch tool that summarizes pages drops commands and links; fetch the raw Markdown with `curl -fsSL https://docs.catalex.co/getting-started/agent-setup.md` instead, and do the same for every page it links (add `.md` to the address). You need an Apple Silicon Mac and a Codex or Claude Code agent that can run terminal commands, already installed and signed in. Open the agent in the folder you want to onboard. The person may know nothing about CatalEx. Explain each limit in plain words when it first matters, and suggest what to change instead of leaving it for them to discover. Follow the steps in order. Make the default choices yourself and ask the person only for the sign-ins they must complete the settings of step 7 and the channel of step 8: Google for CatalEx Cloud, and the AI tool's own sign-in if it is signed out. If `catalex account status` already shows a signed-in account, use it without asking, even when its email differs from the AI tool's account, and name it in your report. CatalEx has no email and password sign-in. Signing in to CatalEx is required: without it, every `catalex` command that touches agents, chats or channels fails with `ACCOUNT_SIGNIN_REQUIRED`. Keep the agent's folder, AI tool, instructions and restrictions as they are. Do the whole setup with the installer and `catalex` commands: do not edit CatalEx's configuration, databases or credential files, call its APIs with `curl`, start or kill its processes by hand, or stop a process you did not start. Install no skill or plugin for CatalEx during setup: this page and `catalex --help` are everything you need, and [Keep CatalEx in the agent's memory](https://docs.catalex.co/getting-started/agent-setup.md#keep-catalex-in-the-agents-memory) says where to come back to. If the person's [CatalEx plugin](https://docs.catalex.co/getting-started/start-prompts.md#install-the-catalex-plugin) brought you here, carry on: it only points to this page. If `catalex` is already installed, go to [Existing installations](https://docs.catalex.co/getting-started/agent-setup.md#existing-installations). If the person would rather click than type, the CatalEx app does the same setup; send them to [Get the CatalEx app](https://docs.catalex.co/getting-started/app.md) and carry on from step 5 once they are signed in. Three rules hold for the whole setup. A setup that breaks one is not finished: 1. **Ask before widening any setting.** Suggest each change the agent needs (file reading, a message cap, turning off connected tools, a channel) with its reason, then stop and wait for the person's answer. Never turn a setting on or off, or set a cap, because it seems obviously right. 2. **Open the app once the agent is ready, not before.** Do not open the CatalEx app before or during the install, the sign-in or the setup: it can get stuck waiting for them. Pass `--no-launch` to the installer and to `catalex setup`, then run `catalex open` once, unless the person asked for the app to stay closed ([step 9](https://docs.catalex.co/getting-started/agent-setup.md#9-report-the-result-and-open-the-app)). 3. **Never message a real person or phone number** to test; test in the agent's native CatalEx chat. ## 1. Install the CatalEx CLI Every later step needs the `catalex` command. Run the one-line installer: ```bash curl -fsSL https://downloads.catalex.co/install/catalex.sh | sh -s -- --no-launch export PATH="$HOME/.local/bin:$PATH" catalex version ``` The installer asks nothing, and needs no GitHub account or token. It downloads the newest release, checks every file against the release checksums, installs `catalex` in `~/.local/bin` and adds that folder to new login shells' `PATH`. It also installs the service that runs agents and the web app, starts CatalEx and waits, for up to 2 minutes (set `CATALEX_START_TIMEOUT` to a number of seconds to wait longer), until it is ready; it then prints `CatalEx is running.` If it prints an error saying CatalEx was installed but is not running, stop and report that error. On an Apple Silicon Mac it also installs the CatalEx app. `--no-launch` keeps the app window closed while you set up; CatalEx itself is still started. Always pass it here: you open the app yourself, last, in step 9. Running the installer again is safe. The person can also download the app alone from `https://downloads.catalex.co/latest/CatalEx-arm64.dmg`; the [install page](https://docs.catalex.co/getting-started/install.md) lists every option. **Expected result:** `catalex version` prints a version number, such as `0.1.0`. Do not run any other `catalex` command until it does. - **A download error:** check the network and run the same command again. Do not fetch the installer from any other address. - **`catalex: command not found`:** run the `export PATH` line again in this shell. - **`The CatalEx app is open, so it was kept as it is. Quit it and run: catalex install app`:** the CatalEx app is open, so the installer left it as it is and still installed and started everything else. Do not quit the app and do not pass `--yes`: the person may be using it. Tell the person the app was not updated and that `catalex install app` installs it once they quit it. - **No desktop app wanted:** only when the person says so, pass `--no-app` (`sh -s -- --no-app`). It cannot be combined with `--no-launch`. ## 2. Install the components Do not ask which setup the person wants. CatalEx Cloud carries the agents' messages, so the person runs no server and needs no public address. The installer already installed the service that runs agents and the web app, and started them (`CatalEx is running.`). Do not install them again: a second `install service web` downloads the service again and can leave CatalEx stopped. Check instead: ```bash catalex install status ``` **Expected result:** `install status` lists `catalex`, `service` and `web` (and the app, if installed) as installed. Only if a component is missing, run `catalex install COMPONENT`. If `catalex status` says CatalEx is stopped, run `catalex start`. Nothing is set up yet; step 4 does that. ## 3. Check the AI tool ```bash catalex providers discover ``` Use the AI tool this folder already runs on: `claude` or `codex`, or both when the person uses both. If it is missing or too old, ask the person to install or update it. If it is signed out, run `catalex providers login claude` (or `codex`) and let the person complete the provider's own sign-in. Never sign in for them. Run `catalex providers discover` again. Only `providers discover`, `connect`, `disconnect` and `login` run before the CatalEx sign-in of step 4; a bare `catalex providers` fails with `ACCOUNT_SIGNIN_REQUIRED` until then. After setup, `catalex providers` lists only what a detection already recorded, so an empty list means "not checked yet", never "not installed". Do not tell the person a provider is missing until `catalex providers discover` has run and says so. **Expected result:** the chosen provider shows as installed and signed in. `discover` finds Claude Code and Codex even when their folder, such as `~/.local/bin`, is not on `PATH`. Do not switch the folder to another provider to get past an error. ## 4. Start CatalEx and sign in to CatalEx Cloud First tell the person what will happen, in plain words. For example: "A CatalEx sign-in page is opening in your browser. Sign in with Google there. You don't need to reply; I'll carry on when you're done." Then run this command. Replace `claude` with `codex` for a Codex agent: ```bash catalex setup --preset cloud --native-providers claude --start --no-launch ``` `--no-launch` keeps the app closed, so setup does not open it. The command waits up to 10 minutes for the sign-in. Run it in the background or with a 10-minute timeout, and do not wait for the person to answer you: the command finishes on its own. On its error output it prints: ```text Setting up CatalEx Cloud needs your CatalEx account; signing in first. Sign in with Google in your browser: https://… Waiting for you to finish signing in... Signed in to SERVICE as EMAIL. This computer is now one of your computers. Trusted for changes: yes ``` If the person says no browser window opened, give them the link printed under `Sign in with Google in your browser:`. After they sign in, the browser page reads "You're signed in to CatalEx". The command then joins this Mac to their account, starts native chats and connects to CatalEx Cloud. If this computer already has a CatalEx sign-in, the sign-in lines are skipped. Setup reuses saved choices, so running the same command again after an interruption or a fix is safe and continues where it stopped. **Expected result:** the command exits 0. Run `catalex account status` to confirm; it prints `Account: signed in as EMAIL` and `Trusted for changes: yes`. Tell the person which email is signed in. - **Sign-in expired or cancelled** (`SIGN_IN_EXPIRED`, `SIGN_IN_CANCELLED`): run the same command again. It starts a new sign-in. - **`DEVICE_NOT_TRUSTED`:** the account already has a trusted device, such as the CatalEx app, so this computer's first sign-in is not trusted for changes yet. Tell the person to trust this computer in the app's device list (**Settings** > **Devices**), or to run `catalex devices trust CLIENT_ID` on a trusted device. Then run the same setup command again. Do not run `catalex login` for it. - **An occupied port:** pick free ports and pass them, for example `--control-port 53101 --service-port 53106`. `catalex setup --help` lists every port flag. - **The person has no Google account, or wants another sign-in:** there is none. Google is the only way to sign in to CatalEx. Stop and tell them. - **The sign-in must happen in a different browser:** the person can open the printed link there, or run `catalex login` themselves (in Claude Code, `! catalex login`) and then the setup command. - **`this build has no CatalEx Cloud address`:** run `catalex update`, then the setup command again. - **The person does not want to sign in now:** stop here. Without a CatalEx sign-in, `catalex agents`, `chats` and `channels` commands are refused, and the CatalEx app asks for the sign-in before it shows anything. Tell them the next step is step 4. Describe the result simply: their agent runs on this Mac and CatalEx Cloud carries its messages. Do not explain servers, tokens or setup modes unless they ask. ## 5. Onboard the agent folder Use the absolute folder this agent starts in, where its instructions live. Do not copy a packaged agent into a new folder. The [add an agent](https://docs.catalex.co/agents/add-an-agent.md#onboard-an-agent-from-its-own-session) page lists every onboarding finding and the rest of the procedure for an agent that onboards itself; read it before step 5 when a finding needs a decision. For several roles, onboard each role's folder separately. To list other agent folders on this computer, run `catalex agents discover`; it shows up to 12 recent folders that look like agents (for example, with `SOUL.md`, or `CLAUDE.md`/`AGENTS.md` and no build manifest); code projects, worktrees and temporary folders are skipped, and an empty list is a valid answer. First check the folder. Nothing changes yet: ```bash catalex agents onboard --folder /absolute/agent-folder --name "Support agent" --agent claude --json ``` Use `--agent codex` for Codex. `data.findings` lists what stands in the way. Findings with `repairable: true` are fixed by the next command. Resolve the others first; see [Resolve onboarding findings](https://docs.catalex.co/agents/add-an-agent.md#resolve-onboarding-findings). For a Claude Code package whose launcher isolates the agent, `--apply` chooses folder isolation on its own. For Codex, do not remove a package's isolation requirements to make it register. Then repeat the same command with `--apply`: ```bash catalex agents onboard --folder /absolute/agent-folder --name "Support agent" --agent claude --apply --json ``` **Expected result:** `state` is `onboarded`. Record `data.agent.id` (the agent ID), `data.agent.native_chat_channel` (its native chat channel) and `data.changed` (the files it repaired). Onboarding adds a marked CatalEx block to the agent's instructions and leaves everything outside it, including the package's own guards, unchanged. `action_required` means a person step remains: settle it and run the command again. Rerunning is safe. A person who has no agent folder yet can start from a bare one: `catalex agents add --name Helper --folder /absolute/folder --agent claude` registers a folder without repairing it (a new empty folder such as `~/catalex-agent` will do). Without `--model` the agent uses its provider's own default; `catalex defaults show` lists the verified models. Prefer `onboard` for an existing agent, which checks the folder first. An agent whose tool serves one fixed person needs [per-person routing](https://docs.catalex.co/agents/folders-and-tools.md#tools-that-serve-one-person) before it can serve separate chats safely. ## 6. Verify a real reply ```bash catalex chats create --channel NATIVE_CHAT_CHANNEL_ID --name "Setup check" --json printf 'Reply with exactly: CATALEX READY\n' | catalex chats send CHAT_ID --wait catalex chats history CHAT_ID ``` Use `data.agent.native_chat_channel` from step 5 as `NATIVE_CHAT_CHANNEL_ID` (it is also the agent's `native_chat` channel in `catalex channels list --agent AGENT_ID`), and the `data.id` of the create result as `CHAT_ID`. **Expected result:** the reply contains `CATALEX READY`. Then ask a question that only the folder's files or tools can answer, and compare the answer with the source. Test a restriction if the package has one. A greeting alone does not prove that tools or instructions loaded. Keep the chat. A new agent can't read its folder's files yet (step 7), so an answer such as "file reading is switched off" is expected here, not a failure. Keep the app closed for now; step 9 opens it. After a successful reply, also ask the one question the agent exists to answer; [Verify the agent](https://docs.catalex.co/agents/add-an-agent.md#verify-the-agent) says how to judge it. ## 7. Suggest the agent's settings CatalEx starts every agent with the bare minimum, and never widens it on its own. Work out what this agent needs from two things: what the person asked for, and what the folder shows (its instructions and the files they name). Then tell the person in plain words what the agent can and cannot do now, suggest the changes it needs, and ask. Use the AI tool's structured question tool when it has one (Claude Code: `AskUserQuestion`), otherwise a short numbered list. The tool takes up to four questions with up to four options each; group or split to fit. Ask one question per decision, put the recommended option first and mark it "(Recommended)", and word the options for what this agent will do (name its files or scripts), not a generic list. Access switches (reading files, editing files, the terminal) are one multi-select question; a daily cap is its own question, and so is adding the instructions block to the folder's `CLAUDE.md` (yes or no). Change nothing until they answer; apply only what they agree to. Applying a suggestion without a yes is a mistake even when the agent clearly needs it. What a new agent starts with: | Setting | Starts | In plain words | | --- | --- | --- | | File reading and searching | Off | It can't open the files in its folder | | File editing and creating | Off | It can't change or add files | | Terminal | Off | It can't run commands or scripts | | Web search and fetch, task list, skills | On | It can look things up online | | Connected tools from the person's Claude or Codex account (for example Gmail or Slack) | On | It can use those accounts, as the person has set them up | | Approvals | The folder's own | When it asks before acting, the person decides in CatalEx | | Message cap | None | It answers every message it gets | Read the agent's current settings with `catalex agents tools --agent AGENT_ID` and `catalex agents limits show AGENT_ID`. Suggest from what you found: | You see | Suggest | | --- | --- | | The instructions answer from files in the folder (a menu, notes, a price list) | Read-only file access: Read, Glob and Grep | | The agent keeps notes or updates files | File editing too, after the person agrees | | The agent runs scripts | The terminal; say plainly that it can then run any command in its folder | | Strangers will reach it (a shared link, customers, a public number) | A daily cap, such as 50 a day, and turning off connected tools it doesn't need, since anyone who reaches the agent can ask it to use them | | Nothing it needs is off | No change; say so | For example: "Your bakery assistant answers from menu.md and hours.md, but CatalEx agents start without file access, so it can't read them yet. Shall I turn on read-only access to its own folder? It still can't change files or reach anything outside the folder." File tools reach only the agent's own folder and any extra folders the person added; CatalEx blocks reads outside them, including `..` and symbolic-link escapes. To turn on read-only file access, run `catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep`. The saved change stays `pending` until the agent's next message, so the next chat message in step 6's style proves it. If your release (earlier than 0.1.19) refuses the command for missing flags (`--operation-id`, `--revision` and the rest), run this instead, which keeps every other saved choice and needs `jq` (`/usr/bin/jq` on macOS 15 and later): ```bash AGENT_ID=AGENT_ID catalex agents tools --agent "$AGENT_ID" --json > /tmp/agent-tools.json catalex agents tools --agent "$AGENT_ID" \ --operation-id "read-files-$(date +%s)" \ --revision "$(jq -r '.data.desired_revision' /tmp/agent-tools.json)" \ --inventory-revision "$(jq -r '.data.inventory_revision' /tmp/agent-tools.json)" \ --mcp-server "$(jq -r '.data.desired.enabled_mcp_servers | join(",")' /tmp/agent-tools.json)" \ --terminal-access "$(jq -r '.data.desired.terminal_access' /tmp/agent-tools.json)" \ --approval-mode "$(jq -r '.data.desired.approval_mode' /tmp/agent-tools.json)" \ --builtin-tool "$(jq -r '[.data.desired.enabled_builtin_tools[], (.data.servers[] | select(.group == "builtin" and (.name | IN("Read","Glob","Grep"))) | .id)] | unique | join(",")' /tmp/agent-tools.json)" \ > /dev/null catalex agents tools --agent "$AGENT_ID" --json | jq '.data | {state, desired_revision}' ``` The state reads `pending` and becomes `applied` at the agent's next message. Then ask the file question again in the same chat and compare the answer with the file. Leave editing and the terminal off unless the person agreed. [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) lists every setting. ## 8. Recommend and connect a channel The native chat always works, so it is never the recommended stopping point: an agent is useful once people reach it where they already talk. Recommend one channel from the agent's context, its instructions, tools and the people it serves, and use [the checkpoint workflow](https://docs.catalex.co/channels/agent-workflow.md) for the terminal commands. CatalEx Cloud needs no public address. | Who the agent serves | Recommend | | --- | --- | | Customers, patients or the public (bookings, support, orders) | WhatsApp: a business number, or WhatsApp Personal for a small business run from the owner's phone | | The person themselves, friends or family (a personal assistant, a hobby agent) | [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) links their own number by scanning a QR code (experimental) | | A team or workplace | [Slack](https://docs.catalex.co/channels/slack.md), or [Google Chat](https://docs.catalex.co/channels/google-chat.md) when the team uses Google Workspace | | Anyone who should try it once, with nothing to install | A shared browser link: [Share an agent](https://docs.catalex.co/agents/share-an-agent.md) | [WhatsApp business](https://docs.catalex.co/channels/whatsapp.md) uses a Meta app; the easiest way is the browser "Connect with Meta" flow, otherwise enter the credentials manually. Ask once, with the recommended channel first and marked "(Recommended)", then the other channels, then "Only the CatalEx app for now" last. Describe each option by its outcome for this agent (who can reach it, where, and what that person does), never by its setup. For a joke agent, for example: - **WhatsApp Personal (Recommended):** friends message your number on WhatsApp and the agent replies there; you scan one QR code. - **Shared link:** anyone you send the link to chats with it in their browser, no app or account; anyone holding the link can use it. - **Slack:** your team asks it in Slack channels and direct messages. - **Only the CatalEx app for now:** only you can chat with it, in the app. Never mark the native chat alone as recommended. When the package or the person already named a channel (for example "put it on Slack" or "give me a URL"), use it without asking. When the person declines, keep the native chat and name the channel you recommended as the next step in your report. Go one step at a time, as [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#one-step-at-a-time) says. Take each setup as far as the person's own step, then give them exactly what the command printed. WhatsApp business: `--action connect_meta` prints a `Connect with Meta:` link for the person to open; that browser sign-in is theirs, not a blocker. WhatsApp Personal: `--action link` prints a QR code (or, with `--value phone=+NUMBER`, a pairing code) and waits about 2 minutes for the scan. The person usually cannot see your tool output, so a QR code that stays there cannot be scanned. Ask the person to run the command themselves, so the code appears in their own terminal (in Claude Code: `! catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link`). If they can't, paste the whole QR block into your reply inside a code block, or give them the pairing code. Then read the checkpoint until it reports the linked number. Slack: the app and bot take the agent's CatalEx name exactly, with no proposal or question; `--action connect` prints the app-creation link, the person sends the App ID and Client ID in chat and pastes both secrets into private files you opened for them, and `--action save_credentials --wait` prints the approval link and follows it ([Slack](https://docs.catalex.co/channels/agent-workflow.md#slack)). Google Chat: `--action prepare` prints the console steps. When you run on the person's own computer, open each link the command prints in their browser yourself (`open URL` on macOS, `xdg-open URL` on Linux), say it is open, and still give the link in chat; on a remote computer, or when opening fails, only give the link. Never create the provider app, sign in to it or enter its credentials yourself. To cap the agent as a whole, for example "at most 20 messages a day", use `catalex agents limits set AGENT_ID --day 20` (`--hour` for an hourly cap). It applies at once to every channel, shared links included, even while a messaging setup is unfinished. Set a channel's own access rules and limits (`catalex accounts access`, `catalex accounts limits`) only after its setup has finished; on an unfinished account they fail. Then check the account's access rules and limits and send a real message from the messaging app. A native-chat reply does not prove WhatsApp, Slack or Google Chat delivery. ## 9. Report the result and open the app Report each outcome separately, as observed: installed (`catalex install status`), configured and running (`catalex status`), signed in (the email from `catalex account status`), the agent's name and folder, the files onboarding changed, the native reply, and messaging delivery. If the person declined a channel, name the one you recommended as the next step. Name anything still pending, such as a provider sign-in, the CatalEx Cloud sign-in or a delivery check. Write it in plain words in your reply, with what the person can ask you to do next. Do not write a separate summary document. Then open the app once, with `catalex open`, unless the person asked for no app or for it to stay closed: - **They asked for Slack, WhatsApp or Google Chat:** as the last step of that channel's setup, as soon as it is connected (its `--wait` command exited 0), in the same message that asks them to try the agent there. Do not wait for their test reply. With several channels, open it after the last one. - **Native chat only, or no channel named:** as soon as the agent answered in its native chat, at the end of that turn. Tell them the agent is in the app and the "Setup check" chat holds the test, and that they can return to this session to read the summary. If a step fails, read the error code and its next action, repair it with supported commands and run the same step again. Do not switch providers or recreate accounts quietly. See [Troubleshooting](https://docs.catalex.co/troubleshooting.md). ## Keep CatalEx in the agent's memory Onboarding writes a short CatalEx block into the folder's `AGENTS.md` or `CLAUDE.md`, between `` and ``. The block points back to two places. Whenever you, or a later session in this folder, need to do something with CatalEx, go there instead of installing a skill: - `catalex --help`, and `catalex COMMAND --help`, for the installed release's commands and flags. The `catalex` command updates itself, so its help is always current. - [https://docs.catalex.co/llms.txt](https://docs.catalex.co/llms.txt), the index of every guide. Fetch a guide's raw Markdown by adding `.md` to its address. Leave the block as it is. Everything outside it is the agent's own and stays untouched, and a later `onboard --apply` refreshes the block when it is outdated. ## After setup Once the folder is onboarded, read the person's later requests about "the agent" (what it may read or do, where people can reach it, its limits, removing it) as changes to the CatalEx agent. Do not answer such a request yourself from the folder's files. For each request: 1. Change only what the person asked for, with `catalex`. If you think another setting should change too (for example turning off connected tools for a public agent), suggest it in one sentence with the reason and wait for a yes. Never change it on your own. 2. Check the result in the agent's native chat. 3. Explain what changed in plain words, not how. The person never needs to know the `catalex` commands. ## Update, stop, repair and remove - Update: `catalex update --check`, then `catalex update`. Add `--restart` while CatalEx runs: it stops, updates and starts CatalEx again. - Stop or start: `catalex stop`, then `catalex start`. - Repair: `catalex doctor --fix` restarts CatalEx when it stopped. See [Everyday operation](https://docs.catalex.co/operate.md). - Remove: `catalex uninstall` keeps saved chats and settings. Use `catalex uninstall --purge` only when the person explicitly asks to delete their data. ## Existing installations 1. Run `command -v catalex`. If it prints nothing, start at step 1. 2. Run `catalex version` and `catalex install status`. Install any missing component from step 2. 3. Run `catalex status` and `catalex account status`. A sign-in made in the CatalEx app counts: both read the same sign-in. - Nothing is configured: continue with steps 3 and 4. - Configured but signed out of CatalEx Cloud: run the step 4 command. It reuses the saved setup, signs in and connects. - A saved setup is stopped: run `catalex start`. 4. Reuse a running setup; do not reinstall or reset it. To add another installed provider, run `catalex providers connect codex` (or `claude`). Then continue with step 5 for the new folder. ## Rules and recovery Read `catalex COMMAND --help` for the installed release's flags. Every command accepts `--json` and prints one `catalex.result.v1` result; use it when you need fields. Change configuration and lifecycle only through `catalex`. Do not edit CatalEx's configuration or databases, call its APIs directly or kill its processes. Keep secrets out of chat and command arguments: pass them only as a private file path (mode `0600`) or piped input that the person supplies. Keep the package's guards and its instructions outside CatalEx's marked block. To remove an agent, or messaging accounts whose setup never finished, see [Remove (offboard) an agent](https://docs.catalex.co/agents/add-an-agent.md#remove-offboard-an-agent). Do not delete data, replace a server identity or widen permissions without the person's approval. Before retrying a change whose outcome is uncertain, inspect the original operation. Installation, setup, onboarding and a verified reply are separate outcomes. # Start prompts for your agent The docs and the `catalex` command, which updates itself, are all an agent needs. Paste one of these prompts into Claude Code or Codex, in the folder the agent should work in. Keep the docs link in the prompt: an agent that is only told to onboard does not know where the docs are. To have Claude Code or Codex offer the setup without a prompt, [install the CatalEx plugin](https://docs.catalex.co/getting-started/start-prompts.md#install-the-catalex-plugin). ## Set up CatalEx from nothing For a computer with no CatalEx installed. The agent installs the `catalex` command, signs you in to CatalEx Cloud with Google, onboards its folder and verifies a reply. ```text Read https://docs.catalex.co/getting-started/agent-setup.md and set up CatalEx on this computer. ``` The steps are in [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md). ## Onboard an agent onto CatalEx For an agent you already use, on a computer where CatalEx is installed and running. The agent registers its own folder, so people can reach it in CatalEx, Slack, WhatsApp or Google Chat. ```text Read https://docs.catalex.co/agents/add-an-agent.md and onboard yourself onto CatalEx. ``` The steps are in [Onboard an agent from its own session](https://docs.catalex.co/agents/add-an-agent.md#onboard-an-agent-from-its-own-session). ## Connect an agent package For the agents of a package that has its own setup, such as one from catalex-ai/everyday-skills. Run it after the package's own setup has finished. ```text Read https://docs.catalex.co/agents/agent-packages.md and make this package's agents reachable in CatalEx. ``` The steps are in [Connect an agent package](https://docs.catalex.co/agents/agent-packages.md). ## Install the CatalEx plugin The plugin is optional. With it installed, Claude Code or Codex suggests CatalEx when the person asks to put the agent on WhatsApp, Slack or Google Chat, and runs the setup. It holds instructions and links only, from the public repository [catalex-ai/catalex-plugins](https://github.com/catalex-ai/catalex-plugins), and has two skills: - `connect-agent-to-chat` checks that the agent is a Claude Code or Codex agent on a Mac with Apple silicon, then fetches [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md) and follows it. It adds no steps or rules of its own; where the two differ, the playbook wins. - `open-catalex` runs `catalex open`. When `catalex` is missing, it asks the person, runs the installer from `downloads.catalex.co` and the app opens. | Agent | Install | | --- | --- | | Claude Code | `/plugin marketplace add catalex-ai/catalex-plugins`, then `/plugin install catalex@catalex` | | Codex | `codex plugin marketplace add catalex-ai/catalex-plugins`, then `codex plugin add catalex@catalex` | | Any agent that reads skills | `npx skills add catalex-ai/catalex-plugins` | Then ask the agent, in its folder: "Connect this agent to WhatsApp" (or Slack, or Google Chat), or "Open the CatalEx app". Do not install the plugin during a setup that a prompt above started: it only leads to the same page. ## If a web-fetch tool summarizes the page A fetch tool that summarizes pages drops commands and links. Tell the agent to fetch the raw Markdown instead: add `.md` to any guide's address, for example `curl -fsSL https://docs.catalex.co/getting-started/agent-setup.md`. The index of every guide is [https://docs.catalex.co/llms.txt](https://docs.catalex.co/llms.txt). ## What the agent leaves behind Onboarding writes a short CatalEx block into the folder's `AGENTS.md` or `CLAUDE.md`, between `` and ``. It points the agent back to `catalex --help` and [https://docs.catalex.co/llms.txt](https://docs.catalex.co/llms.txt). A later session in that folder uses those, with or without the plugin. # Folders, instructions and tools CatalEx runs an existing agent in its registered folder. That folder is where the provider finds project instructions, tools, configuration and permitted working files. ## Choose the agent's folder Use an absolute folder path on the computer that runs the agent, such as `/absolute/path/to/support`. If you add an agent without naming a folder, CatalEx creates one named after the agent in its agents folder. You cannot change an agent's folder later: delete and recreate the agent to move it. A folder can hold more than one agent, for example a Claude Code agent and a Codex agent that share the same instructions. Give agents with different instructions or tool access their own folders. For example, a clinic’s doctor agent and patient agent should have separate folders with their own instructions and tool access. Keep private credentials in the package’s intended secret storage rather than copying them into instructions. ## Keep the package’s rules If you installed an agent package, follow its setup instructions first. CatalEx onboarding should preserve its provider, tool permissions and file boundaries. It may add CatalEx integration instructions and settings; it should not replace the package’s own policy. A permission request still needs an answer from the person who receives it. Do not broaden a package’s permissions to make a failed tool call disappear. ## Test observable behavior A saved agent proves that CatalEx knows its folder. A useful reply proves more: ask for a fact from the agent’s tools or files and compare the answer to the source. Test a prohibited request when the package defines restrictions. By default the agent's files and commands stay in its own folder. To let it reach another folder, add it under **Access outside this folder** on the agent's **Permissions** tab; see [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md#choose-built-in-tools-the-sandbox-and-folders). If it cannot find its tool, inspect the provider and folder configuration and start a new native chat after fixing it. Use [troubleshooting](https://docs.catalex.co/troubleshooting.md) to separate a provider login issue from a tool configuration issue. ## Refresh CatalEx-managed guidance After a CatalEx instruction update, explicitly repeat [onboarding for the same folder](https://docs.catalex.co/agents/add-an-agent.md#with-the-cli) to inspect and refresh its marked integration block. Preserve the package’s instructions outside those markers and its existing tool restrictions. Saving [writing preferences](https://docs.catalex.co/agents/writing-preferences.md) alone does not rewrite the folder. Start a new chat when testing updated retained skill assets. ## Tools that serve one person A clinic or customer-service MCP tool may start with a fixed person, for example `clinic --patient demo`. If every chat reuses that value, different people can act on the same records. Check the package’s tool startup before exposing it to messaging. For a Claude Code MCP server that supports a per-person flag, configure its saved routing without editing the package’s files. When you connect the folder in the app, CatalEx notices a tool started for one fixed person and shows *Every chat would act for the same person* on the folder's card, with a **Setting that picks the person** choice when it found more than one. Choose **Use for each chat** to save it; the folder's files stay as they are. The agent's settings offers the same choice after you change its AI provider or name. From the terminal, use: ```bash catalex agents edit AGENT_ID --person-arg clinic=--patient ``` Run `catalex agents list` for the agent ID. Replace `clinic` with the MCP server name and `--patient` with its actual supported person flag. CatalEx starts that server with the chat’s person reference. This maps identity; it does not authorize access to another person’s records. Use `--person-arg none` only when the tool no longer needs that routing. Verify two separate test people cannot see or change each other’s data. ## Native tools and permissions Use [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) to choose which tools the agent may use, whether its commands run in a sandbox, which extra folders it may reach and how its actions are approved. A new MCP server still needs its own package setup and sign-in. The folder's settings and native guards stay in force alongside the choices you save in CatalEx. ## Messages between agents On the agent's settings, the **Permissions** tab has **Message other agents** in its **CatalEx** card. Choose only the agents this one needs to reach. The list includes agents on this computer and, while connected, agents on your other computers. Changes apply from this agent's next message. See [Messages between agents](https://docs.catalex.co/agents/delegation.md) for the terminal commands, delivery states and a test workflow. # Tools and permissions An agent uses the tools its Claude Code or Codex setup supplies. CatalEx lets you narrow that set for one agent: how its actions are approved, whether it runs commands in a sandbox, which folders it may reach, and which built-in and connected tools it may use. The folder's own denials, mandatory approvals, hooks and platform restrictions always stay in force. ## In the app Choose **Agents**, then **Settings** on the agent's tile, then the **Permissions** tab. Every change saves on its own and the page shows **Saved** at the top. The tab holds these cards, each collapsible; a collapsed card says how many of its rows are on, for example *3 of 5 on*. | Card | What it holds | | --- | --- | | **Approvals** | How the agent's actions are approved | | **CatalEx** | **Share media**, **Charts**, **Interactive cards** and **Message other agents** | | **Claude Code tools** or **Codex tools** | The provider's built-in tools, the sandbox and extra folders | | **Connected tools** | One row per tool server, with a checkbox for each of its tools | The **CatalEx** card is covered in [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md#choose-charts-and-interactive-cards) and [Messages between agents](https://docs.catalex.co/agents/delegation.md). The rest of this page covers the other three. ### Choose approvals In the **Approvals** card, open the dropdown and choose one: | App choice | CLI value | Behavior | | --- | --- | --- | | **Use global settings** | `inherit` | Keep the AI tool's own approval settings | | **Always ask** | `manual` | Ask a person before actions that need approval | | **Agent recommends** | `automatic` | Let Claude Code decide within its native guards; not offered for Codex | | **Always approve** | `none` | Never ask: the agent runs in its CLI's full-access mode and can do anything this computer account can | | **Always deny** | `deny` | Never ask anyone, the owner included: tools you allowed run and anything else is refused | A new agent starts on **Use global settings**. CatalEx never chooses **Always approve** or **Always deny** for you. A choice the AI tool cannot offer in this setup is disabled, with the reason under the card. :::warning While **Always approve** is chosen, the page shows: *Risky: with no approval, the agent can run any command and change any file this computer account can without asking, and anyone who can message it can ask it to.* Use it only for an agent whose every possible sender you trust. ::: With **Always deny**, the page shows *Never asks. Tools you allowed run; anything else is refused.* Use it for an agent that must never raise an approval request in any chat. Changing the approval choice does not cancel a running turn when it widens approvals, that is, a move to **Always approve**, or from **Always ask** to **Agent recommends**: - **Claude Code** takes the new choice at once. Under **Always approve** it allows every permission request of the running turn from then on, including requests already waiting, so they no longer need an answer. Deny rules and tools you turned off still apply. - **Codex** finishes the running turn under the old choice. The next message then starts the session under the saved choice and continues the same conversation. Any other change, such as a stricter choice, restarts the agent's session before its next turn. Under **Always approve**, the agent never asks. A move to another AI tool that cannot enforce **Always deny** is refused and nothing is saved. ### Choose built-in tools, the sandbox and folders The **Claude Code tools** or **Codex tools** card lists the provider's built-in tools as checkbox rows. A row with several tools has a chevron: expand it to turn each tool on or off, or tick the row to switch them all. Claude Code offers these rows; Codex offers the ones marked below. | Row | What it lets the agent do | | --- | --- | | **Sandbox commands** (both) | Run its programs and commands in the AI tool's sandbox, kept to the folders it can use. On for a new agent | | **Terminal** (both) | Run programs and commands. Claude Code splits it into **Run programs and commands** and **Run programs in the background** | | **Files** (Claude Code) | **Read files**, **Find files**, **Search in files**, **Edit files**, **Create files** and **Build Python notebooks**, in the folders it can use | | **Internet access** (both) | **Search the web**, **Open web pages** (Claude Code only) and **Programs and commands**, which lets the programs it runs reach the internet | | **Look at images**, **Goals** (Codex) | Open images in its folders; keep a goal across a long task | | **Create subagents** (both) | Start helpers that get the same tools as this agent. Claude Code splits it into **Start helpers**, **Follow up with helpers** and **Stop helpers** | | **Task list** (both) | Keep a private checklist on long tasks | | **Skills**, **Scheduling**, **Notifications**, **Data from connected tools**, **Separate copy**, **Claude sharing** (Claude Code) | Use skills; schedule work for later; show notifications; read documents that connected tools share; work in a separate copy of a git repository; publish pages or send files outside CatalEx | A new agent starts with **Sandbox commands** on, **Programs and commands** under **Internet access** off, **Terminal** off, and the web, task list and skills tools on (Codex: web search, images, task list and goals). Turning **Terminal** on shows *Risky: with terminal access on, the agent can run any command on this computer.* The **Files** row (Claude Code) and the card itself (Codex) end with **Access outside this folder**. By default the agent's files and commands stay in its own folder. To add another folder: 1. Tick **Access outside this folder**, or expand it and choose **Add folder**. 2. Pick the folder in the file dialog. This works only in the CatalEx app. 3. To stop offering a folder, choose **Remove folder** beside it, or untick the row to remove all of them. A tool no row names is listed under **Other · New**, off, so you can review it before turning it on. ### Choose connected tools **Connected tools** holds the tool servers from the agent's folder, its plugins and your account's connectors. Expand a server to turn single tools on or off, or tick the server to switch them all. A line under each server says where it comes from, for example *From your Claude account*, and whether you must sign in to it in Claude Code or Codex first. A server marked *CatalEx can't limit this* is shown as it runs and can't be changed here. The page lists the agent's tools in the background when you open it, so you do not need to refresh. New tools appear unselected. Choose **Refresh connected tools** (the circular arrow) to import what the folder's configuration turns on. Selecting a server does not install it, sign it in or grant it permissions beyond its native settings. ### Check that the choices apply A change is stored first and applied when a session starts or resumes. Under the agent's name the page may show *Waiting to apply tool permissions.* and then *Tool permissions applied.* Then test a permitted action and a deliberately refused one in a chat. If a chat finds a tool source the saved choices do not list, it is refused and the page says *A chat found a tool source these tools don't list. Refresh tools, review them and save to use it.* Review the cards and change a checkbox to save. If a save is refused after you switch AI tool, the page says *PROVIDER cannot keep this agent's tool limits.* with **Review tool access**; nothing is saved. A Claude Code agent whose sandbox cannot start (for example on Linux without the sandbox tools, or native Windows, which has none) fails with `AGENT_SANDBOX_UNAVAILABLE`. Turn **Sandbox commands** off or fix the computer. ## With the CLI Read the saved policy and the discovered tools: ```bash catalex agents tools --agent AGENT_ID catalex agents tools --agent AGENT_ID --discover ``` Reading starts nothing. `--discover` may start the agent briefly, without a prompt, to list every tool source its chats load, which starts its tool servers. It never signs in or grants trust. One flag is enough for a change. CatalEx reads the saved settings, keeps every choice you leave out, generates the operation ID and sends the complete request, then prints the operation ID: ```bash catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep catalex agents tools --agent AGENT_ID --builtin-tool-off Edit,Write catalex agents tools --agent AGENT_ID --terminal-access off --approval-mode manual catalex agents tools --agent AGENT_ID --sandbox on --command-internet off --add-folder /absolute/path/to/shared catalex agents tools --agent AGENT_ID --tool-off SERVER_ID:delete_file ``` - `--builtin-tool-on NAMES` and `--builtin-tool-off NAMES` add built-in tools to, or remove them from, the saved selection. A name is the tool's own name, such as `Read` or `Glob`, or an inventory ID from the `servers` list. `--builtin-tool NAMES` replaces the whole selection instead (an empty value keeps none) and cannot be combined with the other two. Leaving all three out keeps the saved choice. A new agent starts with only the web tools, the task list and skills on; file tools, the terminal, subagents and the rest are off. - `--mcp-server` takes optional server IDs, repeated or comma-separated. The list is complete: optional servers you leave out of an explicit flag are turned off, and `--mcp-server ''` turns off every optional server. Left out, it keeps the saved choice. Required communication stays on. - `--terminal-access` is `inherit`, `off` or `on`. `--approval-mode` is `inherit`, `manual`, `automatic`, `none` or `deny`. Terminal tools follow `--terminal-access`. - `--sandbox on|off` runs the agent's commands in its CLI's sandbox. `--command-internet on|off` lets those commands reach the internet. - `--add-folder /absolute/path/to/shared` and `--remove-folder PATH` change the extra folders, repeated or comma-separated. A folder must be an absolute path of an existing directory, not the agent's own. - `--tool-off SERVER_ID:TOOL` and `--tool-on SERVER_ID:TOOL` turn one tool of a selected server off or on. To be strict, give `--revision`, `--inventory-revision`, `--mcp-server`, `--terminal-access` or `--approval-mode` yourself: a stale revision is then refused, which means someone changed the policy or the tools since you looked. Read again and review rather than forcing an old inventory. An agent with no saved tool settings yet needs those flags given; run `--discover` first. After a lost reply, repeat the same command with the printed `--operation-id`, `--revision` and `--inventory-revision`. `--apply` replays a complete saved operation after a lost reply; it does not make a pending change take effect. **Expected result:** a saved change reads `state` `pending`, `code` `TOOLS_APPLICATION_UNCONFIRMED` and `next_action` `apply_tools` until the agent's next message. The agent loads its saved tools when it opens a session, and CatalEx marks them applied once that session proves them. The one step is to send the agent a message, for example `catalex chats send CHAT_ID --wait`, and read `catalex agents tools --agent AGENT_ID` again. Saving again does not make it take effect sooner. Pending, failed or unsupported is not success. ### Turn on read-only file access A new agent cannot read its folder's files. To let it read and search them without letting it edit anything, turn on only the built-in tools Read, Glob and Grep. They reach only the agent's folder and its extra folders ([how each AI tool enforces it](https://docs.catalex.co/agents/tools-and-permissions.md#how-each-ai-tool-enforces-it)). Ask the person first. ```bash catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep ``` The agent must have had one chat first, because Claude Code reports its built-in tools only then; onboarding and the setup-check chat count. The state starts as `pending` and becomes `applied` at the agent's next message. Ask the agent about a file again after that message. An earlier release than 0.1.19 refuses this command for missing flags (`--operation-id`, `--revision` and the rest); [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md#7-suggest-the-agents-settings) has a script for it. ## How each AI tool enforces it - **Claude Code** gets the sandbox, folder limits and per-tool denials through its own settings for each session. Reads and writes outside the agent's folder and its extra folders are blocked, and so are `..` and symbolic-link escapes. With the sandbox on, the home directory outside those folders is also unreadable to its commands. - **Codex** gets a workspace-write sandbox with the extra folders writable, even under **Always approve**. A folder that already uses a Codex permission profile keeps it. - A selected server marked *Not loaded* does not stop the agent: it answers without that server. Required CatalEx tools must load. - A policy saved before these choices existed keeps its earlier behavior until you save it. ## Change isolation or AI tool without losing choices Changing a Claude Code agent's isolation (`catalex agents edit AGENT_ID --isolation folder`) or its AI tool carries the saved choices into the new setup. A server with the same source, native name and launch command keeps its selection; a new server stays unselected for review; a server no longer offered drops out. Terminal and approval choices are kept. A move that cannot keep a restriction such as **Always deny** fails with `AGENT_TOOLS_NOT_CARRIED`. # Engagement and writing These preferences shape how an agent writes its replies. They do not grant tool permissions or replace the folder's own instructions. ## In the app Choose **Agents**, then **Settings** on the agent's tile. On the **General** tab, the **How it replies** card holds: | Control | Choices | What changes | | --- | --- | --- | | **Chattiness** | **Low**, **Medium**, **High** | How often the agent joins in and how much it says | | **Tone** | **Default**, **Professional**, **Friendly** | The phrasing of the agent's own prose | | **Humanizer** | **Enabled**, **Disabled** | Writing guidance that makes replies read naturally | On the **Permissions** tab, the **CatalEx** card holds **Share media**, **Charts** and **Interactive cards**. Each change saves on its own and the page shows **Saved**. The same choices appear in the **Set how it replies** step when you [add an agent](https://docs.catalex.co/agents/add-an-agent.md#in-the-app). When nothing has been set, an agent uses **Medium**, **Default** tone and Humanizer **Disabled**, with charts, interactive cards and media sharing allowed. **Default** tone keeps the agent's existing persona and writing instructions. **Professional** is clear and polite; **Friendly** is warm and approachable. Humanizer keeps facts, uncertainty, numbers, quotations, code, links, chart data and original files unchanged. Turning it off keeps chat history. ## With the CLI Name only the preferences you change; the others keep their saved values: ```bash catalex agents behavior --agent AGENT_ID catalex agents behavior --agent AGENT_ID --engagement-frequency low catalex agents behavior --agent AGENT_ID --tone professional --humanize-outputs=false ``` The first command shows the saved preferences and whether they have been applied. The CLI flag for Chattiness is `--engagement-frequency`. ## Choose chattiness | Chattiness | Expected conversation | | --- | --- | | Low | Replies only to direct questions, in a few words, with no greetings back or follow-up questions. Otherwise it reacts or stays silent. | | Medium | Replies when a message invites one, about as long as yours. Thanks, reactions and "ok" end the exchange. | | High | Warm and chatty, with a natural follow-up question when it fits. Thanks, reactions and "ok" still end the exchange. | These are loose preferences, with no message quota. A Low reply can still be detailed or include a chart or file when a question needs it. Essential questions, approvals, failure reports and requested detail are always sent. ## What a quiet agent does At every level the agent writes like a person rather than answering every message: - **Silence.** After a message that needs no answer, such as "ok" or a goodbye, the agent can end its turn with the exact word `NO_REPLY`. CatalEx then sends nothing and shows no error. The word is matched exactly: `NO_REPLY thanks` is delivered as written, and an agent that ignores the rule still sends its text. - **Reactions.** After a closing message such as "Sounds exciting", "Haha" or thanks, the agent can add one emoji reaction chosen for the message and how close the person is, instead of text. A bare "ok" gets nothing, and so does a closer right after a reaction the agent already sent. It never uses 👀 and it varies its emoji. CatalEx's own automatic 👀 status marker is separate and unchanged. A reaction never replaces a result the person is owed. ## Override chattiness for one channel A messaging channel can use its own chattiness while tone, Humanizer, rich formats and media sharing stay the agent's. 1. Open the agent's settings and choose the **Channels** tab. 2. Choose the channel's row, for example the Slack row, to expand it. 3. Set **Engagement depth** to **Low**, **Medium** or **High**, or **Use agent default** to follow the agent. 4. Choose **Save**. **Cancel** discards the change. For example, an agent can use Medium by default and Low in a busy Slack workspace. Native chats have no row on this tab; use the CLI. Take the channel ID from `catalex channels list`: ```bash catalex channels behavior --channel CHANNEL_ID --engagement-frequency high catalex channels behavior --channel CHANNEL_ID --engagement-frequency inherit catalex channels behavior --channel CHANNEL_ID --json ``` `inherit` removes the override. On a WhatsApp Personal number that several agents share, the depth is saved per agent: use `catalex accounts agents engagement set ACCOUNT_ID --agent AGENT_ID low|medium|high|default`. The agent receives only the effective preferences, not which messaging service set them. When charts are allowed, it sends the same chart data to every client and CatalEx adapts the presentation to each. See [WhatsApp reply formats](https://docs.catalex.co/channels/whatsapp-reply-formats.md). ## Choose charts and interactive cards In the **CatalEx** card on the **Permissions** tab, turn **Charts** and **Interactive cards** on or off independently. Both start on. With both off, replies are text only; essential questions can still offer answer choices. - **Charts** expands to **Send charts when asked** and **Suggest charts**. The second lets the agent offer a chart on its own when one would help. An explicit text-only request stays text only. - **Interactive cards** lets the agent send cards with buttons, choices and forms people can answer. With the CLI: ```bash catalex agents behavior --agent AGENT_ID --charts not_allowed --interactive-cards allowed ``` Turn charts off when you want comparisons as text or short lists. Turn cards off for ordinary text, lists and essential question choices instead of rich cards and forms. A format that is off is no longer offered to the agent and is refused if the agent tries to send it anyway. An allowed format uses what the chat supports; it does not add a chart type or card the setup lacks. These switches steer what the agent does; they never hide anything. Whatever the agent sends, a chart, a card or a file, always shows in the app and on the web page. Earlier charts and cards stay in history. The CLI has no flag for **Suggest charts**. ## Choose whether the agent shares media Turn **Share media** off in the **CatalEx** card on the **Permissions** tab to stop the agent sending files, images and audio through CatalEx, including an earlier attachment it tries to share again. The agent says plainly that it cannot share files here and gives useful text instead, such as a summary or the relevant values. CatalEx refuses outgoing attachments before storing or delivering them. People can still upload files, and the agent can read earlier attachments. ```bash catalex agents behavior --agent AGENT_ID --share-media not_allowed ``` Turn it on, or use `--share-media allowed`, to restore outgoing media. An explicitly requested original file, such as a downloadable image or PDF, needs it. Charts and cards follow their own switches, not this choice. Replies and files people already received are unchanged. ## When preferences apply A running chat picks up saved preferences at a safe point, after current work and any open question finish. A chat that has not started yet uses them from its first message. If a control is missing, update CatalEx; an older computer refuses unsupported flags instead of ignoring them. If a chat cannot load the new preferences, it keeps its earlier settings and the app shows *NAME's preferences were saved but could not be applied. Open the agent's settings to review.* Repair the reported cause, change the preference again, and check `catalex agents behavior --agent AGENT_ID`. One chat's success does not confirm the others; different channels can legitimately apply different chattiness. ## Test an existing agent Changing a writing preference does not rewrite the agent folder or need new channel credentials. If the folder still has an older CatalEx-managed instruction block, refresh it with [agent onboarding](https://docs.catalex.co/agents/add-an-agent.md#with-the-cli): inspect the same folder, review the findings, then repeat with `--apply`. Keep its provider, model, permissions and text outside the CatalEx markers. Do not delete the agent or recreate its messaging account to update guidance. After a managed skill update, start a new chat for the same agent. For a messaging conversation, delete the chat in CatalEx so the person's next message starts a new one; messages in the messaging app stay, and sending `/new` in a regular WhatsApp chat does not reset it: ```bash catalex accounts chats list ACCOUNT_ID --json catalex accounts chats delete ACCOUNT_ID CHAT --expected-session SESSION_ID ``` A preference-only change applies in the existing chat at a safe point. Try a longer task with a meaningful intermediate milestone, a simple acknowledgement, and a comparison of at least three values. Check cadence, tone, the answer itself and the chart values separately. Open the receiving client to check the reply, files and previews. # Messages between agents One agent can pass a message to another agent about one of that agent's people. For example, a scheduling agent can ask a patient's agent to offer a new appointment time. The receiving agent decides what to say to its person under its own instructions. The flow is **sender → receiving agent → person**. Agent messaging is off by default and works in one direction only. You choose which agents a sender may message. ## In the app 1. Choose **Agents**, then **Settings** on the sender's tile, then the **Permissions** tab. 2. In the **CatalEx** card, expand **Message other agents** and tick only the agents the sender needs. Each is marked **On this computer** or **On your other computers** (the second while connected). An agent can message at most 20 others, and one that already messages this agent is disabled. 3. The change saves at once and applies from the sender's next message. Once the sender has a list, the same row shows **Messages to other agents**: each message with the receiving agent, the person and its state, newest first. Choose a row for its details, **Show older** for more, or **Message another agent** to send one yourself. Pick the agent, the person (one of its native chats) and the text. To get the person reference for the CLI, open the receiving agent's native chat. While some agent can message that agent, its header shows **Person ref** `ct_…` with **Copy person ref** and the tip *Other agents use this to message this person through this agent.* A chat without a reference, or an agent that nothing can message, shows neither. To retry after a lost answer or a retry-later refusal, choose **Send again**; the same message is never delivered twice. ## With the CLI ```bash catalex agents list catalex agents edit SENDER_AGENT_ID --delegate-to RECEIVER_AGENT_ID ``` `--delegate-to` replaces the sender's whole list; separate several IDs with commas. `--delegate-to none` clears it. An agent cannot message itself, and a removed or unavailable agent receives nothing. Avoid reciprocal or chained routes: a received message cannot loop back through other agents. ## Send and follow a message The agent sends these messages itself with its CatalEx tool. You can send one on its behalf, from the app as above or from a script: ```bash catalex delegations send SENDER_AGENT_ID --to CONTACT_REF --text "The appointment moved to 3 pm." --idempotency-key appointment-42-moved ``` `--to` is the receiving agent's reference for the person (`ct_...`), read from that agent's chat. Use `--to-chat CHAT_ID` instead to name the person by the receiving agent's native chat. Reuse the same `--idempotency-key` for every retry of the same message; a retry never sends it twice. ```bash catalex delegations list SENDER_AGENT_ID catalex delegations status SENDER_AGENT_ID MESSAGE_ID ``` The **Messages to other agents** list shows each state in the app, and the CLI prints the status: | State | CLI status | Meaning | | --- | --- | --- | | **Waiting** | `queued` | Waiting for the receiving agent's turn | | **With the agent** | `delivered_to_agent` | The receiving agent has the message and is working on it | | **Done** | `turn_done` | The receiving agent finished its turn | | **Not delivered** | `held` | The receiving agent's chat was busy or recovering; send it again to retry | | **Failed** | `failed` | The receiving agent's turn did not finish | **Done** means the receiving agent handled the message, not that the person received a reply. Check the receiving conversation and the actual delivery to the person, especially for appointment notices and other time-sensitive messages. A refusal keeps its code, such as `DELEGATE_NOT_ALLOWED`, `DELEGATE_TARGET_UNKNOWN` or `DELEGATE_ROUTE_UNAVAILABLE`. ## Test before using it for real people Use test conversations for both roles. Send one allowed message, confirm the receiving agent's reply to its person, and check that a sender without permission is refused. Keep each role in its own folder with its own tool permissions, and make sure [per-person tools](https://docs.catalex.co/agents/folders-and-tools.md#tools-that-serve-one-person) select the right identity for each chat. Do not copy private details into another person's chat to work around an unknown identity. To message a person directly rather than through another agent, see [Messages the agent starts](https://docs.catalex.co/agents/proactive-messages.md). # Messages the agent starts By default an agent only replies. You can let it start a message to one of its people on its own, for example a reminder or a "your report is ready" note, and optionally let it message people who never wrote to it. ## In the app Choose **Agents**, then **Settings** on the agent's tile. On the **General** tab, the **Starting chats** card has two switches, both off for a new agent: | Switch | What it allows | | --- | --- | | **Send without being asked** | The agent can message a chat on its own, such as a reminder. Turning it off also stops sends that are queued or held. | | **Message new people** | The agent can start a chat with someone who never wrote to it. Available only while **Send without being asked** is on. | Each switch saves at once. With the CLI: ```bash catalex agents edit AGENT_ID --proactive-send on catalex agents edit AGENT_ID --message-new-people on ``` :::warning Getting a person's consent under the messaging app's policy is your responsibility. CatalEx does not check it. ::: Once allowed, the agent sends these messages itself with its `relay_send` tool. CatalEx delivers exactly the text it is given. ## Set limits These limits are on by default. In the app, open the agent's **Limits** tab. **Sends without being asked** is in the **Hourly limits** and **Daily limits** cards, and **New people messaged** is in **Daily limits**. An empty field shows the default. The same limits with the CLI: | Limit | Default | Flag | | --- | --- | --- | | **Sends without being asked**, per hour | 20 | `--proactive-hour` | | **Sends without being asked**, per day | 100 | `--proactive-day` | | **New people messaged**, per day | 10 | `--proactive-new-people-day` | ```bash catalex agents limits set AGENT_ID --proactive-hour 10 --proactive-day 50 catalex agents limits show AGENT_ID ``` `none` restores a default. An hour is the last 60 minutes and a day the last 24 hours, so no time zone applies; see [access and limits](https://docs.catalex.co/settings/access-and-limits.md). A send over a limit is refused with *The agent reached its limit on messages sent without being asked.* ## Send a message with the CLI Sending is a CLI action; the app has no button for it. You can send on the agent's behalf, for example from a scheduled job: ```bash catalex messages send --agent AGENT_ID --to CONTACT_REF --text 'Your report is ready' --idempotency-key report-1 ``` - `--to` names the person by contact reference. Leave it out only when the agent has exactly one person. - To message someone new, use `--new-recipient` instead: a phone number in international format for WhatsApp (`+15551234567`), or the person's workspace email for Slack. The agent needs **Message new people**. The result names the person's reference; use `--to` with it from then on. - Use a new `--idempotency-key` for each message, and reuse it only to retry the same one. - Add `--app` or `--account` when more than one app or account reaches the person. Then check the outcome: ```bash catalex messages status --agent AGENT_ID SEND_ID ``` ## Outcomes | Result | Meaning | Exit code | | --- | --- | --- | | `queued` | Recorded; no answer from the app yet. Check it later with `messages status`. | 0 | | `delivered` | The app accepted the message. | 0 | | `held` | Outside the app's delivery window. It is not sent now and must not be sent again; it goes out when the person next writes. | 0 | | `refused` | Not sent, for example because sending is off, a limit is reached or the person is unknown. The output names the code and the command that fixes it. | 1 | | `failed` | The app did not accept the message. | 1 | If **Send without being asked** is off, the command reports *The agent may not send without being asked.* (`PROACTIVE_SEND_DISABLED`); fix it with `catalex agents edit AGENT_ID --proactive-send on`. WhatsApp only accepts a message outside its delivery window through an approved template with exactly one body parameter. Register the template your WhatsApp app approved, or the message is held until the person writes: ```bash catalex accounts template set ACCOUNT_ID --name agent_message --language en catalex accounts template show ACCOUNT_ID ``` Google Chat and WhatsApp Personal cannot start a conversation with someone who never wrote to the agent. ## What people see in the chat In the app, a message the agent started is marked under the text: *Sent without being asked*, *Waiting for them to write* while it is held, or *Not delivered* if it failed. Test with your own number or account first: allow sends, send one message with the CLI, confirm it arrives, then check `messages status` reports `delivered`. To pass a message to another agent instead of a person, see [Messages between agents](https://docs.catalex.co/agents/delegation.md). # Share an agent A shared link puts one agent on a public web page, such as `https://app.catalex.co/a/ID`. Anyone who has the address can chat with the agent in a browser. They need no CatalEx, no sign-in and no Slack or WhatsApp account. Use it to let customers, colleagues or friends reach an agent without setting anything up. Before you start: - CatalEx is signed in to CatalEx Cloud (see [Get the app](https://docs.catalex.co/getting-started/app.md)). - The agent exists on this computer ([Add an agent](https://docs.catalex.co/agents/add-an-agent.md)). - This computer stays on and connected while people chat. When it is offline, the page shows the agent as offline and its message box is disabled. ## In the app 1. Open **Agents** and choose **Settings** on the agent's tile, then the **Channels** tab. Choose **Add channel**. (On the tile you can also click a muted app logo or use **Add channel**.) 2. In the *Add new channel* dialog (*For NAME*), choose the **Shared link** tile. The link is created at once, with nothing to enter. A notice says *Shared link added. Copy it from the Channels tab.* 3. In the Channels tab, find the **Shared link** row. It reads *You can disable this any time* and shows the address with **Copy** and **Unlink**. Choose **Copy**; the button says *Copied* and the address is on your clipboard. 4. Send the address to the people you want to reach the agent. An agent has one shared link. Each visitor's chat appears under the agent's **Link** channel in the agent's chat view, titled with the first words of its first message and marked *Visitor* beneath it, because a visitor has no name or address. Until you select one, the pane says *Visitors’ chats appear here. Select one to read it.* You read visitor chats there; you do not answer them, the agent does. To stop sharing, choose **Unlink** on the row and confirm *Unlink this shared link?*. The address stops working at once, open chats on it end and the link cannot come back. Adding a shared link again makes a new address. Deleting the agent also ends its link. If the row shows no address, CatalEx cannot tell the address of the service this computer is connected to. It never guesses one, so **Copy** stays disabled until it can. ## With the CLI 1. Find the agent's ID: ```bash catalex agents list ``` 2. Create the link: ```bash catalex channels add --agent AGENT_ID --type share_link ``` Expected: a line `Shared link: ADDRESS`. With `--json`, `data.page_path` and `data.address` hold it. A second link for the same agent is refused with `AGENT_ALREADY_BOUND`, and the message names `catalex channels remove CHANNEL_ID`. 3. Show the address again. It is in the ADDRESS column (`--json`: `page_path` and `address`): ```bash catalex channels list --agent AGENT_ID ``` Signed out, or when the service cannot be read, the column is empty. 4. Unlink it. This asks nothing first: ```bash catalex channels remove CHANNEL_ID ``` Expected: `Unlinked Shared link CHANNEL_ID of AGENT.` The address stops working at once. Creating a link needs CatalEx Cloud. Without it, CatalEx refuses and gives the reason. The reference for each command is in the [CLI reference](https://docs.catalex.co/reference/cli.md). ## What the person who opens the link sees There is nothing to accept or install. Opening the address shows the chat page straight away: - The agent's picture and name, with **Online** or **Offline**. When it is offline, the message box says *Away right now*. - A message box with **Attach files**, **Record voice message** and **Send message**. A recording shows **Discard recording** and **Send voice message**. If recording is unavailable, the page says *Recording is unavailable here. You can attach an audio file instead.* - A theme button (**Match system**, **Light** or **Dark**) and **Clear chat**, both beside the agent's name. **Clear chat** asks *Are you sure you want to refresh this chat? Your messages will be cleared.* and erases the visitor's messages at once. - **Load earlier messages** for older messages still kept. - At the bottom, *Want to build your own twin?* with **Download CatalEx**. An address that was unlinked, never existed or belongs to a deleted agent shows *Oops, this doesn’t look like a valid link*. All three look the same. ## What to know - **Each visitor has a private chat.** The browser holds a random visitor key, so the same browser comes back to the same chat and nobody sees another visitor's messages. A new browser, or a cleared one, starts a new chat. - **Messages are kept for 24 hours**, counted from each message, then removed with their files. Your agent's own message limits apply to each visitor as on any channel. A visitor who is refused sees *This chat has hit limits set by the author. Please try again later.* - **Visitors answer questions but never decide permissions.** When the agent needs a permission, the page says *NAME needs the owner's OK to …* and you decide in CatalEx ([Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md#questions-and-permissions)). An agent set to **Always deny** refuses without asking anyone. - **Anyone with the address can use the agent.** Share it only with people you trust with the agent's tools, and unlink it when you are done. File tools reach only the agent's own folder and its extra folders, never the rest of the computer. Set the agent's **Permissions** and **Limits** first ([Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md)). # Connect an agent package An agent package is a set of agents, such as the assistants in catalex-ai/everyday-skills, that has its own setup. This page is the playbook for connecting such a package to CatalEx so people can reach its agents in native chats, Slack, WhatsApp or Google Chat. A package's setup instructions can point an AI agent here; so can a person who asks their agent to "connect this to CatalEx". Fetch this page as raw Markdown with `curl -fsSL https://docs.catalex.co/agents/agent-packages.md`, and the pages it links the same way (add `.md` to the address). > **Three rules; read them before anything else.** > > 1. **Setup and onboarding need no asking:** the person asked for them. Use `--preset cloud` unless they ask otherwise; their only steps are the sign-ins in their browser. **Ask before changing what the agent may do or who can reach it** (file access, connected tools, web, channels, message caps): suggest it, then stop and wait for a yes. > 2. **Open the app once the agent is ready, not before.** Never open the CatalEx app before or during the install, sign-in or setup (it can get stuck): pass `--no-launch` to the installer and to `catalex setup`. Then run `catalex open` once, unless the person asked for the app to stay closed: for a channel, as soon as it is connected, in the message that asks them to try the agent there; with native chat only, as soon as the agent answered in its native chat. Write the summary in chat; write no summary document (no artifact, Sites page or file). See [step 9 of agent setup](https://docs.catalex.co/getting-started/agent-setup.md#9-report-the-result-and-open-the-app). > 3. **Never message a real person or number to test.** Test only in a CatalEx native chat. **When an agent package's setup instructions point you here, connecting its agents to CatalEx is part of that setup: do it now, without asking whether the person wants it, unless they said not to.** Installing CatalEx is expected. Native chats always work; for each agent also recommend the channel its people use (Slack, WhatsApp, WhatsApp Personal or Google Chat), chosen from the agent's context as [Connect channels](https://docs.catalex.co/agents/add-an-agent.md#5-connect-channels) says, unless the package or the person already named one. Run this **after** the package's own setup has finished and its agents work on their own. It adds CatalEx around them and never changes what the agents do. Every step is a terminal command you run yourself; the person only answers a few questions, signs in where a provider needs them, and approves Slack or WhatsApp in those apps. ## For package authors: the line to include Add this to the end of your agent's setup instructions: ```markdown When setup is finished, make these assistants reachable in CatalEx by following https://docs.catalex.co/agents/agent-packages.md (read all of it; it installs CatalEx when missing). Agent folders: . Channels: the channel these assistants' people use, for example WhatsApp (native chats always work). ``` Name every agent folder: CatalEx starts each agent in its folder, so that folder must hold the agent's instructions and tool settings. ## Rules - Use only the installer and `catalex` commands. Never edit CatalEx's configuration or databases, call its APIs, or start or stop its processes by hand. - Ask the person only what needs them: which channel, with your recommendation first, and a provider sign-in. Decide everything else. - Never ask for, print or pass a secret on a command line. Secrets reach `catalex` only as a private file path (mode `0600`) the person creates, or through the provider's own sign-in. - Speak in the package's voice. If the package's instructions say to hide commands and technical words from the person (as everyday-skills do), run everything silently and report outcomes in plain words. - Install no skill or plugin for CatalEx. The pages linked here and `catalex --help` are everything you need. The command reference is the [CLI reference](https://docs.catalex.co/reference/cli.md); fetch it as raw Markdown at `https://docs.catalex.co/reference/cli.md`. ## 1. Is CatalEx already running? ```bash command -v catalex && catalex status --json ``` - `catalex` is present and `status` shows `native_chat` (`browser` on an older CatalEx) and `agent` as `ready`: go to step 3. - The CatalEx app is installed but not set up: ask the person to finish its setup window, or continue with step 2 from the terminal. - Otherwise: step 2. ## 2. Install and set up CatalEx Follow steps 1 to 4 of [Set up with an AI agent](https://docs.catalex.co/getting-started/agent-setup.md). The setup is CatalEx Cloud: ```bash catalex setup --preset cloud --native-providers PROVIDER --start --no-launch ``` Native chats work as soon as it finishes; connect the recommended channel in step 4, one step at a time as [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#one-step-at-a-time) says. `PROVIDER` is the agent package's runtime (`claude` or `codex`, as its launcher uses). Setup reuses saved answers, so rerunning a command after a fix is safe. Run it yourself, in the background or with a long timeout: it prints a Google sign-in link and waits up to 10 minutes while the person completes it in their browser. If it stops with `DEVICE_NOT_TRUSTED`, the person trusts this computer in the CatalEx app's device list (or runs `catalex devices trust CLIENT_ID` on a trusted device); then run the same setup again. ## 3. Respect the package's own rules first Before changing anything, read the package's own setup, security and privacy notes. The package's rules win over this page: - If the package forbids changing its agent folders' permissions or settings, or its launcher isolates its agents (for example `--setting-sources ""`, `--strict-mcp-config`, `--tools`), never edit their settings, tools or guard scripts. For Claude Code agents, `catalex agents onboard --apply` chooses folder isolation, which runs them the way their launcher does and leaves the folder as it is. For Codex agents, tell the person the package needs a CatalEx-ready mode from its authors. - If the package offers its own CatalEx mode or runtime, use that instead of step 4. - Never weaken a guard, allowlist or hook to make an agent reachable. ## 4. Onboard each agent For every agent folder the package names, follow [Onboard an agent from its own session](https://docs.catalex.co/agents/add-an-agent.md#onboard-an-agent-from-its-own-session), steps 2 to 7. Its core is one command, which checks the folder, repairs only the folder's own files and saves the agent: ```bash catalex agents onboard --folder FOLDER --name NAME --agent PROVIDER --json catalex agents onboard --folder FOLDER --name NAME --agent PROVIDER --apply --json ``` For a package whose launcher isolates its Claude Code agents it chooses folder isolation by itself (step 3). Then recommend a channel and add the one the person picks ([connect channels](https://docs.catalex.co/agents/add-an-agent.md#5-connect-channels)), and verify a reply in a native chat, and on Slack or WhatsApp once the person sends a real message there. New onboarding saves a default policy: MCP servers the native setup already enables stay selected, built-in tools start as only the web tools, the task list and skills (file tools and the terminal start off), terminal access starts Off unless an enabled server can run commands, and approvals start as inherit (the agent's own settings). If a check fails because file reading is off, follow [Review tool permissions](https://docs.catalex.co/agents/add-an-agent.md#6-review-tool-permissions). Existing denials, package guards, isolation and saved exclusions remain binding, and later discovery never selects a new server automatically. Review **MCP servers**, **Terminal access** and **Approvals** in the agent's settings, or `catalex agents tools --agent AGENT_ID --json`. Make only the permission changes the person authorized; do not enable terminal access, Automatic approvals or extra MCPs to repair a failed check. Never change global settings or exempt all CatalEx tools. Report pending or unsupported application separately from saved choices, and verify actual native evidence. Name each agent the way the package names it to people (for example "Doctor Assistant" and "Patient Assistant"). When one agent serves one person per chat and another agent of the package runs the same tool, the second one sees the first one's people, for example the doctor's assistant seeing the patients' appointments. Onboarding reports this as `PERSON_AGENT_UNREACHABLE`, and `--apply` lets the second agent message the first about its people (`data.sends`), so the doctor's assistant can tell patients about a moved or cancelled appointment. No package needs to ask for it: whichever of the two you onboard last with `--apply` saves it, once the person agent has its `--person-arg`. When the package says another agent may reach those people too, allow that once both are saved, using the IDs the onboarding results printed: ```bash catalex agents edit SENDER_ID --delegate-to RECEIVER_ID --json ``` Each native chat is one person with its own person ref. When an agent serves one person at a time (a patient, a customer), its tool picks that person with a flag such as `--patient`. Save it with `--person-arg SERVER=FLAG` when onboarding ([serve each person in their own chat](https://docs.catalex.co/agents/add-an-agent.md#3-check-the-folder-then-settle-the-persons-steps)), so each chat is its own person. It changes none of the package's files. After onboarding and the first reply, assume the person knows nothing about CatalEx's limits and explain each in plain words when it first matters. Read the agent's settings (`catalex agents show AGENT_ID`) and suggest what the package's agents need: read-only files for instructions that answer from files, editing for notes, the terminal only with a warning, a daily cap and fewer connected tools for strangers. Ask once, apply only what they agree to and never widen anything automatically ([suggest the settings](https://docs.catalex.co/agents/add-an-agent.md#8-suggest-the-settings-the-agent-needs)). ## 5. Hand over Write no summary document (no artifact, Sites page or file): the summary goes in your chat reply, as [step 9 of the setup guide](https://docs.catalex.co/getting-started/agent-setup.md#9-report-the-result-and-open-the-app) describes. Later requests about an agent are made with `catalex`, so the person never needs the commands. Tell the person, in the package's voice: which assistants they can now reach and where (the CatalEx app, and Slack or WhatsApp when verified), one thing to try first, and anything still pending with what they need to do. Keep the package's own launchers working: CatalEx adds a way to reach the agents and replaces nothing. If rule 2 has not opened the app yet, run `catalex open` now unless the person asked for the app to stay closed. Tell them they can return to this session for the summary. Onboarding leaves a short CatalEx block in each agent folder's instructions. It points back to `catalex --help` and [https://docs.catalex.co/llms.txt](https://docs.catalex.co/llms.txt), so a later session in that folder needs no skill and no copy of this page ([what onboarding leaves](https://docs.catalex.co/agents/add-an-agent.md#what-onboarding-leaves-in-the-folder)). ## Updating or removing - Update CatalEx: `catalex update --check`, then `catalex update --restart`. - Remove one agent from CatalEx: `catalex agents delete AGENT_ID` and, if you want to restore the folder, delete the marked CatalEx block from its instructions ([Remove (offboard) an agent](https://docs.catalex.co/agents/add-an-agent.md#remove-offboard-an-agent)). - Remove CatalEx: `catalex uninstall` keeps chats and settings; use `--purge` only when the person explicitly asks to delete their data. # Native chats Native chats let you talk to a folder-based agent directly in CatalEx, without Slack, WhatsApp or a messaging service. Every agent has a **Native chats** channel. ## Start a conversation ### In the app 1. Open **Agents** and choose **Chat** on the agent's tile, or click an empty part of the tile. 2. Choose **New chat** (the pen-and-square icon) at the top of the chat list. With no chat selected, the pane also offers **New chat**. 3. Type in the message box (*Message AI…*) and send. Use **Attach files** (**+**) to add files and the microphone to record a voice message. A new chat takes the agent's latest AI provider, model and effort. An existing chat keeps the ones it started with. To try another model, change it in the agent's settings and start a new chat (see [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md)). Messages you send in a quick burst reach the agent together in one turn. A message sent while a turn is running goes into that turn. An agent can also end a turn with nothing to say; then no reply appears and the chat shows no error. To start a chat from the terminal, see [Verify from the terminal](https://docs.catalex.co/chats/native-chats.md#verify-from-the-terminal). ## Verify from the terminal Find the agent's native chat channel: ```bash catalex channels list ``` Create a chat with its ID, then use the returned chat ID: ```bash catalex chats create --channel NATIVE_CHAT_CHANNEL_ID --name "Setup check" --json printf 'Reply with exactly: CATALEX READY\n' | catalex chats send CHAT_ID --wait catalex chats history CHAT_ID ``` **Expected result:** the agent's reply contains `CATALEX READY`. Then ask a question about the agent's own folder to check its tools and instructions. If the AI refuses the turn, `chats send` fails with `AGENT_TURN_REFUSED`. The output includes the AI's text, the model and effort that were sent (with where each came from) and the command for choosing other settings. Nothing is retried. ## The chat header and status ### In the app The header shows the chat's name, then its controls: - **Stop** interrupts the running turn. It shows only while a turn runs. - **Resume** reconnects the chat's original AI session. It shows only while the message box is closed. - **Usage** (the info icon) opens a small dialog with the chat's **Cost**, **Tokens** (input and output), **Cached** (the share of input tokens served from cache) and **Turns**. With several models it adds each model's cost. A value CatalEx cannot read shows a dash. Cost is the provider's reported price or a price-table estimate, not a bill, and turns recorded before CatalEx kept costs have none. - **Full conversation** (the terminal icon) opens a read-only side panel over the right of the chat with everything the agent did: your input, its thinking, each tool call with its input and result, its text, and a line per turn such as *Worked for 12s* or *Stopped after 12s*. Close it with **Close** or Escape. **Usage** and **Full conversation** are offered only for chats this computer holds. [Analytics](https://docs.catalex.co/activity.md#analytics-and-resource-use) shows the same cost and cache numbers across all chats. A chat's state shows beside its name: *Ready*, *Starting*, *Working*, *Waiting for your answer*, *Waiting for your approval* or *Needs attention*. Each agent has one status dot at the top right of its picture, on its tile and on its settings page. Chats in the chat list show no dot. Pointing at the dot names the state, with ` · N unread` added for Active and Running: | Dot | State | Meaning | | --- | --- | --- | | Quiet gray | Idle | No chat of the agent is open. This is normal and says nothing more | | Hollow green | Active | A chat is open and nothing is running | | Hollow green, softly blinking | Running | A turn is running, or a chat waits for your answer or approval | | Solid green | Unread | A reply you have not seen is waiting. A blinking edge means a turn is also running | | Solid red | Offline | The agent's chats are offline | | Solid red | Last reply failed | A chat's last reply failed | With reduced motion turned on, nothing blinks and Running shows a second, still ring. The tile also words a state that needs you as a line of text: *Waiting for an answer*, *Waiting for approval*, *Last reply failed* or *Offline*. A messaging reply in progress counts as Running, and an open messaging session as Active. Unread is kept per viewer, in this app only. When a chat needs you, one line above the message box says why and offers one action, such as **Change AI provider**, **Open AI providers**, **Review tool access** or **Start a new session**. If CatalEx recovered a session on its own, the chat says *CatalEx started a new session for this chat.* or *CatalEx reconnected this chat's session.* System notices from CatalEx appear as an orange bubble named *CatalEx* on the agent's side. ### With the CLI ```bash catalex chats show CHAT_ID catalex chats usage CHAT_ID catalex chats activity CHAT_ID catalex chats activity CHAT_ID --after 12 --wait 5s --json catalex chats settings show CHAT_ID ``` `chats show` reports the chat's state, settings and session; an exhausted recovery says so (`recovery_exhausted: true` with `--json`). `chats usage` prints what the **Usage** dialog shows: turns, input, cached and cache-written input and output tokens, the cost of the turns that report one and each model's share. `chats activity` reads the same items as **Full conversation**, oldest first; continue from the printed cursor with `--after`. Both work only on the computer that ran the chat, so `--computer` is refused. `chats settings show` prints the model settings the chat started with. ## Recover a stuck chat If recovery gave up, send your next message: CatalEx replaces the stuck session first. From the terminal: ```bash catalex chats resume CHAT_ID catalex chats replace CHAT_ID ``` `resume` restarts the original AI session and creates nothing new. `replace` starts a new AI session for a chat whose session failed; the chat keeps its history and the next message runs in the new session. A healthy chat is refused. If a turn's outcome is uncertain, read the history before you resend. To retry the same submission, reuse its command ID: `catalex chats send CHAT_ID --retry COMMAND_ID --wait`. `catalex chats watch CHAT_ID --events 10 --json` reads events without sending anything. ## Delete a chat ### In the app In the chat list, point at a chat row and choose **Delete chat** (the bin icon). CatalEx asks *Remove NAME?* and says *Its chat history is kept.* ### With the CLI ```bash catalex chats remove CHAT_ID ``` Restore removed chats from the archive (see [Activity and history](https://docs.catalex.co/activity.md)). Removing a chat does not erase every retained copy; read the [data retention policy](https://docs.catalex.co/privacy-policy.md#retention-and-deletion) before treating it as deletion. ## Chats on another computer The Agents home lists the agents on your other computers too, after those on **On this computer**. Open one to read its chats. An agent of another computer opens in the same workspace, with its computer's name and *Online* or *Offline* under the agent's name. It lists that computer's chats under **Chats** and offers **New chat**, **Reload** and **Delete agent** (see [Add an agent](https://docs.catalex.co/agents/add-an-agent.md#change-or-remove-an-agent)), but no **Add channel** or **Settings**. A chat of another computer reads *Message for COMPUTER…* in its message box, and it has no **Usage**, **Full conversation** or **Attach files**: those stay on the computer that ran the chat. Allow, deny and answer buttons ask you to confirm with this device (Touch ID where available) before the decision is sent. While the computer is offline, a message you send waits under the words *Waiting for COMPUTER*, then shows *Delivered* or *Not delivered*; approvals, Stop and settings are never queued. Run `chats` commands on another computer of your account with `--computer`: ```bash catalex chats list --computer 'Office VM' catalex chats create --computer 'Office VM' --channel NATIVE_CHAT_CHANNEL_ID --name "Check" ``` That computer must allow chats from other devices (`catalex computers settings remote-chat-links on`, run on that computer). While it is offline, its chats are read-only from your account's archive. See [Devices](https://docs.catalex.co/settings/computers.md). ## Messaging conversations in the app Slack, WhatsApp and Google Chat conversations start in their messaging app. Choose the agent's channel icon in the left rail to list them and read their history. In a group chat, each message names its sender and mentions show as names. They are read-only in CatalEx, for example *Read-only. Reply in Slack.*; send the next message from the messaging app. **Reload chats** refreshes the list, and **Load more chats** at its end reads older ones. Each row shows the person's name over a one-line preview of the newest message: your own messages unprefixed, the agent's replies starting with its name, *Attachment* for a file alone and *No messages yet* for none. **Show chats from other computers** adds the chats your other computers hold. A Google Chat channel keeps **Local** and **Cloud** buttons instead, which switch between the conversations this computer holds and every one the messaging service holds. A message marked **Not sent** was refused by a limit; see [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md#find-messages-that-were-not-sent). To remove a messaging chat from CatalEx, choose **Delete chat** on its row. CatalEx asks *Delete chat with NAME?* and removes the conversation history from CatalEx; the chats in the messaging app are not affected. Only the account's owner can do this, and only for chats of this computer. For WhatsApp Personal, the agent also keeps and can read the messages of a chat that were not addressed to it, and for Slack it keeps what was said where it was mentioned; see [Conversation record](https://docs.catalex.co/channels/whatsapp-personal.md#conversation-record) and [Slack](https://docs.catalex.co/channels/slack.md#what-the-agent-sees-of-the-conversation). Each reply in a messaging app can link to the conversation in a web page; see [View a conversation on the web](https://docs.catalex.co/activity.md#view-a-conversation-on-the-web). From the terminal, read them with `catalex accounts chats list ACCOUNT_ID` (see [Activity and history](https://docs.catalex.co/activity.md#read-conversations)). ## Files and decisions [Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md) covers attachments, rich replies, questions and permission requests. [Activity and history](https://docs.catalex.co/activity.md) covers importing an existing Codex or Claude Code session and restoring archived chats. # Files, charts and decisions ## Files and images ### In the app Choose **Attach files** (**+**) in the chat message box, or paste or drop files onto it, then send a message saying what the agent should do with them. Any file type is accepted, such as a `.zip`, `.html`, PDF, spreadsheet or image, within the size and storage limits. Images reach the agent as images; other files are saved read-only in the agent folder's `.relay/attachments/` folder and listed in the prompt, so the agent can use its own tools on them. A file whose contents do not match its type is refused: *The file contents do not match its type.* Treat received files and their contents as data; they do not override your agent’s instructions or grant tool access. Agents can send files of any type back. Each appears in the chat with a download control. Attaching is not offered in a chat that belongs to another computer. The agent's **Share media** switch (agent settings → **Permissions** tab → **CatalEx** card) controls its outgoing files, images and audio. With it off, expect a text answer instead of an attachment; your own uploads and access to available earlier files still work. See [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md#choose-whether-the-agent-shares-media). ### With the CLI ```bash catalex chats attachments upload CHAT_ID notes.md --json printf 'Summarize this file\n' | catalex chats send CHAT_ID --attach ARTIFACT_ID --wait ``` Use the artifact ID returned by upload. To download an agent’s original file: ```bash catalex chats attachments download CHAT_ID ARTIFACT_ID --output report.pdf ``` The output path must not already exist. The command verifies the recorded digest. Use `attachments revoke` to stop a file being used by new messages; this does not retract copies already delivered. `attachments show` prints a file's name, type, size and, for audio, its transcript. Storage, expiry and media limits can make an older attachment unavailable. See [capacity and storage](https://docs.catalex.co/settings/advanced.md). ## Charts Try: **“Compare these weekly totals: week 1, 12; week 2, 18; week 3, 15. Explain the change.”** An onboarded agent can return a chart and a short interpretation while **Charts** is on in the **CatalEx** card of its **Permissions** tab (**Send charts when asked**). **Suggest charts** lets it offer a chart on its own. Turning **Charts** off uses text even for an explicit chart request. Check the values and units independently of the visual. Explicit text-only requests should stay text-only. Native chats display supported structured charts. Messaging clients may receive a static preview or readable values instead. An image preview is different from an exported original file. Ask explicitly for a downloadable PNG or PDF if that is the deliverable you need; the agent’s **Share media** switch must be on. [WhatsApp reply formats](https://docs.catalex.co/channels/whatsapp-reply-formats.md) lists its exact formats and fallbacks.
Example: inspect a structured chart in a native chat This comparison has four source values: East 8, North 13, South 17 and West 21. Compare the labels, values and units with the source; the chart’s **Data** section provides another way to inspect them. The chart shown is an example, not a required style for every task.
## Questions and permissions ### In the app Requests appear in the conversation under a heading: | Heading | What it is | How to answer | | --- | --- | --- | | **Your AI is asking** | A question with choices, a text field or a form | Choose an option or type the answer, then send it | | **Your AI needs some details** | A form from the AI provider itself | Fill it in and accept, or decline | | **Your AI needs your permission** | A permission request that names the action | Choose **Allow**, **Deny** or **Cancel turn** in the request's own message | A permission or form request is answered inside its message: the request in plain words, such as *Use brief from twin-read?*, then **Allow**, **Deny** and **Cancel turn** beneath it. The card reads in the same order in Slack (headed **Permission required**), on the web page and in the app: a short description under the title, the command or file in one scrollable block (a long one is cut, with **Show all**), then the buttons, with **Allow** first and **Cancel turn**, which stops the turn, as the quiet one. Once decided, the card keeps its place and shows the outcome. Only a request whose message is not shown gets a card above the message box. In a Slack, WhatsApp or Google Chat channel, a chat that waits on a request shows a bell named *Needs your approval* beside its name in the chat list; the bell only marks the chat. Open the chat: the request's card follows its messages, with its options and, for a question, a field and **Send answer**. An agent can wait on several requests at once. Every request that is still open keeps its own buttons, and each is decided on its own. A request already decided elsewhere says so and loses its buttons. A question that holds the turn also has **Cancel turn**, which stops it as **Stop** does. While the AI waits, messages you send queue until you decide. Read the target and scope before you allow anything. Quoting a request or reacting with an emoji does not answer it. A request that can no longer be answered is marked *Expired. This request can no longer be answered.* or *Closed. This request can no longer be answered.* Very long option labels from Codex are shortened with "…". An agent whose **Approvals** is **Always deny** refuses permission requests without asking you. **Always approve** and **Agent recommends** are the other ways to skip asking; see [Choose approvals](https://docs.catalex.co/agents/tools-and-permissions.md#choose-approvals). ### With the CLI Get the operation ID from the question's event (`catalex chats watch CHAT_ID` or `catalex chats send … --wait` prints it after "operation"). It is not the message ID that `chats history` shows; a message ID is refused with `MESSAGE_ID_NOT_OPERATION`. ```bash catalex chats watch CHAT_ID --events 10 catalex chats answer CHAT_ID --operation OPERATION_ID --choice yes echo "Use the staging database" | catalex chats answer CHAT_ID --operation OPERATION_ID catalex chats answer CHAT_ID --operation OPERATION_ID --native accept --values-file form.json catalex chats approve CHAT_ID --operation OPERATION_ID --option allow catalex chats approve CHAT_ID --operation OPERATION_ID --option deny ``` Use the choice or option IDs the request offered. `--native decline` or `--native cancel` turns down a provider form. An answered, expired or closed question is refused with `QUESTION_NOT_OPEN`. On another computer's chat (`--computer`), an answer another device delivered first is refused with `ALREADY_DECIDED` (exit 5). For Slack, WhatsApp or Google Chat conversations, add `--account ACCOUNT_ID` and pass the conversation instead of a chat ID. If a messaging app cannot show a form or permission, follow its link to CatalEx and answer there. For a plain-text question, reply normally in the conversation.
Example: a question can stay in ordinary text An agent can list possible times and ask which you prefer without sending an interactive card. Here it also states that it has no calendar access. Confirm availability through the appropriate tool before treating an offered time as booked.
## Stop and resume **Stop** interrupts the active turn; it does not undo external actions that already happened. Check the conversation and any external tool before repeating a request. If the session fails, fix the reported cause and send your next message; CatalEx replaces a stuck session first. The history stays, so you can see what the agent already did. See [Native chats](https://docs.catalex.co/chats/native-chats.md#recover-a-stuck-chat). ## Voice ### In the app Choose the microphone in the message box. One click starts a hands-free recording: a live waveform and the elapsed time replace the box. Choose **Send voice message** to send it, or **Discard recording** (or press Escape) to throw it away. Press and hold the microphone to record while you hold it and send when you release. If the browser or app cannot record, the page says so and you can attach an audio file instead. An audio message shows as one row with play and pause, a seek bar, the length and a download icon. Under it, CatalEx shows *Transcribing…* and then the transcript in italics. The transcript is made on this computer with a speech engine CatalEx installs, so it needs no service. Voice notes from Slack, WhatsApp and Google Chat are transcribed the same way, and so is the audio track of an MP4 video. A transcript is an unreviewed derivative and may contain errors; the original recording is always delivered to the agent too. If transcription fails or times out, the recording still reaches the agent and the row shows *No transcript* with the reason. A recording with no outcome after a long wait shows as plain audio. When transcription is not available on this computer, the row says so in words; `catalex doctor --fix` repairs a missing speech engine. ### With the CLI ```bash catalex chats attachments upload CHAT_ID note.m4a --json catalex chats attachments show CHAT_ID ARTIFACT_ID ``` `attachments show` prints the transcript once the message that carries the file has been sent. Audio is accepted only when its duration can be verified, and the default limits are 10 MiB and 5 minutes. # Activity, history and usage ## Read conversations ### In the app Choose **Chat** on an agent's tile to open its native chats. The icons in the left rail beside the list switch between the agent's channels. The bar above the chat list shows only the agent's name and picture, never the channel's name (the rail names the open channel); a state that needs attention, such as *Running* or *Offline*, is written beside the name. A Slack, WhatsApp or Google Chat conversation opened in the app is read-only; answer it in the messaging app. Messaging chats are titled with the first words of their first message, or the person's or group's name. **Reload chats** refreshes the list, and **Delete chat** on a row removes the conversation from CatalEx only; your chats in the messaging app are not affected. See [Native chats](https://docs.catalex.co/chats/native-chats.md#messaging-conversations-in-the-app). ### With the CLI ```bash catalex chats list catalex chats history CHAT_ID --pages 1 --json catalex accounts chats list ACCOUNT_ID --json catalex accounts chats show ACCOUNT_ID CHAT --json ``` Native chat IDs and messaging chat references are different: for a messaging chat, use the reference that `accounts chats list` returns. Follow returned cursors for more pages. A partial or cached history does not prove the server has no other messages. ## What an agent keeps of a conversation For a WhatsApp Personal chat, CatalEx keeps every message of the chat for the agent, numbered, including messages that were not addressed to it. For Slack, it keeps what was said where you mentioned the agent. See [Conversation record](https://docs.catalex.co/channels/whatsapp-personal.md#conversation-record) and [Slack](https://docs.catalex.co/channels/slack.md#what-the-agent-sees-of-the-conversation) for what is kept, how the agent reads it and when it is erased. ## See what the agent did ### In the app For a chat on this computer, the **Full conversation** button (terminal icon) in the chat header opens a read-only side panel with your input, the agent's thinking, each tool call with its input and result, its text, and a line for each turn such as *Worked for 12s*. Close it with **Close** or Escape. The **Usage** button (info icon) beside it shows the chat's cost, tokens, cache share and turns; see [Analytics and resource use](https://docs.catalex.co/activity.md#analytics-and-resource-use). ### With the CLI The same record is available in the terminal, oldest first: ```bash catalex chats activity CHAT_ID catalex chats activity CHAT_ID --after 12 --wait 5s --json catalex chats activity --session SESSION_ID ``` Continue from the printed cursor with `--after`; `--wait` holds the read until a new item arrives. `--session` reads a session by its ID, for example a Slack conversation. The activity stays on the computer that ran the chat. ## View a conversation on the web A conversation of an agent that runs on your computer can open in a web page, so you can follow it from a computer or phone that has no CatalEx app. The page needs CatalEx 0.1.19 or later on the agent's computer and a messaging service that offers the web view, which CatalEx Cloud does. **Viewable on web** is a setting of each agent. It is on for every agent, existing ones too, until you turn it off. While it is on, a final reply in Slack, WhatsApp or Google Chat ends with **View conversation**, and the link opens the conversation on the web instead of in the app. WhatsApp Personal replies carry no link. Turn it off in the agent's **Settings** on the **General** tab under **On the web**, or run `catalex agents edit AGENT_ID --web-view off` (`on` turns it back on). Turning it off closes every open page of that agent within about 30 seconds, and only you can change it, never from another computer. ### Open it 1. Follow **View conversation** in the messaging app. The page first asks the browser to open the CatalEx app at that conversation, once per browser tab and conversation, and shows the conversation on the web underneath at once. If you cancel the browser's prompt, or the computer has no app, the conversation is already open on the web. 2. If the browser has no session yet, it goes to Google sign-in and then returns to the conversation. Sign in with the Google account of your CatalEx account. A Google account that has no CatalEx account is told so, and nothing is created. 3. The page shows the conversations on the left, newest first, and the open conversation beside them. The agent filter at the top of the list picks which agent's conversations to show; it starts on the agent of the conversation you opened. The page looks like the CatalEx app and shows the same things: history, files, images, audio and video, charts and cards, the agent's progress, its questions and approvals, the **Full conversation** panel with live tool calls, and usage. **Full conversation** opens as a resizable card to the right of the conversation, as in the app: the conversation moves left, and drag handles between the cards change their widths (double-click a handle to put a width back). Where the cards do not fit side by side, the panel takes the conversation's place. Images show in the conversation, and choosing one opens it at full size. Other files show as a chip with the name, kind and size. Every attachment can be downloaded. Files that came in through Slack, WhatsApp or Google Chat, and files the agent sent to those apps, load from CatalEx Cloud's media store even when the agent's computer is offline; a file you uploaded or recorded in the web page or the app is read from the computer. Whatever the agent sends shows here, whatever its **Charts**, **Interactive cards** and **Share media** settings say. The toggle at the top of the left column collapses it to a narrow rail and back; the shortcut is Shift+Command+S on a Mac and Ctrl+Shift+S elsewhere. The browser remembers the choice. Only the owner can open a conversation. Anyone else, an unknown or malformed link, a conversation of an agent that is not viewable on web, or a conversation of another account all show the same page, *This conversation isn't available*, and it does not say which reason applies. Following a link without signing in, as a link preview does, reveals nothing. ### What you can do there You can send text, files and voice notes (a voice note is transcribed on the agent's computer), stop the running turn, and answer questions and approvals. While the agent is working and the message box is empty, the send button becomes **Stop**; typing a message turns it back into **Send**. **Stop** shows only while a turn is running. A message you send on the web is your own input to the agent and is not posted to Slack, WhatsApp or Google Chat. The reply to a turn that began on the web shows only on the web, unless a message from the messaging app joins that turn, which also gets the final reply. Nothing the web page does goes beyond what the conversation's own route allows: a file the conversation's media policy refuses is refused there too. There is no setup, settings, provider, device, marketplace or process control on the page; those stay in the app. Native chats are not shown. When the agent's computer is offline, the page says so, shows the messages CatalEx Cloud keeps in the conversation record, and turns off sending and answers. Messages typed on the web are not in that record and show only while the computer is online. ### Sign out and sessions **Sign out** is in the menu of your profile picture at the bottom of the left column, which also shows your email. It ends the session. Each web session also shows in **Settings** > **Devices** and in `catalex devices` as a **Browser**, such as *Chrome on Mac*. A browser is never trusted for changes. End it from the device list, or sign out everywhere, and it stops at its next request. By default a session ends after 12 hours unused and at most 7 days after sign-in. For a service you run yourself, see [the web view settings](https://docs.catalex.co/settings/server.md#web-view). ## Agent settings activity This is a terminal feature; the app does not show a settings history. ```bash catalex agents activity AGENT_ID ``` This lists the agent's settings changes, newest first, with the time and where each was made: the CatalEx app or `catalex` on its computer, or an admin Slack app or WhatsApp number with the account and person. Use it to explain why an agent's behavior changed. ## Analytics and resource use ### In the app Choose **Analytics** in the left menu. The page shows your account's activity, read from CatalEx Cloud, so it needs your CatalEx sign-in; without it, or when CatalEx Cloud does not answer, the page shows *Analytics unavailable* with the reason and **Retry**, and no numbers. Choose a range with the control at the top right: **7 days**, **30 days** (the default), **90 days** or **All time**. The page shows the copy from your last visit at once and reads fresh numbers in the background. **Refresh** (the circular-arrow icon) forgets the app's copies and reads again; it says *Updated* or *Could not refresh* afterwards. The page has two tabs under its title. **Overview** opens first. **Agents** lists one row per agent. **Overview**, from top to bottom: - **Tiles.** **Messages** (from people and from agents), **Conversations**, **People**, **Tokens** (input and output, with the share served from cache as *N% cached*), **Cost** (with the number of replies it covers) and **Median reply** (with *9 in 10 within* a time). - **Needs attention.** A line such as *4 need attention* with a chevron. The list starts collapsed on every visit. Expand it to see each problem in the chosen range: risky actions, keys or passwords in an agent's text, private data, matches of your own rules, failed deliveries, failed replies and spending spikes, each with its agent. **View** opens that agent's detail at the panel of the problem. **Ignore** hides the item for the whole account until the problem happens again; **Show ignored** lists the ignored items, each with **Restore**. An item is for seeing a problem; there is usually nothing to approve or fix on it. - **Main chart.** A day-by-day chart with a dropdown for **Cost**, **Messages** or **Tokens**. Cost comes first when there is any. - **Panels.** **Platforms**, **Agents** and **People**, each ranking where the messages came from. - **Cost section.** One panel for each way the single cost total is split: **Cost by model**, **Cost by chat**, **Cost by platform**, **Cost by agent**, **Cost by token type** and **Cost by device**. Token type splits the cost into uncached input, cached input and output. Claude Code reports one total for each turn, so only turns that report a split count there, and the panel says how many replies it covers. **Cost by device** shows only when two or more of your computers have a cost. - **Monthly budget and Spending spikes.** **Set budget** takes one amount in US dollars for the whole account each month and replaces any earlier one; **Remove budget** clears it. With a budget the panel shows this month's cost, the budget and a straight-line projection to the end of the month. **Spending spikes** lists each day whose cost was far above the recent typical day. - **Busiest hours, Custom rules and Top tools.** Messages by hour of your local day, the matches of your own rules, and the tools agents used most. **Agents.** A table with one row per agent. **Open NAME** in a row opens the agent's detail, headed by its name, with **Back to agents**. The detail shows **What the agent did** (tool calls and failures), **Approvals** (asked, allowed, denied and the average time to decide), **Risky actions**, **Private data**, **Keys and passwords**, **Custom rules**, **Who talks to it** (new people, blocked and not-allowed messages), **Delivery**, **Failed replies**, **Cost by model** and **Reply times**. A dash means no reply has reported that figure yet; an unreported figure is never shown as zero. **Checks and rules.** The button beside the range control opens a dialog with a switch for each check: email addresses, phone numbers, card numbers, IBANs, passwords and keys, and each risky-action rule. Every check is on until you turn it off. A check that is off counts nothing for the turns that run while it is off, and its figure reads as unknown for them. Under the switches, add your own rules, each a name and a regular expression (RE2 syntax), then **Save**. A rule counts its matches in what a person wrote, what the agent wrote and what a tool returned. Rename a rule and its counts stay with it. An expression that is not valid, an empty name, or more rules than the service allows is refused with the reason, and nothing is saved. Only counts are kept: CatalEx never stores the matched text, tool names, inputs, results or paths in these figures. A change applies to turns that start after it reaches each computer. Notes under the panels say what the numbers leave out, for example that very old activity is not included, or that part of CatalEx did not answer. A range with no messages says *No messages in this range*. A CatalEx Cloud older than the app may leave out panels it cannot report, and the page then does not offer **Ignore**. The page has no filters; to narrow the numbers by platform, agent or person, use the CLI. For one chat, open it and choose **Usage**. Cost and cache numbers are estimates, not a bill. Claude Code turns use the cost Claude Code reports. Codex turns are priced from a price table. A turn whose model has no known price, and turns recorded before CatalEx kept costs, have no cost, so an empty or unavailable value does not mean zero use. ### With the CLI ```bash catalex analytics catalex analytics summary --range 7d --platform slack --json catalex analytics summary --cost-by model catalex analytics summary --cost-by token-kind catalex analytics attention --range 7d catalex analytics attention ignore KEY catalex analytics attention ignored catalex analytics attention restore KEY catalex analytics budget set --monthly 250 catalex analytics budget show catalex analytics budget clear catalex analytics checks catalex analytics checks off pii.card catalex analytics checks on pii.card catalex analytics rules catalex analytics rules add --name "Project codes" --pattern 'PRJ-[0-9]{4}' catalex analytics rules rename RULE_ID --name Codes catalex analytics rules remove RULE_ID catalex chats usage CHAT_ID catalex usage ``` `analytics` lists every conversation by source. `analytics summary` reads the same activity from CatalEx Cloud, so it needs your sign-in, and shows messages, conversations, people, tokens, cost and reply times for a range (`7d`, `30d`, `90d` or `all`), plus what agents did (tool calls, approvals, risky actions, private data, delivery and who contacted them), the busiest hours, the monthly budget and spending spikes, filtered by `--platform`, `--agent` or `--person`. `--cost-by` prints the cost total and one breakdown as a table: `model`, `chat`, `platform`, `agent`, `token-kind` or `computer`; the computer breakdown is left out when a filter is set. The other `analytics` commands read and change the same account-wide settings as the app and need your sign-in: - `analytics attention` lists what needs attention in a range (`--range 7d`, `30d`, `90d` or `all`; default `30d`), each item per agent with its count, newest time and key. `ignore KEY` hides an item, `ignored` lists the ignored items and `restore KEY` shows one again at once. An ignored item comes back when the problem happens again. - `analytics budget set --monthly AMOUNT` sets the monthly budget in US dollars, above zero, up to six decimals. `show` prints it and `clear` removes it. - `analytics checks` lists the built-in checks with whether each is on; `checks off CHECK_ID` and `checks on CHECK_ID` change one. - `analytics rules` lists the custom rules; `rules add --name NAME --pattern REGEX` adds one, `rules rename RULE_ID --name NAME` renames it and `rules remove RULE_ID` removes it. A removed rule counts nothing for the turns that start next, and what it already counted is no longer shown. `chats usage` shows one chat's turns, tokens, cache use and cost. `usage` shows CPU, memory, disk and token use per chat and service. Provider-reported token counts are not a bill. For the connected messaging service, `catalex analytics --hosted`, `catalex hosting agents` and `catalex hosting sessions SERVICE_ID PROJECT_ID AGENT_ID` show what your connection may read. `catalex transcript SESSION_ID --hosted` prints a read-only snapshot of one messaging conversation. ## Chats from other computers and history sync The Agents home lists the agents on this computer first (under *On this computer* when you have others) and then those on your other computers. Manage an agent on the computer where it runs. To also list, in `catalex accounts chats list`, the chats the messaging service holds for your accounts on other computers: ```bash catalex settings set controller.show_other_computers_chats=true ``` Set it to `false` to hide them. This changes what is listed, not what is stored or who can read it. Earlier AI provider conversations can sync to CatalEx Cloud. Check where the sync stands before assuming it is complete: ```bash catalex agents sync ``` See the [Privacy Policy](https://docs.catalex.co/privacy-policy.md). ## Earlier native sessions and archive To import a Claude Code or Codex session from this computer as a native chat: ```bash catalex projects list catalex chats import --project PROJECT_ID --native-session SESSION_ID --title "Earlier work" ``` Use the folder (project) ID from the list and the provider's own session ID. The imported chat keeps the session's original identity. ```bash catalex chats archive list --json catalex chats archive restore ``` `restore` re-imports every archived chat missing on this computer and lists any it cannot restore, with the reason. Check the list first. CatalEx Cloud removes a conversation's messages 30 days after its last message, and an archived chat 30 days after its newest record; after that it cannot be restored. [Everyday operation](https://docs.catalex.co/operate.md) explains what is kept when you remove or uninstall CatalEx. # Marketplace The Marketplace lists agents that people published as public GitHub repos. Importing one copies the repo to your computer and adds each agent it declares to your **Agents** list, where you can change its settings. CatalEx does not verify these repos, so read the code on GitHub before you import. To publish your own, see the [setup file guide](https://docs.catalex.co/marketplace/setup-file.md). You need to be signed in to CatalEx. Importing runs on this computer and needs Git installed. ## In the app ### Browse and search 1. Choose **Marketplace** in the sidebar. 2. Each card shows the agent's name, its GitHub repo (a link), a two-line description, GitHub stars and forks (each opens its GitHub page), the number of **Installs on CatalEx**, and one action. 3. Type in **Search** to filter by name, repo or description. Use **Sort by** to order the cards by **Default**, **Installs**, **Stars** or **Forks**. Default puts your own listings first, then the most installed. 4. Hover the info icon next to the title to read the reminder that CatalEx does not verify these repos. If the page cannot load, it shows *The Marketplace is unavailable* with **Retry**. With no listings it shows *No repos yet*, or *No repos match your search*. ### Import an agent 1. On a card, choose **Import**. 2. Confirm. A repo with one agent asks *Import NAME?* A repo with several asks *Import agents?* and lists the agents it sets up. Choose **Import**. 3. Wait for the card to change to **Imported**. The agents appear on the **Agents** page, in a folder named after the repo under `~/catalex`, with the settings the repo suggests. Open an agent's **Settings** to change them. CatalEx uses the AI tool the repo asks for when this computer has it, and otherwise your default. A failed import leaves no folder or agents behind. ### Update an imported agent When the repo has a newer version, its card shows **Update** (hover: *New updates available*) and the agent's tile on the **Agents** page shows an update icon. Choose either, then confirm *Update NAME?* ("This will do a fresh install of the agent. Are you sure?"). An update clones the new version into a new folder and moves the agents there. Their chats, channels and your own settings stay. Nothing is copied from the old folder, which is never deleted, so keep data that must survive an update outside the agent folder. A card that says **Unavailable** is your own listing whose repo went private or away. ### Add your own repo 1. Choose **Add a repo**. 2. Paste the link to a public GitHub repo, for example `https://github.com/OWNER/REPO` (your GitHub user or organization and the repo name). 3. Choose **Import**. CatalEx lists the repo for everyone on CatalEx, shows *NAME is added* and then imports its agents on this computer, with the same confirmation as above. If the repo is already listed, it is imported from its listing. If the import fails after the listing is added, the dialog says the repo is on the Marketplace but its agents were not imported, and why. The listing stays. ### Fix or remove your listing - A listing you added shows a warning icon (**Setup has some issues**) when its `catalex.yaml` has problems. Choose it to read each problem and a link to the setup file guide. CatalEx used defaults for the invalid settings. Fix the file and push; the next daily refresh picks it up. Only you see this. - Choose the bin icon (**Remove**) and confirm to take your listing off the Marketplace. Agents people already imported keep working. The repo may be listed again later, but its install count starts again at zero. CatalEx refreshes stars, forks, description and the offered version of every listing about once a day. ## With the CLI Every `catalex marketplace` command needs a CatalEx sign-in on this device. `LISTING` is a listing ID or `OWNER/REPO`, in any letter case. | Command | What it does | | --- | --- | | `catalex marketplace list [--search TEXT] [--sort default\|installs\|stars\|forks]` | Lists listings with installs, stars and forks. The state column is `Import`, `Imported`, `Update` or `Unavailable`, as on the cards. | | `catalex marketplace add GITHUB_URL [--yes]` | Adds a public `https://github.com/OWNER/REPO`, then imports it. A repo already listed is imported as it is. Declining the import keeps the listing. | | `catalex marketplace import LISTING [--yes]` | Asks *Import NAME?* or *Import agents?*, clones the offered version into `~/catalex/REPO` (or `REPO-2`, `REPO-3`) and prints the agents it added. If this computer already holds the listing, it asks the update question instead. | | `catalex marketplace update LISTING [--yes]` | Asks *Update NAME?* and moves the agents to a fresh clone; the old folder stays. A listing you never imported exits 5 with `LISTING_NOT_IMPORTED`. | | `catalex marketplace remove LISTING [--yes]` | Asks *Remove NAME?* and takes your listing off the Marketplace. Another account's listing exits 4 with `LISTING_NOT_YOURS`. | | `catalex marketplace issues LISTING` | Prints the problems found in your repo's `catalex.yaml` and the setup file guide. | Without a terminal, a command that asks needs `--yes`; otherwise it exits 2 with `CONFIRMATION_REQUIRED` and changes nothing. Add `--json` for machine-readable output. Example: ```bash catalex marketplace list --search support --sort installs catalex marketplace import OWNER/REPO ``` Common refusals, each with a next action in its output: | Code | What to do | | --- | --- | | `LISTING_URL_INVALID` | Give a public `https://github.com/OWNER/REPO` address. | | `LISTING_REPO_NOT_FOUND` | Make the repo public or correct the address. | | `GIT_UNAVAILABLE` | Install Git, then try again. | | `NO_PROVIDER` | Set up Claude Code or Codex first; see [AI tools](https://docs.catalex.co/settings/ai-tools.md). | | `IMPORT_TOO_LARGE` | The repo is over 500 MiB; there is nothing to retry. | | `GITHUB_UNAVAILABLE`, `IMPORT_CLONE_FAILED`, `IMPORT_IN_PROGRESS`, `LISTING_RATE_LIMITED` | Run the command again in a moment. | Marketplace commands run on this computer only; with `--computer` they exit 2 with `NOT_REMOTE`. ## Limits - CatalEx imports at most 100 Marketplace agents onto one computer at a time. - Importing never runs anything from the repo: no git hooks, install scripts or submodules. The code runs only when someone talks to the agent, under the tool settings you approve. - The agent's folder holds the whole repo, so instructions can refer to any file in it. # Marketplace setup file (catalex.yaml) The CatalEx [Marketplace](https://docs.catalex.co/marketplace/overview.md) imports a GitHub repo as one or more agents. An optional `catalex.yaml` file at the repo root sets each agent's name, picture, AI tool and starting settings. This page is for repo authors; to import an agent, see the [Marketplace page](https://docs.catalex.co/marketplace/overview.md). ## Shortest working path 1. Make the repo public on GitHub. Put the agent's instructions in `AGENTS.md`, `CLAUDE.md` or `SKILL.md` at the repo root. 2. Add a `README.md` at the root that says what the agent does. 3. Optional: add `catalex.yaml` at the root. Without it, the repo imports as one agent that uses the whole repo as its folder and the importer's default settings. 4. In CatalEx, choose **Marketplace**, then **Add a repo**, paste `https://github.com/OWNER/REPO` (your GitHub user or organization and the repo name) and choose **Import**. Confirm the import. The agent appears on the **Agents** page. With the CLI, run `catalex marketplace add https://github.com/OWNER/REPO`. 5. If your listing shows the warning icon (**Setup has some issues**), choose it. It lists what CatalEx replaced with a default. Fix `catalex.yaml`, push, and the next daily refresh picks up the fix. With the CLI, `catalex marketplace issues OWNER/REPO` prints the same list. ## Repo layout ```text my-repo/ README.md what the repo does, for people catalex.yaml optional setup file AGENTS.md instructions of the root agent assets/manager.png optional agent picture (PNG or JPEG, up to 1 MiB) twin-manager/ one folder per agent AGENTS.md instructions (or CLAUDE.md, or SKILL.md) .mcp.json the agent's own tool servers ``` - Each agent has one folder with its instructions file in it. List several agents in `catalex.yaml`; each names its own `folder`. Agents may share a folder. - Put an agent's tool servers in that folder's `.mcp.json` (the `mcpServers` object). `catalex.yaml` only chooses among them. - CatalEx imports the complete repo, so instructions can refer to any file in it. Keep the repo, with its history, under 500 MiB; a larger repo is refused. ## Examples A minimal file declares one agent: ```yaml version: 1 agents: - name: Support Helper ``` A multi-agent file gives each agent its own folder and settings: ```yaml version: 1 agents: - name: Twin Manager description: Builds your brain from your notes folder: twin-manager picture: assets/manager.png provider: claude model: haiku effort: low isolation: folder tools: terminal_access: off sandbox: on command_internet: off approval_mode: manual mcp_servers: [calendar] tools_off: ["calendar:delete_event"] behavior: tone: friendly engagement_frequency: low - name: Reply Writer folder: reply-writer provider: codex ``` ## Field reference Every setting except `version` and `name` is optional. A missing or empty setting means the importer's computer decides. Values are case-sensitive and compared as text, so an unquoted `on` or `off` works. Settings are starting values: the person can change them after the import, and a later update never resets those changes. | Setting | Values | Example | | --- | --- | --- | | `version` | `1`. Required. | `version: 1` | | `agents` | A list of up to 10 agents. | `agents:` then `- name: ...` | | `name` | Required, 1 to 60 characters. A repeated name gets a number added. | `name: Twin Manager` | | `description` | Up to 200 characters. | `description: Builds your brain` | | `folder` | Path of the agent's folder inside the repo. Default `.` (the repo root). | `folder: twin-manager` | | `picture` | Path of a PNG or JPEG of at most 1 MiB inside the repo. | `picture: assets/manager.png` | | `provider` | `claude` or `codex`. A preference: a computer without it uses the one it has. | `provider: codex` | | `model` | 1 to 100 characters from letters, digits and `. _ : -`. If the AI tool on the computer does not offer it, that tool's default is used. | `model: haiku` | | `effort` | `low`, `medium`, `high`, `xhigh` or `max`. | `effort: low` | | `isolation` | `folder` or `none`. Applies to Claude only. | `isolation: folder` | | `tools.terminal_access` | `inherit`, `off` or `on`. | `terminal_access: off` | | `tools.sandbox` | `on` or `off`. | `sandbox: on` | | `tools.command_internet` | `on` or `off`. | `command_internet: off` | | `tools.approval_mode` | `inherit`, `manual` or `deny`. Never `none` or `automatic`: only the person may turn approvals off. | `approval_mode: manual` | | `tools.mcp_servers` | Names of servers defined in the folder's `.mcp.json`. | `mcp_servers: [calendar]` | | `tools.tools_off` | Tool names to turn off, as `server:tool`. | `tools_off: ["calendar:delete_event"]` | | `behavior.tone` | `default`, `professional` or `friendly`. | `tone: friendly` | | `behavior.engagement_frequency` | `low`, `medium` or `high`. | `engagement_frequency: low` | Without a `catalex.yaml`, the repo imports as one agent named like the listing, with the repo root as its folder. ## Limits - The file must be at most 256 KiB. - It may nest at most 64 levels deep and expand to at most 100,000 values. YAML anchors, aliases and merge keys (`<<`) count toward the budget and are resolved like any other value; a key written in the mapping wins over a merged one. - A key may appear only once in the file, at any depth. - At most 10 agents are imported. - A `.mcp.json` larger than 1 MiB is treated as defining no servers. ## What CatalEx checks Checking never refuses a repo. CatalEx replaces each invalid setting with its default and reports it as a finding. In the app, the account that listed the repo sees the warning icon (**Setup has some issues**) on its card. Only that account sees it; people importing the agent never do. The dialog lists each problem in plain words, such as `Model name "x y" is not a valid model name.` CatalEx uses default settings where a value is invalid. It rebuilds the findings at each refresh and checks every listed repo at least daily, so a fix you push shows up on the next daily refresh. - **File as a whole.** An unreadable file, a file over the size limit, a file over the nesting or values limit, a duplicate key, a missing `version` or a `version` other than 1 is treated as no file. The repo then imports as one default agent. - **Unknown or wrong values.** An unknown key is ignored. A wrong type or a value outside the table is replaced by the default (`approval_mode` becomes `inherit`). - **Folders.** CatalEx normalizes a `folder` first, so `./x/` becomes `x`. A folder that is absolute, contains `..`, passes through a symbolic link, does not exist or is a file falls back to the repo root. - **Pictures.** A `picture` that is missing, not PNG or JPEG (any letter case in the extension), too large or outside the repo is dropped. - **Switches.** `terminal_access`, `sandbox` and `command_internet` accept `on` and `off` plain, in quotes, or as YAML `true` (on) and `false` (off). - **Tool servers.** Names in `mcp_servers` are checked against the `mcpServers` object of the folder's `.mcp.json` (`.mcp.json` for the root, `FOLDER/.mcp.json` otherwise). A missing file, invalid JSON or no `mcpServers` object means no server is defined, so every name is reported. The setting is kept. - **Names.** A `name` is kept as written. An empty name, one of only spaces, or one over 60 characters is invalid, and that agent is skipped. When no agent is valid, the repo imports as one default agent. Entries count by position in the list, valid or not: from the eleventh on they are ignored, with one finding. - **Extra folders.** `tools.extra_folders` in any form is ignored. Only the person can give an agent other folders. - **Instructions and README.** A missing `AGENTS.md`, `CLAUDE.md` or `SKILL.md` for an agent, or a missing `README.md`, produces a finding but changes nothing. A repo with no `catalex.yaml` has no findings. ## Never put secrets in the file CatalEx never uses a secret from `catalex.yaml`. A key named `token`, `secret`, `password`, `api_key`, `apikey` or starting with `credential` (any letter case), or a value starting `sk-`, `ghp_`, `gho_`, `github_pat_`, `xox` or `AKIA`, is ignored at every depth and reported as a finding. The value is never shown in the message. A repo is public, so anything you commit is public too. Ask the person for credentials in the first chat instead. ## What CatalEx never runs Importing clones the repo and checks out one exact commit. CatalEx never runs git hooks, install scripts, package managers or submodule fetches, and the Marketplace never executes anything from your repo. Your code runs only when the person talks to the agent, under the tool settings the person approved. ## How updates reach importers CatalEx offers the newest default-branch commit. An importer on an older commit sees **Update** on the Marketplace card and an update icon on the agent's tile on the **Agents** page. Update is a fresh install: CatalEx clones the new commit into a new folder and moves the agents there, keeping their chats, channels and the person's own settings. Nothing is copied from the old folder, so keep data that must survive an update outside the agent folder. ## Tips - Make the agent work from a fresh clone with no setup step. - Declare `provider` and `model` as preferences, and test under Claude and Codex. - Keep one agent per folder, each with its own instructions file. # Messaging channels A channel is one place an agent answers: a native chat in CatalEx, a Slack app, a WhatsApp number, a Google Chat app, your own WhatsApp number or a shared link. Each Slack app, WhatsApp number or Google Chat app belongs to one agent at a time, and you manage it from that agent. Every agent starts with a native chat, so the app never offers it again. ## Before you connect a messaging app [Verify a native reply](https://docs.catalex.co/chats/native-chats.md) first. Slack, WhatsApp, Google Chat and WhatsApp Personal run through CatalEx Cloud, so CatalEx must be signed in to your CatalEx account on this computer. Without it, the app says "Slack, WhatsApp and Google Chat need CatalEx Cloud. Native chats work without it." with a **Sign in** button, and `catalex` refuses with the reason. ## In the app ### Add a channel to an agent 1. Open **Add channel** for the agent in one of these ways: - On the agent's tile in **Agents**, choose a dimmed app logo (its tooltip reads *Add* and the app's name). The dialog opens inside that app, so skip to step 3. When the tile has no room for every app, choose its **Add channel** button instead. - Open the agent with **Chat** on its tile, then choose **Channel** (the **+** at the end of the left rail). - Open the agent's **Settings**, choose the **Channels** tab, then the dashed **Add channel** card at the end of the list. 2. The dialog, titled **Add new channel** and subtitled *For AGENT*, shows one tile per app: **Slack**, **WhatsApp**, **Google Chat**, **WhatsApp Personal** (marked *Experimental*) and **Shared link**. A tick marks an app the agent already uses, and that tile can't be chosen again. 3. Choose the app. **Shared link** creates the link at once with no steps; see [Share an agent](https://docs.catalex.co/agents/share-an-agent.md). For the others, the dialog becomes *Add APP* with an **All apps** button that goes back. 4. For Slack, WhatsApp and Google Chat, the dialog shows one picker of cards, with no tabs: a card for each free account of that app (state *Available*), then a card for each account other agents use (*Used by AGENT*), then a centered **New** card. The first free account is chosen, or **New** when only accounts in use exist. With no account to offer, there is no picker and the new setup shows at once. - Under a free account's card, choose **Use ACCOUNT**. Under an account in use, choose **Move ACCOUNT**; see [Move an account](https://docs.catalex.co/channels/overview.md#move-an-account-to-another-agent). - Choose **New** to set up another account in the dialog: [Slack](https://docs.catalex.co/channels/slack.md), [WhatsApp](https://docs.catalex.co/channels/whatsapp.md) or [Google Chat](https://docs.catalex.co/channels/google-chat.md). - For WhatsApp Personal, the dialog lists **Your numbers**, the numbers you already linked that this agent isn't on, with **Use number**, and a **New** card to link another. See [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md). 5. When the setup finishes, a notice says *NAME connected to AGENT* and how people reach it, and the agent's **Settings** open on the **Channels** tab with the new channel's panel open, so you can choose who may message it. 6. Send a message in the app and check that the agent replies there. ### Unfinished setups are not kept An Add channel setup either finishes or is cleared. If you close the dialog or go back to **All apps** before it finishes, CatalEx removes the account it started, and it clears leftovers when the app starts. An account you add from **Settings › Channels** has no agent yet, so closing its setup midway leaves a card tagged *Setup not finished*, which you can finish or **Remove**. Opening a setup again resumes at the step CatalEx Cloud reports for that account, and nothing you typed is stored in the app: secret fields clear when you submit or close the dialog. If a reply is lost, the dialog offers **Check outcome**, which reads the original attempt without sending your secrets again. **Start over** discards an unfinished setup where the app's setup offers it. A failed read says *Couldn’t set up this app. Please try again.* ### See every messaging account **Settings › Channels** lists the apps your agents use. It needs CatalEx Cloud; signed out, it shows the same **Sign in** notice. 1. Open **Settings**, then the **Channels** tab. 2. Each app is one card with its logo, a summary such as *Sales bot · 2 agents* and a chevron. Open one at a time; the first app with a connection opens by itself. 3. Inside an app, each account has a card with its name, a tag (*Available*, *Used by AGENT* or *Setup not finished*), its connection state and the buttons its app offers: **Access and limits** (Slack and WhatsApp), **Disconnect**, **Remove**, **Edit credentials** (WhatsApp), **Replace key…** (Google Chat). A card whose agent runs on an offline or removed computer shows *Used by AGENT, whose computer is offline or was removed* and an **Offline** tag; choose **Remove** to free it. 4. Choose **Add channel** at the top, pick **Slack**, **WhatsApp** or **Google Chat** and choose **Continue** to set up a new account with no agent. Give it to an agent later with that agent's **Add channel**, choosing the account's card. WhatsApp Personal numbers are linked from an agent instead; their card is a list of agents and their people. ### Change how an agent behaves in a channel Open the agent's **Settings**, then the **Channels** tab. Each connected channel is a card with a one-line summary of how it is set. Choose it to open its panel; **Save** and **Cancel** appear while something is changed, and a notice says *Saved LABEL.* - **Who can message**: **Everyone** or **Only people I choose**, with **Allowed** and **Blocked** lists. Google Chat has no such lists. - **Engagement**: **Use agent default**, **Low**, **Medium** or **High** for this channel only. - **Chat commands**: whether `/help`, `/status`, `/new`, `/settings` and the other slash commands work in this channel's chats. Off, a message that starts with `/` reaches the agent as ordinary text and CatalEx sends no reply. - **Send system messages to people**: whether CatalEx's own notices, such as waiting and failure notices or "The quoted message is unavailable. Sending your text without that context.", reach people in the messaging app. Off, they still appear in CatalEx as an orange message named CatalEx on the agent's side. The answer to a command someone types is not a system message and is always sent. - **Limits**: opens rows for messages per person, all messages, people and new people, each per hour and per day, plus replies at once and the time zone those hours use. - **Remove channel**: see [Remove a channel](https://docs.catalex.co/channels/overview.md#remove-a-channel). Chat commands and system messages are kept per agent and per channel. They start on for Slack and Google Chat and off for WhatsApp and WhatsApp Personal, and a change applies from the agent's next message. If the panel says *These settings could not be loaded*, choose **Reload**. A WhatsApp Personal channel also has a pause for when you reply yourself; see [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md). The lists and limits are explained in [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md). A Google Chat channel whose app has no OAuth client shows **Turn on file uploads…** (see [Google Chat](https://docs.catalex.co/channels/google-chat.md#turn-on-file-uploads-for-an-existing-app)). A shared link's card shows its address with **Copy** and **Unlink**. ### Move an account to another agent An account can belong to only one agent. To move it, open **Add channel** on the agent that should have it, choose the app, then choose **Move ACCOUNT** under the account's card, which reads *Used by AGENT*. Confirm *Move NAME to AGENT?* with **Move**; the dialog says the other agent uses it now and stops receiving its new messages. After a move, new conversations reach the new agent. A reply in a conversation that belonged to the previous agent reaches neither agent; the person is told which agent the account reaches now and to start a new message. ### Remove a channel 1. Open the agent in **Agents** and select the messaging channel in the left rail. 2. Choose the button under its chat list: **Unlink APP** (for example **Unlink Slack**), or **Remove AGENT from WhatsApp Personal** on a linked number. Or open the channel's panel in **Settings › Channels** and choose **Remove channel**. 3. Confirm. For a Slack, WhatsApp or Google Chat account, the dialog says the account becomes available to other agents and new messages to it no longer reach this agent. Conversations are kept, except on a linked WhatsApp Personal number, where they are removed. The agent's native chat has no such button: its first native chat can't be removed. To delete the agent and all its channels, see [Agent settings](https://docs.catalex.co/settings/overview.md). ## With the CLI Run these on the computer that runs the agent, signed in to your CatalEx account. ### Add a channel ```bash catalex channels add --agent AGENT_ID --type slack --account ACCOUNT_ID catalex channels add --agent AGENT_ID --type whatsapp --new catalex channels add --agent AGENT_ID --type share_link catalex channels add --agent AGENT_ID --type native_chat --name Tests ``` `--type` takes `native_chat`, `slack`, `whatsapp`, `googlechat`, `whatsapp_personal` or `share_link`. `--account` connects a free account from `catalex accounts list`. `--new` adds an account for this agent and prints the `catalex destinations setup ACCOUNT_ID` command to run next; the agent gets the channel when setup finishes. A shared link is created at once and prints its address. [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md) walks through each app's setup in the terminal. To add a standalone account with no agent, as **Settings › Channels** does, run `catalex accounts add --platform slack --name Work` (`--platform` takes `slack`, `whatsapp` or `googlechat`; add a WhatsApp Personal number with `catalex channels add --new`, since its setup needs the agent). `catalex accounts list` shows each account's state and `catalex accounts health` how to fix one that needs attention. ### Clear unfinished setups ```bash catalex accounts clear-setups catalex accounts clear-setups --agent AGENT_ID ``` It prints `Cleared N unfinished setups: ID, ID.` or `No unfinished setups.` Accounts with a channel, free accounts and admin accounts are never touched. It is safe to run again after a failure. ### Move an account `--move` confirms the move: ```bash catalex channels add --agent AGENT_ID --type slack --account ACCOUNT_ID --move ``` Without `--move`, the command asks first. ### Set an app up again from another computer A Slack or Google Chat app belongs to the computer that served it. To set the same app up again from another computer of your account, first delete the computer that served it (`catalex computers disconnect COMPUTER_ID`, then `catalex computers delete COMPUTER_ID --yes`), then repeat the setup steps for the same `ACCOUNT_ID` from the new computer. The app keeps its installation, so its callback address stays the same; paste it into the provider again only when the service's address changed. ### Free the channel of an offline agent ```bash catalex accounts routes show catalex accounts routes remove ACCOUNT_ID ``` `show` lists the channels of agents whose computer is offline or removed; `remove` leaves the channel without an agent so another agent can use it. `--provider` narrows the list, `--yes` skips the question. A channel whose computer is connected is refused: remove it from that computer. ### Change a channel's behavior ```bash catalex channels behavior --channel CHANNEL_ID --engagement-frequency low catalex accounts agents switches show ACCOUNT_ID --agent AGENT_ID catalex accounts agents switches set ACCOUNT_ID --agent AGENT_ID --chat-commands off catalex accounts agents switches set ACCOUNT_ID --agent AGENT_ID --chat-commands on --system-messages on ``` `--engagement-frequency` takes `low`, `medium`, `high` or `inherit` (the agent's default). `switches show` prints each switch with its value and the app's default; `switches set` changes only the switch you name and applies from the agent's next message. `catalex accounts access` and `catalex accounts limits` set who may message and the limits; see [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md). Native chats have no row in the app; `catalex channels behavior` still changes how they reply. ### Remove a channel Find the channel ID, then remove it. The command names the channel and asks first (default No); `--yes` confirms without a prompt, and is required without a terminal. ```bash catalex channels list --agent AGENT_ID catalex channels remove CHANNEL_ID ``` The agent's first native chat can't be removed (`NATIVE_CHAT_REQUIRED`). Native chats you added later can be. Removing a shared link unlinks it at once with no question. To remove a messaging account itself once no agent uses it, run `catalex accounts remove ACCOUNT_ID` and answer the question. ## Replies in messaging apps **View conversation.** Each final agent reply ends with **View conversation**: a button in Slack, a link on the last line in WhatsApp and Google Chat. It opens a page that opens the same conversation in the CatalEx app (**Open CatalEx**), or offers **Download CatalEx** when the app isn't installed. Questions, permission requests, cards and progress messages don't carry it. Anyone who sees the reply can press it, but it opens only a conversation your own CatalEx app holds. On another computer the app says *This conversation isn't on this computer.* WhatsApp Personal replies carry no such link. From the terminal: ```bash catalex open --conversation REF --print-link ``` **Approvals and questions.** A permission request arrives as a card: a title, a line that names the tool (for example *Claude Code: Bash*), the command, the changed file or the call's arguments in a code block, and **Deny** first and **Approve** last. Read what the card shows before you approve; Codex cards show the command and where it runs. WhatsApp shows the same parts as formatted text. A client that cannot draw the card gets the request as plain text. When someone decides a request, its buttons are replaced by a line that says who decided it: "Approved by NAME" or "Denied by NAME" for a permission, "Answered by NAME" and the answer for a question, or the chosen label and name for any other choice. A request closed without a decision, such as a cancelled turn, ends with "This request is closed."; a request replaced by your next message ends with "Superseded by latest message." A decision or answer sent while the agent is offline is recorded but is not kept to send later: it reaches the agent only if the agent reconnects before the request expires, and the reply says so (use `/status` to check). Slack and Google Chat edit the original message. WhatsApp can't edit a sent message, so CatalEx replies to the prompt with the decision and reacts ✅ (or ❌ for a denial) to the person's deciding reply. On a WhatsApp Personal number only the owner decides. Whether an agent asks at all is its own **Approvals** setting, which can be **Always deny**; see [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md). ## Choose a guide - [Slack](https://docs.catalex.co/channels/slack.md): create a Slack app in your workspace and approve it. - [WhatsApp](https://docs.catalex.co/channels/whatsapp.md): connect a Meta business or test number with your own credentials. - [Google Chat](https://docs.catalex.co/channels/google-chat.md): set up a Chat app, its service-account key and its OAuth client. - [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md): link your own WhatsApp number as a device (experimental). - [Administrator messaging](https://docs.catalex.co/channels/admin.md): one number that can reach and manage all your agents. ## Let an agent connect the channel Paste this after your native setup works: ```text Read https://docs.catalex.co/channels/agent-workflow.md and connect my agent. ``` # Connect channels with an AI agent Use this workflow after [agent setup](https://docs.catalex.co/getting-started/agent-setup.md) has verified a native reply and the agent has recommended a channel ([step 8](https://docs.catalex.co/getting-started/agent-setup.md#8-recommend-and-connect-a-channel)). This page is CLI-only on purpose, so an AI agent can follow it; the clicks in the CatalEx app are in [Messaging channels](https://docs.catalex.co/channels/overview.md#in-the-app) and in each app's guide. It gives each terminal command with its expected result. The person still does the provider-side steps in a browser or on a phone; the [Slack](https://docs.catalex.co/channels/slack.md), [WhatsApp](https://docs.catalex.co/channels/whatsapp.md), [Google Chat](https://docs.catalex.co/channels/google-chat.md) and [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) guides describe those screens. Messaging channels need CatalEx Cloud, so CatalEx must be signed in to the person's CatalEx account. If `catalex channels add` refuses with a reason about cloud hosting or signing in, ask the person to sign in first. ## One step at a time Give the person one action and its link, then wait for the answer before the next. Keep each message that asks the person to act short, at most about three lines: what to do, the named link, and exactly what to send back and how. Never end a step with only "tell me when it's done"; say what they hand back next. Don't put a status report, recap or list of pending items in a step message; give the summary once, after the setup finishes. Don't list create, install, copy credentials and save in one message, and don't make a long raw URL the message: name the link in words and give the short link the command prints. Name every link a step needs. ## 1. Inspect what exists ```bash catalex agents list catalex accounts list --json catalex channels list --json catalex accounts health ``` If a free account of the right app already exists, connect it instead of creating another: ```bash catalex channels add --agent AGENT_ID --type slack --account ACCOUNT_ID ``` If another agent uses it, tell the person that moving it removes that agent's channel, and add `--move` only after they agree. Don't create a second account to repair credentials; see [Replace credentials](https://docs.catalex.co/channels/agent-workflow.md#replace-credentials). ## 2. Add a new account for the agent ```bash catalex channels add --agent AGENT_ID --type TYPE --new ``` Leave out `--name`: the account is then named after the agent, exactly as `catalex agents list` shows it. Pass `--name` only when a person asks for a different account name. Use `slack`, `whatsapp`, `googlechat` or `whatsapp_personal` for `TYPE`. Add a new account for an agent only this way, never with `catalex accounts add`: an account added alone has no agent, and a WhatsApp Personal account added alone cannot be set up. Expected: `Next: set it up:` followed by `catalex destinations setup ACCOUNT_ID --APP` with the new account's ID. The agent gets the channel when setup finishes. A setup that is never finished isn't kept. If you abandon one, clear it with `catalex accounts clear-setups --agent AGENT_ID`. ## 3. Follow the published actions Read the current checkpoint without changing anything: ```bash catalex destinations setup ACCOUNT_ID --APP ``` It prints the setup state, a `Next:` line, the `Allowed actions:` and the fields the next action needs. Run only an action it lists. Nonsecret fields use `--value NAME=VALUE`. Secrets use `--input-file NAME=FILE` (a private file, mode `0600`) or piped `--input-stdin NAME`; a secret passed with `--value` is refused before anything is sent. On a terminal, a secret you don't supply is asked for in a hidden prompt. Don't print a secret or paste it in chat. Each action prints its operation ID first. If a reply is lost, inspect the original attempt with `--operation-id OPERATION_ID` before sending the action again. A pending approval is never a reason to create another app. ### Slack The name people see in Slack is the agent's CatalEx name, exactly as `catalex agents list` shows it (same spelling and capitalization). Never propose, recommend or ask about a different app name or bot name. Pass the agent's name as both, and write the description yourself: one line, at most 140 characters, from the agent's instructions, without asking. If the name contains the word "Slack" or is longer than 35 characters, Slack refuses it: tell the person why and ask for a name to use instead. ```bash catalex destinations setup ACCOUNT_ID --slack --action prepare catalex destinations setup ACCOUNT_ID --slack --action connect --value app_name=AGENT_NAME --value bot_display_name=AGENT_NAME --value description=TEXT ``` `connect` prints `SLACK_CREATE_APP` and a short link (`/slack/create/`) under "Continue in the provider:". The person chooses the workspace and creates the app. Before you send the next message, choose the folder path in full, such as `/private/tmp/slack-creds-a1b2c3` with a random suffix, and use that exact path in your commands and in the message. Make that private folder (mode `0700`) with two empty files, `client_secret` and `signing_secret` (mode `0600`). On the person's own computer, open both in a text editor for them (`open -e FILE` on macOS, `xdg-open FILE` on Linux); on a remote computer, ask them to create the two files themselves. Then send one message, every time, in this form, with the real folder path in place of `/PRIVATE` and the real link in place of the placeholder (on a remote computer, drop "both are open in TextEdit" and say to create the files there): > Create the app in Slack: *the short link, named “Create the app in Slack”*. Then open its **Basic Information** page and send me the **App ID** and **Client ID** here. Paste the **Client Secret** into `/PRIVATE/client_secret` and the **Signing Secret** into `/PRIVATE/signing_secret` (both are open in TextEdit), and save. Don't paste the secrets here. Fill in real values before you send: create the files, replace every placeholder, and check the message has no `$`, `/PRIVATE`, `XXXXXX` or `<` left. The create link is the short CatalEx link `connect` printed, never an `api.slack.com` URL. A filled-in message: > Create the app in Slack: `https://app.catalex.co/slack/create/k3x9Qd` (named "Create the app in Slack"). Then open its **Basic Information** page and send me the **App ID** and **Client ID** here. Paste the **Client Secret** into `/private/tmp/slack-creds-a1b2c3/client_secret` and the **Signing Secret** into `/private/tmp/slack-creds-a1b2c3/signing_secret` (both are open in TextEdit), and save. Don't paste the secrets here. The App ID and Client ID are not secret and come back in chat. The two secrets go only into the files. The Basic Information page is the `credentials_url` value of the result ([Your Slack apps](https://api.slack.com/apps) until the app exists). If the person pastes a secret in chat anyway, write it to its file, use it, delete the files afterwards and tell them in one line to regenerate both on Basic Information. When you have both IDs and the person says the files are saved: ```bash catalex destinations setup ACCOUNT_ID --slack --action save_credentials --wait --value app_id=APP_ID --value client_id=CLIENT_ID --input-file client_secret=/PRIVATE/client_secret --input-file signing_secret=/PRIVATE/signing_secret ``` Expected, with `--wait`: `SLACK_WAITING_APPROVAL` and "Waiting for you to allow the app in Slack:" with an approval link. Run that `save_credentials` command in the background (it waits 10 minutes by default; `--wait-timeout` changes that) and give the person the approval link it prints, in a short message that says to choose **Allow** and that you will continue by yourself. They open it and choose **Allow**; when the command exits 0 the account is bound, and you continue from there. Delete the private folder then. Don't tell the person you will "keep watching" without that command running. A decline or timeout exits non-zero and names the command to repeat. To resume, or to get a new approval link if the old one was lost, expired or declined, or after a workspace administrator approved the app, run `catalex destinations setup ACCOUNT_ID --slack --action reopen --wait` in the background. ### WhatsApp The checkpoint offers `connect_meta` and `discover`. Prefer `connect_meta`: the person signs in to Meta in a browser and CatalEx finds the number, so no credential files are needed. ```bash catalex destinations setup ACCOUNT_ID --whatsapp --action prepare catalex destinations setup ACCOUNT_ID --whatsapp --action connect_meta ``` It prints `Connect with Meta:` and a link. Give the link to the person; they open it and finish Meta's sign-in. You cannot do that step for them, but you can run every other one. Then read the checkpoint again and take the allowed actions in the table below, starting with `select_number`. Use `discover` instead when the person already has the Meta credentials in private files: ```bash catalex destinations setup ACCOUNT_ID --whatsapp --action discover --input-file app_secret=/private/meta-app.secret --input-file access_token=/private/whatsapp.token --value business_account_id=BUSINESS_ACCOUNT_ID --value phone_number_id=PHONE_NUMBER_ID ``` Both IDs are the numeric IDs beside the sender in Meta's **Try it out** page. The Meta app ID is read from the token; `--value app_id=APP_ID` is optional. Then read the checkpoint and take each allowed action until its first line ends `(verified)`: | Action | Add | | --- | --- | | `select_number` | `--value phone_number_id=PHONE_NUMBER_ID` | | `configure_webhook` | Nothing. Offered only to retry after Meta refused the webhook update | | `request_code` | `--value method=SMS` or `--value method=VOICE` | | `verify_code` | `--input-file verification_code=/private/code` | | `register_number` | `--input-file pin=/private/pin` | | `verify` | Nothing | ### Google Chat ```bash catalex destinations setup ACCOUNT_ID --googlechat --action prepare ``` Expected: a `Callback:` line with the HTTP endpoint URL and the numbered setup steps with their console links. The person follows them in Google Cloud, downloading the service-account key and the OAuth client JSON. Then: ```bash catalex destinations setup ACCOUNT_ID --googlechat --action authorize --value project_number=PROJECT_NUMBER --input-file service_account_key=/private/chat-key.json --input-file oauth_client=/private/chat-client.json ``` Both files are required: `authorize` without `oauth_client` is refused before anything is saved. Expected: the first line ends `(committed)`, then `Code to send the app:`. The person sends exactly that code to the app in a Google Chat direct message. Then: ```bash catalex destinations setup ACCOUNT_ID --googlechat --action verify ``` Expected: the first line ends `(verified)`. Until the code arrives, `--json` shows `CALLBACK_CHECK_PENDING`. ### WhatsApp Personal (experimental) The first step asks the person to accept a risk: WhatsApp doesn't officially support linking automation tools and may restrict the number. Show them the notice that `catalex destinations setup ACCOUNT_ID --whatsapp_personal` prints and accept it only after they agree: ```bash catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link ``` It shows a QR code for the person to scan from WhatsApp on their phone (**Settings › Linked devices › Link a device**). For a pairing code instead, add `--value phone=+15551234567` with the person's number. Expected: `Linked + ().` If you press Ctrl-C, the command prints how to resume with `--operation-id`. ### Shared link A shared link lets someone try the agent in a browser, with no messaging app. It needs no setup steps: ```bash catalex channels add --agent AGENT_ID --type share_link catalex channels remove CHANNEL_ID ``` The first command prints the address to give out. The second unlinks it; take `CHANNEL_ID` from `catalex channels list --agent AGENT_ID`. See [Share an agent](https://docs.catalex.co/agents/share-an-agent.md). The person usually cannot see an agent's tool output, so ask them to run the `link` command themselves (in Claude Code, prefix it with `!`) so the QR code shows in their terminal. Otherwise paste the whole QR block into your reply inside a code block. A code expires after about 2 minutes; run `link` again for a new one. ## 4. Verify a real reply ```bash catalex channels list --agent AGENT_ID catalex accounts health ACCOUNT_ID ``` Then ask the person to send a message in the messaging app. Check the reply there and the matching conversation in CatalEx. Report setup, channel assignment and actual delivery as separate results; a connected account alone doesn't prove the agent answers. Review who may message the account with `catalex accounts access` and `catalex accounts limits`, or in the app on the agent's **Settings**, **Channels** tab, by opening the channel's card. See [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md). Check the agent's two switches on the channel. They start on for Slack and Google Chat and off for WhatsApp and WhatsApp Personal: ```bash catalex accounts agents switches show ACCOUNT_ID --agent AGENT_ID catalex accounts agents switches set ACCOUNT_ID --agent AGENT_ID --chat-commands on ``` **Chat commands** decides whether a message starting with `/` is a command or ordinary text for the agent. **System messages** (`--system-messages on|off`) decides whether CatalEx's own notices reach people in the messaging app. A change applies from the agent's next message. Run `accounts access`, `accounts limits` and `accounts agents switches set` only after the account's setup has finished: on an unfinished account they fail with "Choose the existing provider installation this named account uses." Finish the setup first. ## Replace credentials To replace a rotated or revoked secret on a connected account without setting it up again: ```bash catalex credentials set ACCOUNT_ID --token-file /private/slack.token catalex credentials set ACCOUNT_ID --token-stdin < /private/whatsapp.token catalex credentials set ACCOUNT_ID --key-file /private/chat-key.json ``` The first two replace a Slack bot token or WhatsApp access token. For Google Chat, `--key-file` takes either a new service-account key or an OAuth client JSON. Expected: an `Operation:` line, then `Credential operation OPERATION_ID: committed.` A rejected token or key exits with `CREDENTIAL_REJECTED` and leaves the saved one in use. `--token-stdin` and `--key-stdin` read the secret from a pipe instead of a file. When an account's saved credential is refused, `catalex accounts list` adds "· Needs attention" to it and prints this command as the fix; `catalex accounts health ACCOUNT_ID` names the finding. # Connect WhatsApp This guide connects a WhatsApp business number, or Meta's test number, to a CatalEx agent with your own Meta credentials. People message the business number from WhatsApp and the agent replies through it. To let an agent answer on your personal number instead, see [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md). ## Before you begin - An agent with a [verified native reply](https://docs.catalex.co/chats/native-chats.md), and CatalEx signed in to your CatalEx account on this computer. WhatsApp runs through CatalEx Cloud, so you need no server or public address. - A [Meta developer app](https://developers.facebook.com/apps/) with the WhatsApp product, and a business number in it or Meta's test number ([Meta test numbers](https://docs.catalex.co/channels/whatsapp.md#meta-test-numbers)). - A system-user access token with the `whatsapp_business_management` and `whatsapp_business_messaging` permissions for that business account. Enter secrets only in CatalEx's fields or private files. Keep them out of screenshots, chat messages and command arguments. ## In the app ### 1. Open WhatsApp setup Open the agent's **Add channel**: the **+** on its tile, or **Add channel** on the **Channels** tab of its settings. Choose **WhatsApp**, then the **New** card. The setup names the agent: *NAME answers WhatsApp messages.* CatalEx first waits for CatalEx Cloud to register the agent. If that fails, it says "CatalEx Cloud hasn't registered this agent yet. Try again." Choose **Try again**. ### 2. Enter your Meta details **Where to find these details** (or **How to get these from Meta** during agent onboarding) lists the Meta steps, and **Open Meta apps** opens Meta's app list. | CatalEx field | Where to find it | | --- | --- | | **Meta app secret** | Meta app › App settings › Basic › App secret › Show | | **WhatsApp access token** | Your system-user token with both WhatsApp permissions | | **WhatsApp business account ID** | The **Messaging account ID** beside the sender in **Try it out** (WhatsApp › API Setup) | | **Phone number ID** | The **Phone number ID** beside the same sender. It is a numeric ID, not the phone number | Meta needs both IDs: messages are sent through the phone number ID, and webhooks are subscribed on the business account. CatalEx reads the Meta app ID from the token, so you don't enter it. The form doesn't ask for your personal number. Anyone who messages the business number reaches the agent in a chat of their own, unless the channel's access rules refuse them. ### 3. Connect and finish Meta's checks 1. Choose **Connect WhatsApp**. Fields with a problem are marked and nothing is sent. 2. CatalEx shows its progress: **Find business number**, **Set up message delivery** and **Verify connection**. With several numbers, choose one. 3. If Meta asks, enter the verification code it sends (by SMS or voice call) and the number's six-digit two-step verification PIN. 4. When CatalEx says **WhatsApp connected**, the agent has the WhatsApp channel. CatalEx creates the webhook address Meta calls and its verification token; you don't copy either into Meta. :::warning Each connect points the Meta app's webhook and verification token at the number just connected, replacing whatever was there, including another tool's webhook. Use a separate Meta app for CatalEx if another tool needs that app's messages. ::: Numbers from the same Meta app share its webhook, and CatalEx sends each message to the number it was for. If you remove the most recently connected number, the webhook stays pointed at it; reconnect one of the other numbers to move it. A webhook left at a removed number fails verification, and `catalex accounts health` reports `CALLBACK_UNREACHABLE`. If you close the dialog midway, the card shows *Setup not finished*. Its **Connect WhatsApp** resumes the setup. ## With the CLI Replace `AGENT_ID` and `ACCOUNT_ID` with IDs from `catalex agents list` and `catalex accounts list`. Every step of the app has an equivalent. The full steps, with the setup actions and files for each Meta detail, are in [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#whatsapp). In short: ```bash catalex channels add --agent AGENT_ID --type whatsapp --new catalex destinations setup ACCOUNT_ID --whatsapp --action prepare catalex destinations setup ACCOUNT_ID --whatsapp --action discover --input-file app_secret=/private/meta-app.secret --input-file access_token=/private/whatsapp.token --value business_account_id=BUSINESS_ACCOUNT_ID --value phone_number_id=PHONE_NUMBER_ID catalex destinations setup ACCOUNT_ID --whatsapp ``` Read the checkpoint with the last command and take each allowed action until its first line ends `(verified)`. To verify a reply, message the business number from your phone and read the chat with `catalex accounts chats list ACCOUNT_ID`. ## Verify an actual reply Choose **Start a test conversation**, or message the business number from your phone. Ask something the agent can answer from its instructions, files or tools, and confirm all three: 1. Your message arrives in the business number's chat. 2. The agent's reply arrives on your phone, ending with a **View conversation** link. 3. The same conversation appears under the agent's WhatsApp channel in CatalEx. "WhatsApp connected" confirms Meta's and CatalEx's checks. Only a reply on your phone confirms that messages reach the agent. ## Who can message the number Until you set rules, everyone who messages the number is admitted. To change that in the app, open the agent's settings, choose its **Channels** tab and open the WhatsApp card. Under **Who can message**, choose **Everyone** or **Only people I choose**. With **Only people I choose**, add people under **Allowed**. Add anyone you want refused under **Blocked**, and open **Limits** to set how many messages a person or the number as a whole can send per hour or day. Use phone numbers with their country code, such as `+15551234567`; a prefix such as `+44*` matches every number starting with those digits. **Save** applies the changes and **Cancel** drops them. From the terminal: ```bash catalex accounts access set ACCOUNT_ID --allow +15551234567 catalex accounts access set ACCOUNT_ID --block +15557654321 ``` A blocked number is refused even when an allow entry covers it. People who are refused, or over a limit, get no reply, reaction or read receipt, and the refused message never reaches the agent. In the conversation you see it as **Not sent**, with the limit that stopped it. ## Meta test numbers 1. In your Meta app, open **Use cases › WhatsApp › Customize › Step 1. Try it out** and choose **Generate token**. When Meta asks which accounts the app may access, choose the test account. 2. Add your personal number as a verified recipient. 3. In **Business Settings › System users**, give your system user access to the Meta app and the test WhatsApp account. If Meta also lists a linked **Test Messaging Account**, assign it too, with the permission that includes sending messages. Generate the system user's token and use it as the **WhatsApp access token**. 4. Send Meta's sample message to your verified number and reply to it from your phone. 5. In CatalEx, enter the **Messaging account ID** shown beside the test number as the **WhatsApp business account ID**. An `Account not registered` reply or a permission refusal means a Meta step is unfinished; waiting for app review doesn't fix it. ## Delete a WhatsApp chat To start a conversation over with fresh context, for example after updating the agent's skills, delete the chat. In CatalEx, select the agent's WhatsApp channel and choose **Delete chat** (the bin) on the chat's row. Confirm *Delete chat with NAME?*. Its messages and the agent's session are deleted from CatalEx and this computer, and any work in progress stops. The messages stay in WhatsApp. The person's next message starts a new chat. From the terminal, list the chats, then delete one using its current session: ```bash catalex accounts chats list ACCOUNT_ID --json catalex accounts chats delete ACCOUNT_ID CHAT --expected-session SESSION_ID ``` Use the chat reference and session ID from the list. The command asks first; `--yes` confirms without a prompt. If the session changed since you listed it, list the chats again. If the outcome is uncertain, rerun with the original `--operation-id OPERATION_ID`. You can also name the chat by its conversation key: `catalex accounts chats delete ACCOUNT_ID --conversation KEY --yes`. ## Chat commands, bursts and notices - **Chat commands.** Each agent has a **Chat commands** switch for each channel, in the channel's card on the agent's **Channels** tab. It is off by default on WhatsApp. While it is off, a message that starts with `/` is ordinary text that reaches the agent. When it is on, everyone can use `/help`, `/status` and `/cancel`, and only the account's owner can use `/new` and `/settings`. From the terminal: `catalex accounts agents switches show ACCOUNT_ID --agent AGENT_ID`, and `set` with `--chat-commands on|off` or `--system-messages on|off`. - **System messages.** The **Send system messages to people** switch, in the same card, decides whether CatalEx's own notices reach the people in the chat. It is off by default on WhatsApp. While it is off, the notices still show in the CatalEx app, and WhatsApp chats get no offline, waiting or failure notices. - **Messages sent one after another** reach the agent as one turn, so it answers once. A voice note ends the wait and is passed on at once with the messages just before it. ## Messages outside WhatsApp's 24-hour window WhatsApp lets a business send free-form messages only within 24 hours of the person's last message. When that window is closed, CatalEx holds the agent's message and sends it when the person next writes. To reach people outside the window, approve a template in Meta with exactly one body parameter, which carries the agent's text, and register it: ```bash catalex accounts template set ACCOUNT_ID --name agent_message --language en catalex accounts template show ACCOUNT_ID catalex accounts template clear ACCOUNT_ID ``` A template of another shape is refused with `TEMPLATE_PARAMETERS_INVALID`. Without a template, the message stays held until the person writes. ## Replace credentials or reconnect a number To replace an expired or revoked access token for a connected number, keeping its conversations and channel: ```bash catalex credentials set ACCOUNT_ID --token-stdin < /private/whatsapp.token ``` A rejected token exits with `CREDENTIAL_REJECTED` and leaves the saved one in use. To bring back a number you set up before, for example after removing its account, add WhatsApp again and enter the same Meta credentials and IDs. CatalEx recognises the number by its phone number ID and reconnects it with its conversations. If setup says another WhatsApp account here already uses the number, keep using that account, or remove it with `catalex accounts remove ACCOUNT_ID` and set the number up again. ## Troubleshooting | What you see | What to do | | --- | --- | | "CatalEx Cloud hasn't registered this agent yet. Try again." | Choose **Try again**. Check that CatalEx is running and signed in. | | Setup says the number belongs to another CatalEx account | Nothing was set up. Sign in with the account that owns the number. You may see `INSTALLATION_OWNER_CONFLICT`. | | Meta can't list an eligible number | Enter the current **Messaging account ID** from **Try it out**, and check the system user's access to that account. | | `Account not registered` or a permission refusal from Meta | Finish the Meta step it names ([Meta test numbers](https://docs.catalex.co/channels/whatsapp.md#meta-test-numbers)). | | Setup stays unfinished after a valid token | Meta still reports the number's registration as pending. Enter the code and PIN when asked, then retry. | | Health reports `CALLBACK_UNREACHABLE` | The Meta app's webhook points at a removed number. Reconnect one of the app's numbers. | | An agent's message is held (`DELIVERY_WINDOW_CLOSED`) | Ask the person to send any message, or [register a template](https://docs.catalex.co/channels/whatsapp.md#messages-outside-whatsapps-24-hour-window). | | Someone gets no reply at all | Check the channel's access rules and limits in the channel card (**Who can message** and **Limits**). | | People get "not connected to an agent yet" | Add the number to an agent with **Add channel › WhatsApp** and the number's card. | For Meta test numbers, first confirm that Meta's sample message reaches your verified number, then reply from that phone. That separates a Meta test-account problem from CatalEx routing. ## Reply formats See [WhatsApp reply formats](https://docs.catalex.co/channels/whatsapp-reply-formats.md) for how text, questions, cards, charts and files appear. # WhatsApp reply formats CatalEx presents replies as readable text, buttons, chart images and original files. When a reply needs a control WhatsApp cannot display, it tells you to continue in the CatalEx app. Your agent does not need WhatsApp-specific writing instructions. Connect a business number using [WhatsApp setup](https://docs.catalex.co/channels/whatsapp.md), or link your own with [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md). CatalEx formats agent replies for WhatsApp, sends supported files and turns charts into image previews. This page describes the business number; on WhatsApp Personal, approvals and questions arrive as a message with a poll instead of buttons ([how to answer](https://docs.catalex.co/channels/whatsapp-personal.md#approvals)). Nothing here is set in the app or with `catalex`: it is how replies look to the person in WhatsApp. ## Text and structured replies | Agent content | WhatsApp presentation | Limit or fallback | | --- | --- | --- | | Paragraphs and headings | Ordered paragraphs; headings become bold text | Headings appear without Markdown markers | | Bold, italic, strikethrough | WhatsApp’s native emphasis | Unsupported nesting remains readable | | Inline code and fenced code | Literal monospace/code text | Code is not interpreted; language hints stay outside it | | Bullets, numbered lists and quotations | Readable markers and indentation | Meaning remains clear even when a client shows markers literally | | Named links and autolinks | Visible safe destination; a differing label appears as `Guide (https://example.com/guide)` | Unsafe destinations are not active links | | Markdown tables | Ordered labeled rows with every header and cell | No native table or invented chart dataset | | Markdown image syntax | Alternate text and safe URL as text | An image-looking link does not trigger a download or attachment send | | Agent messages, progress and final text | The same conversion, split into numbered parts when needed | Long replies retain their order. A final reply ends with a **View conversation** link | | Plans shared as part of a reply | Readable list and status text | Sent when the agent chooses to share them | | Text, lists, cards and layouts | Complete text plus missing readable card details and separators | Cards keep their text and reading order | | Questions with choice buttons | Up to 3 reply buttons, or up to 10 list choices; larger sets use numbered text | Full labels/details stay in the body; answer the original question using its control or WhatsApp **Reply** | | Forms with text fields, checkboxes, multiple inputs or additional actions | Explanation of the original inputs/actions | When WhatsApp cannot collect or accept the complete answer shape, use the CatalEx app; supported decline/cancel remain available | | Audio players | Description and complete text | Explicitly states playback is unavailable; no fabricated audio or transcript | Long replies keep their order, close and reopen formatting/code as needed, and keep a URL together when it fits a part. User text and quoted user content stay literal. An app fallback names the limitation; it does not invent an app link, WhatsApp Flow, download or approval. WhatsApp cannot edit an earlier reply into a refreshed card: an update needs a new message, and old closed/superseded controls cannot regain authority. ## Charts and files An [onboarded agent](https://docs.catalex.co/agents/add-an-agent.md) chooses charts by default for comparisons or rankings of at least three items, trends over at least three observations, shares of a whole, and relationships across at least three numeric pairs. It keeps explicit text-only requests, simple facts and unrelated numbers as text. The same agent creates structured charts for every channel; CatalEx chooses how to display them. After a skill update, [delete the WhatsApp chat](https://docs.catalex.co/channels/whatsapp.md#delete-a-whatsapp-chat) so the person's next message starts a new chat with the new selections. Files must fit both your messaging service’s configured limits and WhatsApp’s limits. | Chart or file | WhatsApp presentation | Limit or fallback | | --- | --- | --- | | Bar, line, area, scatter, pie or donut chart | Generated static PNG plus readable title, description, axes/units, named series and every value | Static image. If a preview cannot be sent, the reply includes its values and an explanation | | Original JPEG or PNG attachment | Original verified image bytes after the text | Up to 5 MB, subject to any smaller service limit | | Original plain-text, PDF, DOCX, XLSX or PPTX attachment | Original verified file as a document after the text | Up to 100 MB, subject to any smaller service limit | | Other files, audio and video | Complete text/description with a note that the attachment is in the CatalEx app | WhatsApp only accepts the types above from a business number | | Missing, expired, revoked or inaccessible artifact | Truthful unavailable indication with the message text | No substituted file, renewed expiry or invented download URL | A chart preview is an image generated from the agent’s structured chart data. Original uploaded files stay unchanged. A chart sent successfully appears directly in the WhatsApp conversation. If an original file cannot be sent, its own availability message explains what to do. You can send the agent images, stickers, voice notes and other audio, videos and documents of any type, within your service’s limits. Captions arrive as text, and a document is passed on as the original file. The agent receives a voice note as audio, and CatalEx transcribes the audio of voice notes and videos on the agent's computer. On a business number, a location or contact card, and any other message type, doesn't reach the agent. The CatalEx app shows that it was not sent, and nothing is posted in the chat. ## Questions and delivery status | Interaction or status | What it means on WhatsApp | | --- | --- | | Permission or form | Controls retain the original operation, person, allowed answer and expiry. A partial answer, card label, ordinary message or emoji cannot grant a new permission. Use the CatalEx app to complete forms that WhatsApp cannot display | | Decided request | WhatsApp can't edit the prompt, so CatalEx replies to it with "Approved by NAME" or "Denied by NAME" ("Answered by NAME" and the answer for a question) and reacts ✅ or ❌ to the reply that decided it. A later tap on an old button changes nothing | | Reply or reaction | Targets the original message. One agent reaction per message can replace the business’s acknowledgement reaction | | 👀 acknowledgement or typing | When the server turns on feedback, a 👀 reaction shows the message is being handled until the agent answers, and a typing indicator shows while it works. Wait for the answer | | Messages sent one after another | Held and passed to the agent as one turn, with the 👀 on the last message. A voice note ends the wait and goes at once | | Offline, waiting or failure notices | None are posted in WhatsApp chats. The owner sees status in the CatalEx app | | Agent-to-agent event | Internal to that exchange; not delivered as a message to the person | | Delivered or read status | WhatsApp’s delivery status for the message | | Failure after any part was accepted | Delivery is uncertain; CatalEx does not blindly resend the whole reply | | Closed customer-service window | Text and media are held until an inbound message reopens the window. A [registered template](https://docs.catalex.co/channels/whatsapp.md#messages-outside-whatsapps-24-hour-window) can reach the person meanwhile | To verify delivery, inspect the actual WhatsApp conversation: confirm readable text and URLs, open each expected image/document, and test an original question control. Compare chart values with the text. See [WhatsApp setup](https://docs.catalex.co/channels/whatsapp.md#verify-an-actual-reply). # Connect Slack This guide connects a Slack app you create in your own workspace to a CatalEx agent. People then mention the app in a channel, or message it directly, and the agent replies in Slack. ## Before you begin - An [agent with a verified native reply](https://docs.catalex.co/agents/add-an-agent.md), and CatalEx signed in to your CatalEx account. Slack runs through CatalEx Cloud, so you need no server, tunnel or public address. - Permission to create and install an app in the Slack workspace, or a workspace administrator who can approve one. You create the Slack app yourself from a link CatalEx gives you. CatalEx never asks for a Slack configuration token. ## In the app ### Connect an app 1. Open **Add channel** for the agent, as [Messaging channels](https://docs.catalex.co/channels/overview.md#add-a-channel-to-an-agent) describes. Choose **Slack**, then the **New** card. 2. Choose **Open Slack to create the app**. In Slack, choose your workspace, then create and install the app. You don't need the tokens Slack shows afterwards. 3. Open the app's settings in Slack, or choose **Open your apps in Slack** and pick the app. Copy its **App ID**, **Client ID**, **Client Secret** and **Signing Secret** into CatalEx, revealing each secret in Slack first. Choose **Continue**. Each field checks the value's shape. A pasted token (starting `xoxb-` or `xapp-`) is marked at once; copy the named value instead. 4. Slack's approval page opens in your browser. Choose **Allow**. This approval is CatalEx's own, separate from the one Slack showed while creating the app. Expected: the browser says "Slack is connected. You can close this tab and return to CatalEx." and CatalEx says *Slack connected: WORKSPACE*. If you closed the tab, choose **Open Slack to allow**; **Check Slack** checks the outcome. 5. Choose **Done**. The agent now has the Slack channel, and its **Settings** open on the **Channels** tab so you can choose who may message it. To give the app the CatalEx icon, choose **Download icon** in the finished setup, then **Open the app's settings** and upload it. This is optional. If a workspace administrator must approve apps, **Allow** sends them a request instead. After they approve it, choose **Open Slack again** and allow the app once more. To use a Slack app that is already set up and free, choose its card instead of **New**, then **Use ACCOUNT**. **Settings › Channels** can also set up a Slack app with no agent: choose **Add channel**, **Slack**, then **Continue**, and give the app to an agent later with **Add channel** and the app's card. ### Verify a reply 1. In Slack, invite the app to a channel. Use your app's name if it isn't `CatalEx`: ```text /invite @CatalEx ``` 2. Mention the app with a question, such as `@CatalEx what's on the release checklist?`. 3. Check that the agent replies in the thread of your mention, and that the conversation appears under the agent's Slack channel in CatalEx. Slack conversations are read-only in CatalEx: reply in Slack. People can also message the app directly from its **Messages** tab. ## With the CLI Add the app for the agent, then follow the setup checkpoints. The person still creates and allows the app in Slack in a browser; [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#slack) gives every command, the fields and the expected output. ```bash catalex channels add --agent AGENT_ID --type slack --new catalex destinations setup ACCOUNT_ID --slack --action prepare catalex destinations setup ACCOUNT_ID --slack --action connect --value app_name=AGENT_NAME --value bot_display_name=AGENT_NAME --value description=TEXT ``` [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#one-step-at-a-time) gives the order, one short step at a time. The app and its bot take the agent's CatalEx name exactly as `catalex agents list` shows it; the name can't contain the word Slack or exceed 35 characters. The description is one line of at most 140 characters. `connect` prints a short link to create the Slack app. The person then copies four values from the app's **Basic Information** page: the **App ID** and **Client ID** go back in chat, and the **Client Secret** and **Signing Secret** are pasted into two private files, never into chat. Save them: ```bash catalex destinations setup ACCOUNT_ID --slack --action save_credentials --wait --value app_id=APP_ID --value client_id=CLIENT_ID --input-file client_secret=/PRIVATE/client_secret --input-file signing_secret=/PRIVATE/signing_secret ``` Expected: `SLACK_WAITING_APPROVAL`, and with `--wait` the command prints an approval link under "Waiting for you to allow the app in Slack:", then follows the approval: it exits 0 once the workspace is connected, and exits non-zero after a decline or after `--wait-timeout` (10 minutes by default). Only an action's reply carries the link, so to resume or get a new link run `catalex destinations setup ACCOUNT_ID --slack --action reopen --wait`. To use a free app instead, run `catalex channels add --agent AGENT_ID --type slack --account ACCOUNT_ID`. ## Only the person who connected it can use it CatalEx saves the Slack user who chose **Allow**. Only that person can start work, continue it or press its buttons: - Anyone else who mentions or messages the app gets a reply only they can see: "This app was connected by someone else, so only they can use it here." - Anyone else who presses a button gets "Only the person who connected this app can answer this." - Each person is told at most once per conversation every 10 minutes. Neither reply names who connected the app. Other people's messages may still reach the agent as thread context the next time you mention it. An app connected before CatalEx saved who connected it answers nobody, and any mention gets "This app needs whoever connected it to approve it in Slack again before it can answer." Run `catalex destinations setup ACCOUNT_ID --slack --action reconnect`, open the approval link it prints and approve as the person who connected the app. ## How a thread works 1. **Mention to start and continue.** Your mention starts a thread and the agent replies in it. To continue, mention the app again in that thread. Thread replies without a mention cause no reply and no work. 2. **Context.** When you mention the app, the agent also gets what was said where you mentioned it; see [What the agent sees of the conversation](https://docs.catalex.co/channels/slack.md#what-the-agent-sees-of-the-conversation). A mention of the agent reads as its name, such as `@CatalEx`, in CatalEx and to the agent, and a person CatalEx already knows is named too. In a private channel this needs the `groups:history` permission, which new apps have. 3. **One person per thread.** A channel thread belongs to the person whose mention started it. Anyone else who mentions the app there gets, at most once every 10 minutes: "Sorry, I can't take your message: this conversation was started by @PERSON. Mention me in a new message to start your own conversation." Their message doesn't reach the agent except as context. Direct messages and group DMs are not affected. 4. **Progress.** While the agent works, Slack shows "APP is working…" under the thread and one progress message whose text is replaced with each update. The status stays for as long as the agent works, then clears when the agent replies, also when you sent a follow-up while it was working. The final reply is a new message that mentions you, and the progress message is deleted. Questions, permission requests, cards, files and charts are always their own messages. 5. **Superseded questions.** If you mention the app again while a question is still open, that question closes with "Superseded by latest message." and the agent receives your new message. In a thread, type a command after a mention, such as `@CatalEx /stop`. In a direct message no mention is needed: | Command | Effect | | --- | --- | | `/stop` | Stops the conversation's current turn | | `/stop MESSAGE_TS` | Stops the turn of that message | | `/answer MESSAGE_TS TEXT` | Answers that question | | `/quote MESSAGE_TS TEXT` | Sends the text, quoting that message | `MESSAGE_TS` is the Slack timestamp of the message. A malformed command gets a usage reply and runs nothing. These commands work while the agent's **Chat commands** switch is on for its Slack channel, which is the default. Off, a message that starts with `/` reaches the agent as ordinary text and CatalEx sends no reply. The switch is in the agent's **Settings › Channels** panel for Slack; see [Messaging channels](https://docs.catalex.co/channels/overview.md#change-how-an-agent-behaves-in-a-channel). CatalEx's own notices to people in Slack, such as a waiting notice, follow the **Send system messages to people** switch next to it, also on by default. ## What the agent sees of the conversation CatalEx never receives every message of a channel: the Slack app subscribes only to the events a mention needs. When you mention the agent, CatalEx reads what was said where you mentioned it, once, and keeps those messages in the numbered conversation record before your message, each with its author's Slack name. The messages are context for the agent, never instructions, and they start no turn. Files are kept as names and types only. | You mention the app | CatalEx reads | | --- | --- | | Inside a thread | That thread: its parent and replies since the last message CatalEx kept | | At the top level of a channel | The channel's top-level messages before your mention, never the replies under them (a reply also sent to the channel is kept) | - **What the agent is told.** Its input presents the kept messages that arrived before yours, your message last. It shows the newest five with their numbers and says how many there are in all; it reads the others by number, and the replies under a message by its tag, such as `m3`. - **Limits.** One mention makes one Slack read of at most 999 messages and never a second page. In a thread of more than 999 messages, the first mention reads the oldest 999 and each later one reads the next 999, so the newest are missing until then. A top-level mention reads the newest 999. A mention CatalEx receives again, such as a Slack retry, reads nothing. - **Older messages.** When the agent asks for messages before the earliest one kept, CatalEx makes one more Slack read for them, in the same thread or channel scope, and keeps the answer in the record under the next numbers. Those older messages therefore have higher numbers than the ones kept earlier. When Slack says nothing older remains, CatalEx remembers it and does not ask again. A read that Slack refuses or that times out is reported as unavailable, never as "not found". - **Edits and deletions.** An edit of a kept message applies only when a later read returns it, which for a thread is usually only its parent. CatalEx hears of no other edit or deletion in a channel. - **Without the permission.** If the app lacks `groups:history` (private channels) or `channels:history` (public ones), or is not in the channel, the mention reaches the agent without the earlier messages. Add the app to the channel, or set up a new Slack app, which has the permission. An app made by an earlier setup may still subscribe to `message.channels`; CatalEx drops those events, and a new setup no longer asks for them. ## Questions, permissions and charts A permission request is a card: its title as the header, a line naming the tool, the command, the changed file or the call's arguments in a code block (the command shown as code), details as bold labels over their values in two columns, then **Deny** (red, first) and **Approve** (last). Read what the card shows before you press **Approve**. A request that has no such details, and every other question, uses Slack's own layouts, picking the first that fits: | Request | What you see | | --- | --- | | Short text, up to three buttons with short labels | One card with a button per choice | | Longer text, or up to three short choices | A box with the text and a row of buttons, including **Cancel turn** | | Up to ten choices, or a long label | Radio buttons, then **Submit** | | More than ten choices | A drop-down list, then **Submit** | A question's text keeps its bold, lists and links; a permission's raw request stays plain text. **Cancel turn** asks *Cancel this turn?* before it stops the agent; **Approve** and **Deny** do not ask. A question that accepts a typed answer also has a "Type an answer and press Enter" box. Once decided, the same message is edited within a second or two and stays a card (or a box, for a longer request) with the same text; its buttons are replaced by a status that cannot be pressed. A question's card shows "✅ **answer** · answered by @person" under its text; a long answer is shown whole in a box with "Answered by @person". A permission shows "Approved" or "Denied" with "by @person", and any other choice shows its label, such as "Always". A request closed without a decision says "This request is closed." ("⏹ Turn cancelled" after a cancelled turn), and one your later message replaced says "Superseded by latest message." A second answer gets "This question was already answered."; a closed request gets "This request is no longer open." If a press can't be recorded, only the person who pressed hears that it could not be recorded and to press it again. An agent can also send a card with inputs. It is one box: the title is the first line of the message, then the text and buttons. A card that collects values shows real inputs inside the box: a text box, a check box for a yes or no, radio buttons for up to five options, a drop-down list for more, and check boxes or a multi-select list for several. An input the agent does not require is marked optional, and the inputs are listed in two columns that say which button submits them. A card with inputs or a submit button has no "Type an answer" box. The submit button decides straight from what you filled in, with no pop-up, when the values are complete and the agent's form accepts them; if a required value is missing or not accepted, the same form opens in a pop-up so you can finish it. After an answer the card stays in place with "answered by @person", and a later card that replaces it marks the earlier one "(updated later in this thread)". Slack has no audio player, so one shows "[Audio player not shown in Slack]"; a card Slack can't show completely falls back to its text and buttons and says "[Card not fully shown in Slack]". You can always type an answer instead. After a request is decided, later progress for that turn appears under the request's own message. Charts Slack can draw (bar, line, area or pie, within Slack's size limits) appear in the reply itself. Other charts arrive as an image after the reply. If the image can't be sent, the reply says "(The chart preview could not be sent.)" and lists every value. Agent files appear in the thread after the reply and need the `files:write` permission, which new apps have. An agent reply can mention a person by their Slack user ID, written `<@U012AB3CD>`. `@here`, `@channel` and user-group mentions stay plain text. Each final reply ends with a **View conversation** button; see [Replies in messaging apps](https://docs.catalex.co/channels/overview.md#replies-in-messaging-apps). ## Who may approve On CatalEx Cloud only the person who connected the app answers, approves and cancels. `catalex channel-settings show ACCOUNT_ID` reports this. `catalex channel-settings set ACCOUNT_ID --approval approvers_only --approver U012AB3CD` saves an approver list of Slack member IDs, but on CatalEx Cloud it doesn't let anyone else act. ## Troubleshooting | What you see | What to do | | --- | --- | | The app needs approval | Ask a workspace administrator to approve it, then choose **Open Slack again** and allow it once more. | | Slack says it "can't add more apps" | Free Slack workspaces install at most 10 apps. Remove an unused app or upgrade, then install again. | | Slack says sending messages to the app is turned off | In the app's settings on [your Slack apps page](https://api.slack.com/apps), open **App Home** and let people send messages from the **Messages** tab. | | No reply to a mention | Invite the app to the channel and mention it, not another app. Check that CatalEx is running on the agent's computer and that the app is connected to an agent. | | "This app was connected by someone else, so only they can use it here." | Another Slack user chose **Allow**. Set up a new app and allow it yourself. | | "This app needs whoever connected it to approve it in Slack again before it can answer." | Run `catalex destinations setup ACCOUNT_ID --slack --action reconnect` and approve as the person who connected it. You may see `SLACK_INSTALLER_UNPROVEN`. | | A colleague's message in my thread got no answer | Only the person who started a thread can continue it. Your colleague mentions the app in a new message. | | A mention in a private channel arrives without earlier messages | The app lacks `groups:history`, which apps created by current CatalEx setups have, or is not in the channel. Add the app to the channel, or set up a new Slack app for the agent. | | A message starting with `/` reaches the agent as text and nothing answers it | The agent's **Chat commands** switch is off for Slack. Turn it on in the agent's **Settings › Channels** panel. | | A value is refused in the credential fields | Copy the named value again from the app's settings in Slack, revealing secrets first. | | The approval link expired or you chose **Cancel** in Slack | Choose **Open Slack again**. | Slack Connect channels shared with other organizations are not supported on CatalEx Cloud. # Connect Google Chat This guide connects a Google Chat app in a Google Cloud project you control to a CatalEx agent. People then mention the app in a space, or message it directly, and get the agent's replies in Google Chat. Setup takes about 13 minutes: each step shows its own estimate. A new setup needs two files from Google Cloud, a service-account key and an OAuth client. CatalEx refuses to connect without both. ## In the app Open **Add channel** for the agent, as [Messaging channels](https://docs.catalex.co/channels/overview.md#add-a-channel-to-an-agent) describes, choose **Google Chat**, then the **New** card. CatalEx shows six numbered steps, each with its buttons, the text to copy and a **Guide** link back to this page. To set up an app with no agent, use **Settings › Channels › Add channel › Google Chat › Continue** instead and give it to an agent later with **Add channel › Existing**. ### 1. Check you can You need: - A Google Workspace Business or Enterprise account, signed in to Google Cloud. Personal Gmail accounts can't use Google Chat apps. - A Google Cloud organization that lets you create a project and download a service-account key. Organizations created since May 2024 [refuse key downloads by default](https://cloud.google.com/resource-manager/docs/secure-by-default-organizations). You'll find out in the next step, before you set up the app. - An [agent added to CatalEx](https://docs.catalex.co/agents/add-an-agent.md), and CatalEx signed in to your CatalEx account. ### 2. Create the project and key 1. Choose **Create a project**, enter any name, then choose **Create**. 2. Choose **Turn on the Chat API**. Check that your new project is selected at the top of the page, then choose **Enable**. 3. Choose **Make the key** and create a service account with any name. Open it, then choose **Keys › Add key › Create new key › JSON › Create**. A key file downloads. Keep the key file private. Don't share it or paste it anywhere except CatalEx. If Google says **Service account key creation is disabled**, or won't let you create a project, setup can't finish with this account. Close the setup (CatalEx doesn't keep it) and use a Workspace account whose organization allows both. ### 3. Name the Chat app Choose **Open Chat app settings**. Copy **App name** (`CatalEx`), **Avatar URL** and **Description** ("Talks with your CatalEx agent") into Google's form with each value's **Copy** button. A description can be at most 40 characters. If the form is read-only, you're in a project you didn't create. Select your new project at the top of the page, or ask a project Owner for the **Editor** role. ### 4. Connect the Chat app In the same form: 1. Keep **Build this Chat app as a Workspace add-on** selected. 2. Turn on **Enable interactive features**, then select **Join spaces and group conversations**. 3. Under **Connection settings**, choose **HTTP endpoint URL**. Under **Triggers**, choose **Use a common HTTP endpoint URL for all triggers**, then paste the **HTTP endpoint URL** from CatalEx. 4. Under **Visibility**, enter your email address, then choose **Save**. ### 5. Let people allow file uploads A Chat app can't upload a file as itself; Google accepts uploads only from a person. So each person allows CatalEx once to post files for them, through an OAuth client in the Chat app's project. 1. Choose **Open the consent screen** and create the consent screen with user type **Internal**. Only people in your organization can then allow uploads, and Google needs no review. 2. Choose **Open credentials** and create an **OAuth client ID** of type **Web application**. 3. Under **Authorized redirect URIs**, add the **Authorized redirect URI** CatalEx shows. It looks like `https://HOST/apps/googlechat/INSTALLATION/files/allowed`. 4. Download the client's JSON file and keep it private. New setups require this client: **Connect Google Chat** in the next step says "Choose the OAuth client file." and sends nothing until you add it. An app set up before this rule works without one, but files from agents aren't delivered; see [Turn on file uploads for an existing app](https://docs.catalex.co/channels/google-chat.md#turn-on-file-uploads-for-an-existing-app). ### 6. Connect in CatalEx 1. Enter your **Cloud project number**, digits only. It is on your project's **Dashboard** in Google Cloud. 2. For **Service-account key**, choose the key file from step 2. For **OAuth client**, choose the JSON file from step 5. Choose **Connect Google Chat**. CatalEx refuses a wrong file before saving anything, for example "This file is not a Web application OAuth client. Choose the JSON file you downloaded for the OAuth client." or "This file is not a service-account key. Choose the JSON key file you downloaded from the Google Cloud console." If Google doesn't accept the key, nothing is saved; make a new key and try again. 3. CatalEx shows a code. Choose **Copy code**. In Google Chat, open a direct message with the app and send exactly that code. The app answers that you're linked. The code works once. 4. Choose **Verify**. If no message has arrived yet, CatalEx says "No message has arrived yet." Once it says **Connected**, choose **Open Google Chat** and message the app there. The agent now has the Google Chat channel, and its **Settings** open on the **Channels** tab. Only you can use the app: anyone else gets "This app was connected by someone else, so only they can use it here." Until you send the code, everyone gets "This app needs whoever connected it to finish setup before it can answer." ## With the CLI Run these on the computer that runs the agent, signed in to your CatalEx account. `catalex agents list` shows the agent IDs. [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#google-chat) has the same steps with every expected result. 1. Add the app for the agent: ```bash catalex channels add --agent AGENT_ID --type googlechat --new ``` Expected: `Next: set it up:` followed by `catalex destinations setup ACCOUNT_ID --googlechat`. 2. Prepare the setup: ```bash catalex destinations setup ACCOUNT_ID --googlechat --action prepare ``` Expected: a `Callback:` line with the HTTP endpoint URL, then the numbered steps with their console links. Do steps 1 to 5 above in Google Cloud, using that endpoint URL and the redirect URI it shows. 3. Send the project number, the key and the OAuth client as downloaded. Keep both files private (mode 0600); `--input-stdin service_account_key` or `--input-stdin oauth_client` reads one from a pipe, and a secret passed with `--value` is refused: ```bash catalex destinations setup ACCOUNT_ID --googlechat --action authorize --value project_number=PROJECT_NUMBER --input-file service_account_key=/absolute/path/to/chat-key.json --input-file oauth_client=/absolute/path/to/chat-client.json ``` Expected: the first line ends `(committed)`, then `Code to send the app:`. Nothing is saved unless Google accepts the key. Send exactly that code to the app in a Google Chat direct message. 4. Check the connection: ```bash catalex destinations setup ACCOUNT_ID --googlechat --action verify ``` Expected: the first line ends `(verified)`. Until the code arrives, `--json` shows `CALLBACK_CHECK_PENDING`. ## Use the app in a space 1. In a space, mention the app to start a thread, such as `@CatalEx check the build`. 2. The app replies "Received" in the thread and keeps that one message up to date: "Working" while the agent works, "Waiting" while the request is queued or the agent's computer is offline, and "Needs your decision" while a question or permission waits. The agent's progress appears in the same message. 3. The final reply is a new message that starts by mentioning you. It ends with a **View conversation** link (see [Replies in messaging apps](https://docs.catalex.co/channels/overview.md#replies-in-messaging-apps)). 4. To continue, reply in the thread and mention the app again. Google Chat sends the app only messages that mention it. The agent doesn't see anything else posted in the thread, including other people's replies. To give the agent something said there, quote or paste it into the message that mentions the app. In a thread, mention the app and then a command, such as `@CatalEx /stop`. Use `/stop` and the card buttons; the commands that take a `MESSAGE_ID` (`/stop MESSAGE_ID`, `/answer MESSAGE_ID TEXT`, `/quote MESSAGE_ID TEXT`) need a message name that only the Chat API shows. Commands work while the agent's **Chat commands** switch is on for its Google Chat channel, which is the default. Off, a message that starts with `/` reaches the agent as ordinary text and CatalEx sends no reply. CatalEx's own notices, such as waiting and failure notices, follow the **Send system messages to people** switch, also on by default. Both are in the agent's **Settings › Channels** panel for Google Chat, beside **Engagement**; Google Chat has no allowed or blocked lists and no limits there. See [Messaging channels](https://docs.catalex.co/channels/overview.md#change-how-an-agent-behaves-in-a-channel). ## Direct messages Message the app directly, without mentioning it. A group chat (several people, without a space name) reaches no agent: the group gets at most one post saying "This app doesn't work in group chats, so nothing was sent to the agent. Message it directly instead." Use a direct message, or mention the app in a space. Adding the app in a direct message gets the same reply as `/help`. Replies appear in the direct message, and each progress update is its own message. Commands: `/help`, `/agents`, `/switch`, `/sessions`, `/saved`, `/new`, `/status`, and `/cancel` or `/stop`. To send text that starts with `/` to the agent, begin it with `//` (with **Chat commands** off, the text goes to the agent exactly as typed, `//` included). ## Questions and permissions A question or permission request arrives as a card with a button for each choice and **Cancel turn**. A question that accepts a typed answer adds **Your answer** and **Send answer**. A form opens from **Answer form**. Notifications and clients that can't show cards get the choices as a list. Once decided, the buttons are replaced by "Approved by NAME", "Denied by NAME" or "Answered by NAME" with the answer. Later progress for that turn appears on the same card. ### Choose who may approve On CatalEx Cloud only the app's owner (the person who sent the code) answers, approves and cancels. `catalex channel-settings show ACCOUNT_ID` reports this: ```text Who may act in threads: only the app's owner, whatever the saved setting says (anyone). ``` You can still save an approver list from the terminal, for example to keep it ready. It takes Google Chat user names (`users/` and digits): ```bash catalex channel-settings set ACCOUNT_ID --approval approvers_only --approver users/123 ``` `--approval` takes `anyone`, `anyone_answers` or `approvers_only`; a mode other than `anyone` needs at least one approver. An approver that isn't a `users/` name exits with code 2. The setting doesn't apply to direct messages. ### Find someone's ID Google Chat doesn't show anyone's `users/` ID. In a space with the app, mention the app with `/people` and each person: ```text @CatalEx /people @Alex @Sam ``` Only you see the reply, which lists each person once, such as `Alex: users/222`. Nothing reaches the agent. ## Files and formatting When an agent replies with a file or a chart, CatalEx uploads it with one person's permission: the person who wrote last, if they allowed uploads, otherwise the person who set the app up. The reply's text comes from the app, then each file arrives after it as a message from that person. A person allows uploads once from the app's card in Google Chat (**Allow file uploads**). If nobody can upload a file, the app posts one card saying "NAME wasn't delivered". Charts arrive with every value in the reply, then the chart image. If the image can't be prepared, the reply says "(The chart preview could not be sent.)". Files people attach, of any type, reach the agent with their message. Agent Markdown is shown formatted: bold, italic, strikethrough, code, links, lists and quotes. Google Chat has no headings or tables, so a heading becomes a bold line and a table becomes a code block of its pipe-separated text. Long replies are split into parts labelled `(n/m)`. ## Turn on file uploads for an existing app An app set up without an OAuth client handles text, cards and approvals, but files from agents aren't delivered. Its row on the **Channels** tab of the agent's settings says "Files from agents aren't delivered on this app. Choose Turn on file uploads… and add its OAuth client." 1. Create the OAuth client as in [step 5](https://docs.catalex.co/channels/google-chat.md#5-let-people-allow-file-uploads). 2. Open the agent's **Settings**, choose the **Channels** tab, then **Turn on file uploads…** on the Google Chat row. 3. Choose **Copy redirect URI** and add it under **Authorized redirect URIs** of the OAuth client. **Open Google Cloud credentials** opens the page. 4. For **OAuth client**, choose the downloaded JSON file, then **Save**. Expected: "File uploads are on. Each person allows them once from the app's card in Google Chat." From the terminal: ```bash catalex credentials set ACCOUNT_ID --key-file CLIENT_FILE ``` Expected: `Credential operation OPERATION_ID: committed.` `catalex accounts health` stops reporting that files from agents are not delivered. ## Replace the app's key After rotating the service-account key, or when Google refuses the saved one, create a new JSON key in the Chat app's project ([step 2](https://docs.catalex.co/channels/google-chat.md#2-create-the-project-and-key)). In the app: 1. Open **Settings › Channels** and open the **Google Chat** card. 2. On the app's card, choose **Replace key…** and pick the downloaded file. Expected: *Key replaced. The provider and callback checks passed.* If Google refuses the file, the card says so and the saved key stays in use. From the terminal: ```bash catalex credentials set ACCOUNT_ID --key-file KEY_FILE ``` Expected: an `Operation:` line, then `Credential operation OPERATION_ID: committed.` The app keeps its project, endpoint and chats. If Google refuses the key, the command exits with `CREDENTIAL_REJECTED` and the saved key stays in use. If `TARGET_CHANGED` appears, run `catalex credentials status ACCOUNT_ID` and try again. ## When Google refuses the saved key If the service account was deleted, or its key was removed or rotated, Google refuses the key the app saved. While that lasts: - A person who messages the app gets "CatalEx can't reply here right now: Google refused this app's saved key. The app's owner can replace the key in CatalEx." Only the person's own message gets this answer; the app can't post anything else without a working key. - `catalex accounts list` adds "· Needs attention" to the app and prints the fix, `catalex status` marks the destination as needing attention, and `catalex accounts health ACCOUNT_ID` names the finding. - If Google keeps refusing it across three health checks, CatalEx deletes the saved key and disables the account until you save a new one (finding `PROVIDER_CREDENTIAL_RETIRED`). Create a new key and [replace it](https://docs.catalex.co/channels/google-chat.md#replace-the-apps-key). When you choose **Verify** during setup and Google refuses the key, the dialog says to check in the Google Cloud console that the key is still active, then verify again. ## Move or remove the app Each Google Chat app reaches one agent at a time. To move it, add it as another agent's channel from **Add channel › Google Chat**, choosing **Move ACCOUNT** on the app's card, and confirm, or run: ```bash catalex channels add --agent AGENT_ID --type googlechat --account ACCOUNT_ID --move ``` A reply in a thread that belonged to the previous agent gets "This app now reaches AGENT, so nothing was sent to an agent. Mention the app in a new message to start a new conversation." To remove an app no agent uses, run `catalex accounts remove ACCOUNT_ID` and confirm. The app stops answering and its conversations are kept. CatalEx doesn't delete the Chat app or its key in Google Cloud; delete them there when you no longer need them. ## Troubleshooting | What you see | What to do | | --- | --- | | The Chat app form is read-only | Select your own project, or ask a project Owner for the **Editor** role. | | Google refuses the key | Create a new JSON key for a service account in the Chat app's project and enter it again. | | "This app needs whoever connected it to finish setup before it can answer." | Send your code to the app in a direct message, then choose **Verify**. | | "This app was connected by someone else, so only they can use it here." | Only the person who sent the code can use the app. | | "This app is not connected to an agent yet, so nothing was sent to an agent." | Add the app to an agent with **Add channel › Google Chat** and the app's card. | | Mentions get no reply at all | Check that the endpoint URL in the Chat app matches the one setup showed. People who aren't allowed to use the app, or are over a limit, get no reply by design. | | "Received" stays and no reply follows | The agent's computer isn't connected. Start CatalEx on it. | | A reply says "NAME wasn't delivered" | Nobody allowed file uploads, or Google refused the permission. Choose **Allow file uploads** on the card, or [turn on file uploads](https://docs.catalex.co/channels/google-chat.md#turn-on-file-uploads-for-an-existing-app). | | Google refused the saved key, or the app answers "CatalEx can't reply here right now: Google refused this app's saved key." | Check that the key is still active in Google Cloud. If it was rotated or deleted, [replace the key](https://docs.catalex.co/channels/google-chat.md#replace-the-apps-key). | | "Choose the OAuth client file." when you connect | New setups need the OAuth client's JSON file beside the key. Create it as in [step 5](https://docs.catalex.co/channels/google-chat.md#5-let-people-allow-file-uploads). | | A message starting with `/` reaches the agent as text and nothing answers it | The agent's **Chat commands** switch is off for Google Chat. Turn it on in the agent's **Settings › Channels** panel. | # WhatsApp Personal WhatsApp Personal lets an agent answer on your own WhatsApp number. You link CatalEx as a device on your phone, the way WhatsApp Web is linked, and the agent reads and replies through it. To use a business number with Meta credentials instead, see [Connect WhatsApp](https://docs.catalex.co/channels/whatsapp.md). :::warning Experimental WhatsApp Personal is experimental and available on CatalEx Cloud only. WhatsApp doesn't officially support linking automation tools, and it may temporarily or permanently restrict a number that uses them. ::: One linked number can serve several of your agents. Each agent answers its own people and groups, and no person or group is answered by two agents. A number is linked once per CatalEx account, so it shows the same agents on every computer you are signed in on. An agent answers on one number. ## Before you begin - An agent with a [verified native reply](https://docs.catalex.co/chats/native-chats.md). - CatalEx signed in to your CatalEx account on this computer. Adding a number is refused without it. - Your phone, with WhatsApp on the number you want to link. ## In the app ### Link a number 1. Open the agent's **Add channel**: the **+** on its tile, **Add channel** on the **Channels** tab of its settings, or step 3 of setting up a new agent (**Take it where you work**). Choose **WhatsApp Personal**. 2. If you have linked numbers already, they appear as cards with the number and the agents on it. To use one of them, select it and choose **Use number**, then continue with [Choose who the agent answers](https://docs.catalex.co/channels/whatsapp-personal.md#choose-who-the-agent-answers). To link another number, choose the **New** card. With no linked number, the setup shows at once. 3. Under **How to link**, choose **Scan a QR code** or **Use a pairing code**. For a pairing code, enter **Your WhatsApp number** with its country code (such as `+15551234567`). 4. Read the note, then tick **I understand this isn't an official WhatsApp integration, and WhatsApp may limit numbers that send spam.** Choose **Show QR code** (or **Get code** for a pairing code). 5. On your phone, open WhatsApp, choose **Settings › Linked devices › Link a device** and scan the QR code. For a pairing code, choose **Link with phone number instead** on the phone and type the code CatalEx shows. A timer shows how long the code lasts, and **Open WhatsApp's help for linking a device** opens WhatsApp's instructions. **Cancel link** stops the attempt. 6. When CatalEx says *WhatsApp Personal linked: +NUMBER (NAME)*, choose who the agent answers (below), then **Done**. If the code runs out before you use it, choose **Show a new code**. If you scan a number you already linked, CatalEx reuses it and never makes a second account for it. Your phone lists the device as `CatalEx`. If a link does not finish, the next try resumes the same setup and shows the reason with **Try again**. ### Choose who the agent answers After linking, **Who AGENT answers** shows two fields, **Numbers** and **Groups**, with the people and groups as pills. Remove one with its ×. 1. Choose the **+** in a field to open a list of your chats and contacts. Pick a person or group from it. 2. To search, type a name or a number. Typing a full number offers that number. Typing digits offers a prefix such as `+44*`, which matches every number starting with those digits. Press Enter to add what you typed. 3. A new agent starts with your own number, shown as *You*, unless another agent already holds it. Your own number is always yours: message yourself in WhatsApp to try the agent. The list shows who else answers each entry. A person or group another agent holds is grayed and names that agent, and so is a number or prefix you type that another agent's entry already covers. If you add something another agent holds, CatalEx saves the rest and lists what it refused, for example "A is already linked to another agent. Unlink it first, then try again." An agent that already answers on another number sees "AGENT already answers on NUMBER. Remove it from that number first." The list says *Syncing your chats…* while CatalEx reads the number's chats for the first time. People and groups nobody holds get no reply, and their media is never downloaded. ### Change who an agent answers later There are two places, and both edit the same entries. - **Settings › Channels.** Choose the **WhatsApp Personal** card ("N numbers · M agents"). Linked numbers are listed with their agents on the left, with a search box. Select an agent to see its **People**, **Groups** and **Blocked** pills on the right, each with a **+** that opens a search. A full number offers *This number*, and digits offer a prefix such as `44*`. **Blocked** belongs to the number, so every agent on it shares that list. Changes are drafts: **Cancel** and **Save** appear when something changed, and **Save** applies them. A refusal, such as a person another agent already answers, shows as text under the fields with that pill outlined in red; the changes that don't conflict are saved. - **The agent's settings.** Open it, choose the **Channels** tab and open the **WhatsApp Personal** card. It shows the same **Numbers**, **Groups** and **Blocked** rows, plus **Limits** and the channel's other settings. **Save** and **Cancel** appear when something changed. A number that is both allowed and blocked turns red with "Red numbers are allowed and blocked. Keep one." ### Groups An agent works in a group only when you allowed that group, and then only when someone mentions you in it or replies to a message you or the agent sent. Other group messages start no work. Your own messages in the group don't start work either. A mention counts only from WhatsApp's mention list, so typing `@name` as text doesn't wake the agent. Anyone who mentions you is answered, even if they aren't on your list, unless you blocked them. Each reply in a group quotes the message that mentioned you. In the picker a group shows a *Group* tag. One you have left shows *You're not in this group*, and the agent can no longer send to it. #### Conversation record While an agent serves a chat, CatalEx keeps every message of it, not only the ones addressed to the agent, so the agent can tell who wrote what. Each message gets a number in its chat, shown to the agent as `m1`, `m2` and so on. Numbers only grow and are never reused; an edit or a deletion keeps the number. Only WhatsApp Personal keeps messages nobody addressed to the agent. Slack keeps what it reads once, when the agent is mentioned ([Slack](https://docs.catalex.co/channels/slack.md#what-the-agent-sees-of-the-conversation)); WhatsApp and Google Chat pass the agent only what is sent to it. - **What is kept.** In an allowed group: messages from other members, tagged or not, your own messages from your phone (labelled as yours) and the agent's replies. In a direct chat: the other person's messages, including those a pause turned away, your own messages from your phone and the agent's. A message that does not address the agent still starts no work. - **What is not kept.** Messages from a blocked person or someone outside the allowed lists, from a group you did not allow, and messages sent before the agent was enabled. - **Quotes.** When someone quotes a message, the agent is told which message it is, who wrote it and who is quoting it, so it does not mistake the person asking for the author. If the quoted message was not kept, the agent gets WhatsApp's own excerpt, or *Unknown person* when WhatsApp gives no author. - **What the agent is told.** When a message arrives, the agent's input presents the kept messages that arrived before it, with the current message last, so it answers with the whole conversation in view. It shows the newest five with their numbers and says how many there are in all; it reads the rest by number. The number shown is the `providers.record_unseen_inline` setting of the messaging service (0 to 5). - **Reading and replying.** The agent reads any kept message of the chat it is working in, or the messages around it, by number, from your computer's copy first, and the replies under a message by its tag, such as `m3`. Only the chat it is working in can be read. A read says what it found: the messages, none, only part of them, or that the source could not be reached; with the service out of reach, the computer answers from its copy and says the result is partial. It can reply to or react to a kept message by its number; a number the record does not hold is refused. - **Catching up.** CatalEx Cloud sends each new message to the computer that runs the agent as it happens. A computer that was offline fetches what it missed, edits and deletions included, when it connects. - **Where it ends.** Removing a group from the allowed groups, removing a person from the agent, deleting the chat or the agent, or unlinking the number erases the record in CatalEx Cloud and on your computer. Messages older than your conversation retention are removed; the numbers of the rest don't change. The app shows the same conversations as before; the record is for the agent. A computer on an earlier CatalEx than 0.1.19 still gets each message and its quote as before, without the record. ### Pause when I reply When you write in a contact's chat yourself, the agent stays quiet in that chat for a number of minutes, 15 by default. Each agent on the number has its own value. 1. Open the agent's settings and the **Channels** tab, then the **WhatsApp Personal** card. 2. Set **Pause when I reply** to a number of minutes from 0 to 1440. 0 means Off, and the agent never pauses. 3. Choose **Save**. The new value also applies to pauses already running, and a message that arrives during a pause is kept in the blocked list. Your own messages in a group don't start a pause. ### Chat commands and system messages On the agent's **Channels** tab, the **WhatsApp Personal** card has two switches, **Chat commands** and **Send system messages to people**. Both are off by default. While **Chat commands** is off, a message starting with `/` is ordinary text for the agent; the [CatalEx Manager](https://docs.catalex.co/channels/whatsapp-personal.md#the-catalex-manager-group) commands are always on. While **Send system messages to people** is off, CatalEx's own notices stay in the app. From the terminal, use `catalex accounts agents switches show|set ACCOUNT_ID --agent AGENT_ID`. ### Approvals Only you decide an approval or a permission question, and the same rule applies in direct chats and in groups. The agent sends the question as a message with a WhatsApp poll under it. The message starts "Question for NAME:" because WhatsApp can't show it to one person only. Answer by: - voting in the poll from your own phone, or - replying to the message or the poll with `1`, `1. Allow` or `allow`, or - in a group, tagging the agent's number with the same words, when it is the only question open there, or - answering in the CatalEx app. The first answer decides. If someone else votes or replies, CatalEx tells them the question was for you, the question stays open and nothing reaches the agent. Anyone in the chat may still answer an ordinary question that offers choices. A question with fewer than two or more than twelve choices, or one that takes a typed answer, arrives as text. Whether the agent asks at all is its own **Approvals** setting on its **General** tab, the same for every chat. An agent that must never ask is set to **Always deny**. ### The CatalEx Manager group The first time you link a number, CatalEx creates a WhatsApp group named **CatalEx Manager** that only you are in, and sends a welcome into it. In it only your own messages are read. Type `/help` there for the commands. They list your agents, add or remove their chats, search for people and groups, change an agent's pause, engagement, switches and limits, answer waiting approvals, show usage and open an agent's settings; [CatalEx Manager group](https://docs.catalex.co/channels/admin.md#catalex-manager-group) lists them all. In another chat, `/agent NAME` or `/agent NAME MESSAGE` brings that agent into the chat. If you leave or delete the group, open **Settings › Channels**, select the number's agent and choose **Recreate manager channel**. CatalEx says "CatalEx Manager group created. Open your messaging app to manage your agents." If the number is not connected it says "Connect this number first, then try again." A number linked before this feature has no group until you recreate it. ### Link again, unlink and remove - **Disconnected.** If you unlink CatalEx on your phone, or another CatalEx account links the same number (the latest link wins), the number shows *Disconnected* in **Settings › Channels** with **Link again**. Link it again from any computer. Your agents, entries and conversations stay. When another account takes the number over, CatalEx says "This WhatsApp Personal number is now connected to another CatalEx account." - **Unlink an agent.** In **Settings › Channels**, select the agent and choose **Unlink** (bottom left). CatalEx asks "Unlink AGENT from WhatsApp?" and says either "WhatsApp stays linked on your phone because other agents use this number." or, for the last agent, "This removes WhatsApp from AGENT and from linked devices on your phone." - **Remove a number.** A number with no agents, or a disconnected one, shows **Remove number**. It asks "Remove this number from CatalEx?" On a disconnected number with agents it removes each agent in turn. If a step fails, it says why; choose **Remove number** again to finish. Removing the last agent or the number removes CatalEx from your phone's **Linked devices** and removes the conversations from CatalEx. Chats on your phone are not touched. ### Verify a reply Message yourself in WhatsApp ("Message yourself") and check that the agent answers there. The chat also appears under the agent's WhatsApp Personal channel in CatalEx. ## With the CLI Run these from any directory with `catalex` installed and signed in on this computer. Flags are in the [command reference](https://docs.catalex.co/reference/cli.md). ### Link a number ```bash catalex channels add --agent AGENT_ID --type whatsapp_personal --new catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link ``` The first command adds the channel and prints the account ID. The second accepts the risk notice that `catalex destinations setup ACCOUNT_ID --whatsapp_personal` shows; run it only once the number's owner has agreed. In a terminal the second draws a QR code; scan it as in the app. Add `--value phone=+15551234567` to get a pairing code instead. Expected last line: `Linked + ().` Ctrl-C leaves the link open and prints how to resume it with `--operation-id`. With `--json` the command does not wait. Add the number with `catalex channels add --new` as above. A number added alone with `catalex accounts add` has no agent: give it one with `catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true --value agent_id=AGENT_ID`, or run the plain `catalex destinations setup ACCOUNT_ID --whatsapp_personal`, which lists the agents to choose from. Without an agent the command refuses with `SETUP_AGENT_REQUIRED` (exit status 2) and names `catalex channels add --agent AGENT_ID --type whatsapp_personal --new`, before anything is sent. `catalex accounts list` shows your numbers (*Connected* or *Disconnected (CODE)*) with the agents on them, and `ACCOUNT_ID` is the ID it prints. `catalex accounts health` prints numbered fixes for anything that needs attention. ### Join an agent to a linked number ```bash catalex channels add --agent AGENT_ID --type whatsapp_personal --account ACCOUNT_ID --entries '+33*' catalex accounts entries show ACCOUNT_ID catalex accounts entries add ACCOUNT_ID --agent AGENT_ID +44* catalex accounts entries add ACCOUNT_ID --agent AGENT_ID --group Family catalex accounts entries move ACCOUNT_ID --from AGENT_ID --to OTHER_AGENT_ID +44* catalex accounts entries remove ACCOUNT_ID --agent AGENT_ID +44* ``` - An entry is a phone number, a prefix such as `+44*` or a `group:ID`. `--group` takes `group:ID`, a bare ID or a group's exact name, and may repeat. - An entry another agent holds is not added. The command lists each one with the agent that holds it and exits 5 (`ENTRY_TAKEN`) after saving the rest. Remove it from that agent or `entries move` it. - An agent that already answers on another number is refused with `AGENT_ALREADY_BOUND`, and the error names that number. - `entries show` marks your own number and shows an agent whose computer is offline as `offline`; `entries remove` and `agents remove` still take its ID. ### Find people and groups ```bash catalex accounts candidates ACCOUNT_ID --search family --limit 10 catalex accounts candidates ACCOUNT_ID --groups --search family ``` Each row shows the entry to use and whether it is already allowed or blocked. On a shared number a `HELD BY` column names the agent that holds it; `--agent AGENT_ID` marks what that agent already holds. Without a search the list is the 100 most recent chats, then saved contacts by name. While the chats are still syncing the command says so and exits 0; run it again in a moment. ### Block people and set an agent's pause ```bash catalex accounts access show ACCOUNT_ID catalex accounts access set ACCOUNT_ID --block +15557654321 catalex accounts agents settings show ACCOUNT_ID --agent AGENT_ID catalex accounts agents settings set ACCOUNT_ID --agent AGENT_ID owner_pause_minutes=30 catalex accounts agents settings set ACCOUNT_ID --agent AGENT_ID owner_pause_minutes=off ``` On a number several agents share, the entries are the allowlist, so `accounts access set` with an allowlist is refused (`SETTINGS_UNSUPPORTED`); use `--block`. `--allow` and `--block` take people only, and a group can't be blocked. Your own number can't be blocked. `owner_pause_minutes` is a whole number from 0 to 1440, or `off`, and it applies from the agent's next message. A new agent starts with 15. `catalex accounts limits show|set ACCOUNT_ID --agent AGENT_ID` reads or sets one agent's rate limits on the number. `catalex accounts agents engagement show|set ACCOUNT_ID --agent AGENT_ID [low|medium|high|default]` sets how often one agent joins conversations on the number. ### Unlink, remove and recreate the manager group ```bash catalex accounts agents remove ACCOUNT_ID --agent AGENT_ID catalex accounts remove-link ACCOUNT_ID catalex accounts manager recreate ACCOUNT_ID ``` `agents remove` asks first (default No; `--yes` confirms, and without a terminal it refuses without `--yes`). The question names whether WhatsApp stays linked on your phone. `remove-link` removes a number no agent uses and disconnects its device; a number with agents exits 5 (`ACCOUNT_HAS_AGENTS`). `manager recreate` prints `Created the CatalEx Manager group for ACCOUNT_ID. Open your messaging app and type /help in it.` A number that isn't connected exits 3 (`ACCOUNT_OFFLINE`), so link it again first. `catalex channels remove CHANNEL_ID` and `catalex agents delete` name a linked number they will disconnect and ask first (default No). To link again after your phone unlinked CatalEx, run the `catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link` step that `catalex accounts health` prints. If another session took over the connection (`PROVIDER_CONNECTED_ELSEWHERE`), run it with `--action reconnect`. Commands that read your numbers also notice a number that moved to another account. They print `This WhatsApp Personal number is now connected to another CatalEx account.` once, on stderr. ## Limits - The agent only answers chats that wrote to it. It can't start a new conversation (`DELIVERY_RESTRICTED`). - Text, images, voice notes, video and documents work in direct chats and allowed groups. Any other file the agent sends goes as a document. - CatalEx sends no read receipts, presence or typing indicators. - Messages sent one after another are held and reach the agent as one turn, so it answers once. - One number belongs to one CatalEx account at a time. - Final replies carry no **View conversation** link. - The flow is checked against a simulated provider; group creation and pictures are verified only on a real number. ## Codes | Code | Meaning | What to do | | --- | --- | --- | | `LINK_TIMEOUT` | Nobody scanned in time. | Choose **Show a new code**, or run `--action link` again. | | `LINK_NUMBER_MISMATCH` | The scanned number is not this account's. | Link the account's own number. | | `ACCOUNT_ALREADY_BOUND` | A WhatsApp business account in CatalEx holds the number. | Use another number or remove that account. | | `PROVIDER_LINK_LOST` | The device was unlinked on the phone. | Link again. | | `PROVIDER_NUMBER_RELINKED` | Another CatalEx account linked this number. | Link again to take it back. | | `PROVIDER_CONNECTED_ELSEWHERE` | Another session took over the connection. | Run `--action reconnect`. | | `PROVIDER_SUSPENDED` | WhatsApp temporarily restricted the number. | Wait until the time shown. | | `LINK_CLIENT_OUTDATED`, `PROVIDER_CLIENT_OUTDATED` | WhatsApp refuses the service's client version. | Wait for a CatalEx update. | | `ENTRY_TAKEN` | Another agent on the number holds an entry. | Remove it from that agent, or `entries move` it. | | `AGENT_ALREADY_BOUND` | The agent already answers on another number. | Remove it from that number first. | # Administrator messaging An administrator number reaches every agent you have and admits only the people on its admin list. An ordinary agent number, set up from an agent's **Add channel**, reaches one agent. An admin account is never a channel of an agent, and its kind can't change later: to switch, remove the account and add it again. Administrator accounts are CLI-only in CatalEx 0.1.23: the app's **Admin accounts** tab on the Settings page is not released yet, so there are no app steps for it. Use WhatsApp: new admin Slack bots aren't available, and Google Chat has no admin kind. For managing agents from WhatsApp inside the app, see [CatalEx Manager group](https://docs.catalex.co/channels/admin.md#catalex-manager-group). ## With the CLI ### Set up a WhatsApp administrator number 1. Add the admin account: ```bash catalex accounts add --platform whatsapp --name "Admin WhatsApp" --admin ``` Note the account ID it prints. 2. Connect the number with your Meta credentials, using the same actions as an agent number in [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md#whatsapp): ```bash catalex destinations setup ACCOUNT_ID --whatsapp --action prepare catalex destinations setup ACCOUNT_ID --whatsapp --action discover --input-file app_secret=/private/meta-app.secret --input-file access_token=/private/whatsapp.token --value business_account_id=BUSINESS_ACCOUNT_ID --value phone_number_id=PHONE_NUMBER_ID ``` Repeat `catalex destinations setup ACCOUNT_ID --whatsapp` and take each allowed action until the first line ends `(verified)`. See [Connect WhatsApp](https://docs.catalex.co/channels/whatsapp.md) for where to find each Meta value. 3. Check and edit who it admits. The list starts with the number named during setup and your verified WhatsApp numbers: ```bash catalex accounts admins list ACCOUNT_ID catalex accounts admins add ACCOUNT_ID --phone +15551234567 catalex accounts admins remove ACCOUNT_ID --phone +15551234567 ``` Use phone numbers with their country code; repeat `--phone` for several. :::warning An empty admin list admits **no one**. This differs from an agent number, where an empty allowlist admits everyone. Being on an agent number's allowlist never puts a person on an admin list. ::: 4. From an admitted phone, message the number and send `/help`. Then send `/agents` and check that your agents are listed. ### Use the administrator chat | Command or action | Result | | --- | --- | | `/help` | Shows the commands this number supports | | `/agents` | Lists your agents to choose from | | `/switch` | Chooses an agent or session from the returned choices | | `/status all` | Lists each agent with its selected or latest conversation, its state and whether its computer is connected. It changes nothing | | `/new AGENT` | Starts and selects a new conversation with that agent | | `/settings [AGENT]` | Shows that agent's settings and lets you change them | | WhatsApp **Reply** on an agent's message | Sends your text to that agent's conversation without changing the selected agent | With more than one agent, each agent's message starts with its name in bold. Replying to a question with a number or text answers it. If the agent you replied to is no longer available, you're told and nothing is sent. `/settings` offers choices as buttons, a list or numbered text. A value such as a name is your next message, taken as typed. Each change goes through the same checks as the CatalEx app and is recorded in the agent's activity (`catalex agents activity AGENT_ID`). Deleting an agent or removing a channel asks *Yes* or *No* first. Numbers, admin lists, access rules and number rate limits change only in the CatalEx app or with `catalex`. The administrator chat keeps its commands whatever the agent's **Chat commands** switch says. `/settings` also works for the owner on an ordinary agent number while that agent's **Chat commands** switch is on (it starts off on WhatsApp; see [Messaging channels](https://docs.catalex.co/channels/overview.md#change-how-an-agent-behaves-in-a-channel)). It doesn't work for anyone else there, or while the agent's computer is offline. Nothing is queued; repair the connection and send the command again. ## CatalEx Manager group A WhatsApp Personal number you link gets its own manager chat, so you can list and manage your agents from WhatsApp without opening the app. This is separate from an administrator number: it is your own linked number, and only you can use it. ### In the app 1. Link your number as described in [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md). The first time a number is linked, CatalEx creates a WhatsApp group named **CatalEx Manager** with only you in it, the CatalEx mark as its picture, and a welcome message. 2. Open the group in WhatsApp and send `/help`. 3. If you left or deleted the group, or linked the number before this existed, open **Settings › Channels**, open the **WhatsApp Personal** card and choose **Recreate manager channel** beside the number. CatalEx says *CatalEx Manager group created. Open your messaging app to manage your agents.* The number must be connected; otherwise it says *Connect this number first, then try again.* The old group stops being the manager chat. Only your own messages in the group are read, and the group is never added to an agent. In it: | Command | Result | | --- | --- | | `/help [COMMAND]` | The command list, or one command's forms with an example each | | `/agents` | Every agent on the number, numbered, online or offline, with the chats each answers | | `/agent NAME` | That agent's chats, with the add and remove commands to copy, and a numbered menu of its settings | | `/agent NAME add CHAT` | Adds the chat to the agent | | `/agent NAME remove CHAT` | Removes the chat from the agent | | `/search QUERY` | Up to 10 people and groups matching a name or number, each with the agent that has it | | `/agent NAME status` | The computer that runs the agent, whether it is online, and how many chats it answers | | `/agent NAME pause [MINUTES\|off]` | How long the agent stays quiet after you reply in a chat yourself. Presets are off, 5, 15, 30 and 60 minutes; any value from 0 to 1440 works | | `/agent NAME engagement [low\|medium\|high\|default]` | How often the agent speaks up | | `/agent NAME switches`, `chat-commands on\|off`, `system-messages on\|off` | Whether slash commands work in the agent's chats on this number, and whether CatalEx's own notices go to people | | `/agent NAME limits [LIMIT VALUE\|none]`, `/limits` | The agent's rate limits on this number, or every agent's with how many messages were turned away in the last day | | `/access` | How many messages were turned away (not allowed, blocked or paused), the size of the block list and the latest rate-limited messages. It is read only | | `/pending`, `/request REF` | The approvals and questions your agents are waiting on, each with a short reference, or one request with its options | | `/approve REF [OPTION]`, `/decline REF`, `/answer REF TEXT` | Decide a waiting request as the owner. A request that is no longer open answers *That request is no longer open.* | | `/computers` | Your computers, online or offline, and the agents each offers | | `/usage [today\|week\|month\|all] [NAME]` | Messages, conversations, people and cost by agent. The default is the week; *today* counts in UTC | | `/agent NAME settings`, `/settings NAME` | The agent's settings as set on its computer: name, AI and model, effort, folder, tools, limits, who it may message, channels and delete | | `/agent NAME settings SETTING`, `/agent NAME set SETTING VALUE` | Show or change one setting. The value is the rest of the command, as typed | | `/agent NAME set SETTING [VALUE] confirm` | Answers a question CatalEx asks first, such as `/agent Sales set delete confirm` | | `/agent NAME activity` | The agent's recent settings changes: what, the outcome, who and when | | `/agent NAME behavior [SETTING [VALUE]]` | Tone, charts, interactive cards, media sharing and engagement frequency | `CHAT` is a phone number such as `+919812345678`, a person or group name, or the number of a result from your last `/search`, as in `/agent Sales add 2`. A name that matches several chats lists them and changes nothing. If another agent already answers the chat, CatalEx tells you to remove it first. `NAME` is an agent's exact name; in the manager group only, a partial name lists the agents it could mean and runs nothing. Lists keep no state. Each numbered line ends with the command it stands for, such as `1. Sales → /agent Sales pause 30`. Reply to (quote) the list message with just the number to run that line. A bare number, a reply to a message CatalEx did not send, or a number the list does not have changes nothing and answers with a hint. Every answer that changes something ends with the command that reverses it, such as `To undo: /agent Sales pause 15`; there is no `/undo`. Settings, activity and behavior live on the computer that runs the agent. CatalEx answers `Asking COMPUTER…` at once and posts the computer's answer in the group when it arrives. An offline computer answers `COMPUTER is offline.`, and a computer on an older CatalEx answers `Update CatalEx on COMPUTER to change settings from chat.`; nothing is queued, so send the command again once it is fixed. A question the computer does not answer within about two minutes is dropped. Each change from chat is recorded in the agent's activity (`catalex agents activity AGENT_ID`) with the account, the person and the time. A settings change has no undo line; the reply lists the settings after the change, and each line changes it again. Commands cannot do everything. Join codes, allow and block lists, admin lists, linking or removing accounts, credentials, and stopping, resetting or uninstalling CatalEx answer *Use the CatalEx app for this.* A limit above what the number allows answers *That is above the most this number allows (CEILING).* and changes nothing. The commands read and change only your own account's agents. In any other chat, send `/agent NAME` to bring that agent in, replacing any other agent there, or `/agent NAME MESSAGE` to also ask it something. The agent sees the message as written by you, and its reply arrives in that chat. CatalEx answers *NAME is added to this chat.* The command itself never reaches an agent. ### With the CLI ```bash catalex accounts manager recreate ACCOUNT_ID ``` It creates the group again for a connected number and prints `Created the CatalEx Manager group for ACCOUNT_ID. Open your messaging app and type /help in it.` A number that isn't connected is refused, and an app without a manager group exits 5 (`NOT_SUPPORTED`). The agent and chat commands themselves are WhatsApp messages, not `catalex` commands. # Settings Most choices belong to one agent and live in that agent's settings. The app's **Settings** holds what applies to this computer and your account: AI providers, channels and devices, which includes the account. A few options are set only from the terminal. ## In the app The sidebar's **Settings** item opens three tabs: | Tab | What it holds | Details | | --- | --- | --- | | **AI providers** | Codex and Claude Code: whether each is ready and whether CatalEx uses it | [AI providers](https://docs.catalex.co/settings/ai-tools.md) | | **Channels** | The Slack, WhatsApp and Google Chat connections and the numbers they share between agents | [Channels](https://docs.catalex.co/channels/overview.md) | | **Devices** | Your computers and the devices signed in to your account, with **Add device**, and **Delete account** at the bottom right | [Devices](https://docs.catalex.co/settings/computers.md), [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | CatalEx needs a sign-in, so the app always has an account. **Log out** is in the account entry at the bottom left. The app uses a light theme only. It has no **Admin accounts** tab in this release. ### Open an agent's settings 1. Open **Agents**. 2. Choose the gear on the agent's tile (its tooltip reads **Settings**), or **Settings** in the header of one of its chats. The agent's chats open with its settings in a card beside the chat. The card is titled with the agent's name, such as **Support agent's settings**. It shows the agent's picture, its name, its working folder (read-only) and its status. **More actions** at its top holds **Rename agent**, **Change picture** and **Delete agent**. Choose **Settings** in the chat header again, or **Close settings** (×) on the card, to close it. In a narrow window the card shows alone in place of the chat. On a wide window, drag the handle between the chat and the card to resize them. The card has four tabs: | Tab | Cards and controls | | --- | --- | | **General** | **AI**: **AI provider** (Codex or Claude), **Model**, **Effort**. **How it replies**: **Chattiness** (Low, Medium, High), **Tone** (Default, Professional, Friendly), **Humanizer** (Enabled, Disabled). **Starting chats**: **Send without being asked**, **Message new people**. | | **Channels** | One card per Slack, WhatsApp or Google Chat connection, each opening in place to its access, engagement and limits, with **Remove channel** at the end. **Add channel** is the last card. Native chats have no card. | | **Permissions** | **Approvals** (**Use global settings**, **Always ask**, **Agent recommends**, **Always approve**, **Always deny**). **CatalEx**: **Share media**, **Charts**, **Interactive cards** and **Message other agents**. A **Claude Code tools** or **Codex tools** card with **Sandbox commands**, **Terminal**, **Files** (with **Access outside this folder**), **Internet access** and more. **Connected tools**, with a refresh button. | | **Limits** | **Hourly limits**, **Daily limits** and **Additional settings** ([details](https://docs.catalex.co/settings/access-and-limits.md#agent-limits)). | [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) explains the **Permissions** tab. ### How changes save Every change in an agent's settings saves as soon as you make it. There is no Save button. A status at the top right shows what happened: | Status | Meaning | | --- | --- | | *Saving…* | The change is being written. | | *Saved* | The change is stored. | | *Not saved.* followed by a reason | Nothing was stored. Fix the reason, then change the value again. For a limit, *Check the limit marked on its row.* | | *This agent's settings changed elsewhere* with **Reload settings** | Someone or something else changed them. Reload, review, then make your change again. | | *PROVIDER cannot keep this agent's tool limits.* with **Review tool access** | The new AI provider would widen tool access. Nothing was saved. | A channel card is the exception: it saves with its own **Save** button, which appears only while something in it has changed (with **Cancel** beside it). Closing a card with unsaved changes asks you to discard them. **When changes apply:** a new chat uses the latest model and effort; existing chats keep theirs. Saving an AI change starts no session, so a provider that cannot start in the folder is reported when you send the next message. ### Delete an agent Open **More actions** on the settings card, choose **Delete agent** and confirm *Delete NAME?*. The dialog lists the channels that will stop replying and the connected accounts that will be removed, disconnected or kept because another agent uses them. Deleting removes the agent, its conversations and files, and the accounts only this agent uses, on this computer and in CatalEx Cloud. It cannot be undone. The agent's folder and your files stay. To use a folder again, [add another agent](https://docs.catalex.co/agents/add-an-agent.md). ## With the CLI Find the agent, then read its current settings: ```bash catalex agents list --json catalex agents behavior --agent AGENT_ID --json catalex agents limits show AGENT_ID --json catalex agents tools --agent AGENT_ID --json ``` Change only what you need with the commands in the table. Omitted flags keep their saved values. Read the result back before you report a change as done. | Setting | In the app | With the CLI | | --- | --- | --- | | Name and picture | Agent page, left column | `catalex agents edit AGENT_ID --name NAME`, `catalex agents picture set` | | AI provider, model, effort | **General** → **AI** | `catalex agents edit AGENT_ID --agent claude --model MODEL_ID --effort EFFORT` ([details](https://docs.catalex.co/settings/ai-tools.md)) | | Chattiness, tone, Humanizer | **General** → **How it replies** | `catalex agents behavior --agent AGENT_ID --engagement-frequency low --tone professional` ([details](https://docs.catalex.co/agents/writing-preferences.md)) | | Charts, interactive cards, media | **Permissions** → **CatalEx** | `catalex agents behavior --agent AGENT_ID --charts not_allowed --interactive-cards allowed --share-media not_allowed` | | Messaging without being asked | **General** → **Starting chats** | `catalex agents edit AGENT_ID --proactive-send on` ([details](https://docs.catalex.co/agents/proactive-messages.md)) | | Channels | **Channels** → **Add channel**, a channel's card | `catalex channels add`, `catalex channels behavior --channel ID --engagement-frequency low` ([details](https://docs.catalex.co/channels/overview.md)) | | Who can message a channel, channel limits | A channel's card | `catalex accounts access set`, `catalex accounts limits set` ([details](https://docs.catalex.co/settings/access-and-limits.md)) | | Tools, terminal, approvals, folders | **Permissions** | `catalex agents tools --agent AGENT_ID` ([details](https://docs.catalex.co/agents/tools-and-permissions.md)) | | Messaging other agents | **Permissions** → **CatalEx** → **Message other agents** | `catalex agents edit AGENT_ID --delegate-to ID` | | Agent rate limits, turns at once | **Limits** | `catalex agents limits set AGENT_ID` ([details](https://docs.catalex.co/settings/access-and-limits.md#agent-limits)) | | Delete the agent | **Delete agent** | `catalex agents delete AGENT_ID` | | AI providers | **Settings** → **AI providers** | `catalex providers`, `catalex providers connect codex` | | Sign in, log out, delete account | Account entry; **Settings** → **Devices** | `catalex login`, `catalex logout`, `catalex account status`, `catalex account delete` ([details](https://docs.catalex.co/settings/server.md)) | | Computers and devices | **Settings** → **Devices** | `catalex computers`, `catalex devices` ([details](https://docs.catalex.co/settings/computers.md)) | | Defaults for new agents | Not in the app | `catalex defaults set` | | Who may answer and approve in Slack and Google Chat threads, progress updates | Not in the app | `catalex channel-settings set ACCOUNT_ID` ([details](https://docs.catalex.co/settings/access-and-limits.md#who-can-answer-and-approve-in-a-thread)) | | Capacity, storage, ports | Not in the app | `catalex settings advanced`, `catalex settings set`, `catalex settings endpoints` ([details](https://docs.catalex.co/settings/advanced.md)) | Delete from the terminal: ```bash catalex agents delete AGENT_ID ``` It names the accounts it removes and asks first (default No; use `--yes` without a terminal). If CatalEx Cloud cannot be reached, the data there is erased when this computer reconnects. ## Walk through a support-agent setup 1. Open the agent's settings. On **General**, choose the **AI provider**, **Model** and **Effort**. 2. Under **How it replies**, set **Chattiness** to **Low** and **Tone** to **Professional**. 3. On **Permissions**, choose the tools the agent needs. Review [tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) before you change **Terminal** or **Approvals**. 4. On **Limits**, set **Messages** under **Daily limits**. 5. Choose **Open chat**, start a new chat and ask something that needs the agent's own files or tools. Check the answer against its source. 6. [Add a channel](https://docs.catalex.co/channels/overview.md), allow only your own identity under **Who can message**, and check a reply there before you let customers in. # AI providers, models and effort CatalEx runs agents with Codex or Claude Code. Connect a provider once for the computer, then choose the model and effort for each agent. ## Connect an AI provider ### In the app 1. Open **Settings** and stay on **AI providers**. 2. Find the provider's row. It shows *On this computer*, the version and a state. 3. Switch on **Use PROVIDER**, such as **Use Claude Code**. | State | What to do | | --- | --- | | **Ready** | Switch it on to use it for agents. | | **Available** | CatalEx found it and it is installed and signed in. Switch it on. | | **Not signed in** | Sign in to the provider on this computer, then choose **Refresh**. | | **Update needed** | Update the provider to the release the row names, then choose **Refresh**. | | **Not found** | Install it, then choose **Refresh**. If it is installed somewhere CatalEx did not look, choose **Locate…** and pick the program. A program that does not work is refused with *That program could not be used.* | | **Needs attention** | The provider did not answer its checks. Choose **Refresh** to try again. Hover the info icon for the detail. | **Refresh** checks every provider again. CatalEx looks for each program on its `PATH`, then in the folders where Claude Code and Codex usually install themselves (`~/.local/bin`, `~/.claude/local`, `~/.npm-global/bin`, `~/.bun/bin` and `~/.volta/bin`), so a tool is found even when your shell's `PATH` does not list it. After an install or an update, choose **Refresh**. **Expected result:** the provider shows **Ready** with its switch on. Turning on a provider that was off can change the one the **Create a new agent** dialog starts with. A notice says so. To stop using a provider, switch it off. CatalEx refuses while an agent or chat uses it; move those agents to the other provider first. The last provider cannot be switched off: *CatalEx needs at least one AI provider. Switch another one on first.* ### With the CLI ```bash catalex providers catalex providers discover catalex providers connect codex ``` Replace `codex` with `claude` for Claude Code. `catalex providers` shows each provider the computer found, whether this setup uses it (connected), its version and its state. `discover` checks again and signs nothing in. `catalex refresh` re-verifies the installed AI tools in their current release and replaces the model list CatalEx offers; it never replaces Codex or Claude Code themselves. Run it after you update a provider, if a model you expect is missing. If the provider is not signed in, run `catalex providers login codex` and finish the provider's own sign-in; CatalEx never sees those credentials. To stop using one: ```bash catalex providers disconnect codex ``` It fails with `PROVIDER_IN_USE` while an agent or chat uses the provider, and with `LAST_PROVIDER` for the only one. ## Choose a model and effort for an agent ### In the app 1. Open the agent's settings (the gear on its tile) and stay on the **General** tab. 2. In the **AI** card, choose **AI provider**, **Model** and **Effort**. The change saves at once. A model without effort choices disables **Effort**. More effort can help with hard tasks; it also takes longer and uses more of your provider plan. ### With the CLI First list the models and efforts each provider offers, then change the agent: ```bash catalex defaults show catalex agents edit AGENT_ID --model MODEL_ID --effort EFFORT catalex agents list ``` A model or effort the provider does not offer fails with the valid options (`valid_options` with `--json`) and saves nothing. **When it applies:** a new chat takes the agent's latest model and effort. An existing chat keeps the ones it started with; `catalex chats settings show CHAT_ID` shows them. To use the new choice, start a new chat. Saving only stores the choice. CatalEx starts no session, so a provider that cannot start in the agent's folder is reported when you send the next message, for example a red row in that chat, *Couldn’t start Claude Code*, with **Change AI provider**. Choose the row for a short explanation, and **Show more** for the provider's own error. A provider that is not ready shows **Open AI providers** instead. ### Switch an agent to the other provider Choose the other **AI provider**, or run: ```bash catalex agents edit AGENT_ID --agent codex ``` The agent keeps its folder. CatalEx prepares the folder for the new provider and carries its tool choices over. If they cannot be kept without widening them, the change fails with `AGENT_TOOLS_NOT_CARRIED` and nothing is saved (the app says *PROVIDER cannot keep this agent's tool limits.* with **Review tool access**). `--no-onboard` only saves the choice and leaves the folder as it is. After the switch, the agent's next message starts a new chat. ## How Default is resolved An agent with no model or effort saved uses **Default**. The app shows the value it resolves to, such as **Default (NAME)**, and a short note for any value it skipped, such as *Skipped X (from your Claude Code configuration): not offered.* CatalEx takes the first value that the provider offers, in this order: 1. The agent's saved value. 2. CatalEx's defaults (`catalex defaults set`). 3. The agent folder's own provider configuration. 4. Your provider configuration. 5. The provider's own default. 6. The first value the provider offers. `catalex defaults show` prints, for each provider, the model an agent with nothing saved gets, where it came from and what was skipped. `catalex agents list` shows **Default** with the value the next launch sends (the `resolved` member with `--json`). To clear an agent's saved model and effort so it follows this order again, choose **Default** in both dropdowns, or run: ```bash catalex agents edit AGENT_ID --model '' --effort '' ``` ## Defaults for new agents The app has no screen for these; use the terminal: ```bash catalex defaults set --agent claude --model MODEL_ID --effort EFFORT ``` `--agent` is `codex` or `claude`. An empty `--model` uses the provider's own default. New agents start with these values. Existing agents and chats keep their settings, except an agent with nothing saved, which follows the new default from its next launch. ## When a provider check fails Read the reported reason and fix that first: install the provider, sign in to it, or update it to the release the app names. Then choose **Refresh** (or run `catalex providers discover`) and send a test message. A new chat on a provider that is not signed in ends without a reply and says *Your AI is not signed in on this computer, so this turn ended without a reply. Sign in to its provider on that computer, then send your message again.* # 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](https://docs.catalex.co/settings/computers.md). ## 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 ```bash 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](https://docs.catalex.co/settings/computers.md#sign-in-codes) 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 ```bash 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](https://docs.catalex.co/settings/computers.md) 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 ```bash 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. ```bash 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 ```bash 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: ```bash 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](https://docs.catalex.co/settings/computers.md#4-add-and-run-agents-on-the-new-computer). To use a saved connection with that computer's address and control token instead, keep the token in a private file: ```bash 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 ```bash 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](https://docs.catalex.co/privacy-policy.md) 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](https://docs.catalex.co/settings/catalog.md) 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. | Key | Default | Range | Meaning | | --- | --- | --- | --- | | `min_version` | empty (no minimum) | a release such as `0.1.12` | The 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](https://docs.catalex.co/operate.md#update), then connect again. | | `updating_grace_ms` | `120000` (2 minutes) | `10000`–`3600000` | How long a computer that announced an update shows as **Updating** instead of offline. Messages for it wait and arrive when it reconnects. | | `release_list_url` | `https://downloads.catalex.co/latest.json` | an `http` or `https` address | The release list read at start to check `min_version`. | | `release_list_timeout_ms` | `5000` | `500`–`60000` | How long that read may take. | | `release_list_max_bytes` | `1048576` (1 MiB) | `1024`–`16777216` | The 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](https://docs.catalex.co/channels/whatsapp-personal.md#conversation-record)). 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`. | Key | Default | Range | Meaning | | --- | --- | --- | --- | | `batch_window_ms` | `2000` | `100`–`30000` | How long a held message waits before its chat is stored. | | `batch_max_messages` | `100` | `1`–`1000` | Messages one chat holds before they are stored at once. | | `buffer_max_messages` | `10000` | `100`–`1000000` | Messages all chats hold together. At the cap the chat held longest is stored early; nothing is dropped. | | `sync_batch_messages` | `500` | `1`–`5000` | The 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](https://docs.catalex.co/activity.md#view-a-conversation-on-the-web) at `/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`. | Key | Default | Range | Meaning | | --- | --- | --- | --- | | `enabled` | `false` | `true` or `false` | `true` offers the web view and the links to it. | | `session_idle` | `12h` | `1m`–`720h` | A web session ends after this long unused. | | `session_max` | `168h` | `1h`–`2160h`, not below `session_idle` | A web session ends this long after sign-in, however much it is used. | | `max_text_bytes` | `262144` | `1024`–`4194304` | The longest text of one message sent from the page. | | `max_body_bytes` | `1048576` | `4096`–`67108864`, at least `max_text_bytes` | The largest request body the page may send. | | `record_page` | `50` | `1`–`1000` | How many messages the offline view shows first. | | `setting_propagation` | `30s` | `1s`–`5m` | The 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. # Devices Settings › **Devices** lists, in one place, the computers that run agents for your CatalEx account and the apps and terminals signed in to it. Signing in on a Mac adds that Mac. To add a Linux server or VM, create a one-time join code on a signed-in device and run the installer on the new computer. ## In the app Open **Settings** → **Devices**. The tab shows while you are signed in. ### Read the list There is one row per device. A signed-in app and the computer it joined are one row; a computer nobody signed in on (a server joined with a code) and a device that joined no computer (a terminal) each stand alone. Your own device is first. | On a row | Meaning | | --- | --- | | **This computer** / **This device** | The computer you are using, or the sign-in this app holds. | | **Trusted** | The device is trusted for changes on your computers. | | Status line | For a computer: **Connected**, **Idle · last run …**, **Offline · last seen …**, **Stale · last seen …**, **Updating** or **Disconnected · last connected …**, then its system and CatalEx version and its agent count. | | Device line | How the device signed in, such as *Google sign-in*, or *Terminal · Sign-in code*, and *Not trusted for changes* when it is not trusted. | Hover the row's icon to read the device's key fingerprint. Each row's actions show as buttons, or as two buttons and a **More actions** menu when there are three or more. | Action | When it shows | What it does | | --- | --- | --- | | **Rename** | A computer that is not disconnected | Opens **Rename NAME**; the new name shows on every device. | | **Disconnect** | A computer that is not disconnected | Asks *Disconnect NAME?* and warns that this removes the computer and disconnects all its agents from CatalEx. The computer stops its agents at once and can no longer connect. Its agents' channels stay bound; joining again with a new code restores them. | | **Delete** | A disconnected computer that is not the one you are using | Asks *Delete NAME?* and erases the computer and its agents for good, with their chats and data in CatalEx Cloud and on that computer (erased the next time it connects). CatalEx itself stays installed there. | | **Keep** | A stale computer | Lets it connect again. | | **Trust for changes** | A device that is not trusted, when this device is trusted | Trusts it for changes on your computers. Trust only a sign-in you recognize. | | **Sign out** | Any other device | Asks *Sign NAME out?*. It can no longer open your chats or make changes on your other devices; signing it in again needs a new sign-in code. | On the computer you are using, **Disconnect** asks *Disconnect this computer?* instead. This computer stops running agents for your account, so they stop answering from your other devices. You stay signed in, and its agents and chats stay here. The app says *This computer no longer runs agents for your account.* To delete a computer, disconnect it first (*Disconnect this computer first, then delete it.*). You cannot delete the computer you are using (*This is the computer you are using. Choose Disconnect on its row instead.*). A browser that opened a [conversation on the web](https://docs.catalex.co/activity.md#view-a-conversation-on-the-web) is listed as a **Browser**, named for the browser and system, such as *Chrome on Mac*. It has no device key and is never trusted for changes. **Sign out** ends it, and so does signing out everywhere. When a trusted device sees a new sign-in, a banner reads **New sign-in: NAME** with **Trust for changes** and **Not me, sign it out**. ![Settings, Devices tab listing three computers with Rename and Disconnect, Add device at the top right and Delete account at the bottom right](https://docs.catalex.co/img/app/settings-devices.png) ### Add a computer 1. Choose **Add device**. 2. In the **Add device** dialog, step 1 shows a command and, below it, a second command to use where CatalEx is already installed. Copy the one you need and run it in the new computer's terminal. 3. When it asks for a code, enter the code from step 2. A countdown shows *Expires in m:ss*. When it expires, the dialog says *This code expired.* Choose **New code**. 4. Choose **Done**. The new computer appears in the list, **Connected**, and the app says *NAME joined your account.* The computer you add runs only the agents you add on it. It cannot see or change your other agents or devices, and nobody is signed in on it. The app makes no sign-in code; to sign in a device on it, use the [CLI](https://docs.catalex.co/settings/computers.md#sign-in-codes). After an account move, **Rejoin your computers** lists the computers that left. Choose **Add device** beside each, then **Done**. If this computer is joined but offline, a banner names the reason and offers **Try again**, **Rejoin** or **Sign in**, whichever fixes it. A computer too old to connect says *CatalEx on this Mac is updating*: CatalEx [updates itself](https://docs.catalex.co/operate.md#update), then connects again. If it cannot reach CatalEx Cloud, check your connection and choose **Try again**. ## With the CLI ### How a computer joins `catalex login` signs you in. If CatalEx on this computer has not joined an account yet, signing in also joins it, without asking, and makes this device trusted for changes: ```bash catalex login ``` **Expected result:** `Signed in to SERVICE_URL as EMAIL.` then `This computer is now one of your computers.` If the trust step fails, you stay signed in and the output says to run `catalex devices trust-this`. To undo the join, run `catalex computers leave`. A Mac is named after its macOS Computer Name, or its host name when that is empty. ### Before you add a Linux computer - Sign in to CatalEx on the device you start from. - The installer joins a Linux computer on amd64 or arm64 with systemd, and you can use `sudo` there. Its agents need Codex or Claude Code installed on it. If `catalex` is already installed on any computer, use `catalex join` below. ### 1. Create a join code On the signed-in device: ```bash catalex computers add ``` **Expected result:** a one-time join code, the fingerprint of this device's key and the installer command for the new computer. The code joins one computer, once. It stays valid for the service's join code lifetime, 15 minutes on CatalEx Cloud. For a shorter lifetime, add `--lifetime 5m` (30 seconds to 15 minutes). Keep the code private: it goes into a hidden prompt, never into a command line or URL. If it expires, create a new one. If the command fails with `COMPUTERS_DISABLED`, the messaging service has computers turned off. ### 2. Run the installer on the new computer Run it on the new computer, replacing `FINGERPRINT` and `ORIGIN` with the values printed in step 1: ```bash curl -fsSL https://docs.catalex.co/install.sh | sudo sh -s -- \ --join --trust FINGERPRINT --service ORIGIN ``` When the installer asks, paste the join code. It installs the `catalex` command and the CatalEx components, runs them as the `catalex` service user (home `/var/lib/catalex`) and joins the computer to your account. The installer downloads from `downloads.catalex.co`. Without `sudo`, drop `sudo`; the installer then runs CatalEx as your own user and warns about it. `--trust` pins the key that created the code, so a code from any other key is refused and nothing is saved. A service address with plain `http://` is refused unless it is on the same computer (`SERVICE_NEEDS_HTTPS`). If `catalex` is already installed on the new computer, join without the installer: ```bash catalex join --trust FINGERPRINT --service ORIGIN ``` `--service` defaults to CatalEx Cloud. `--name` sets the name your devices show (default: the computer's name). `--join-file PATH` reads the code from a private file instead of the terminal, and `--no-wait` returns once the join is accepted. Joining never signs anyone in on that computer. **Expected result:** the installer or `catalex join` reports that the computer joined. Running it again on a joined computer prints *This computer is already joined to that account as ID; nothing changed.* Check the list from your device: ```bash catalex computers list ``` The new computer's row shows **Connected**, or **Idle** when no agent has run on it lately. It has no agents until you add them. ### 3. Sign in to the AI tool on the new computer Agents on the new computer use its own Codex or Claude Code sign-in. Install the tool for the `catalex` service user, then sign in as that user: ```bash sudo -u catalex -H /var/lib/catalex/.local/bin/claude auth login # Or, for Codex on a computer without a browser: sudo -u catalex -H /var/lib/catalex/.local/bin/codex login --device-auth ``` Use your tool's installed path if it differs. If you ran the installer without `sudo`, sign in as your own user instead. ### 4. Add and run agents on the new computer Run `agents` and `chats` commands on another computer of your account with `--computer NAME` or `--computer ID`: ```bash catalex agents add --computer 'Office VM' --name 'Support agent' --folder /srv/agents/support catalex agents list --computer 'Office VM' catalex chats list --computer 'Office VM' ``` `--folder` must be an existing absolute folder on that computer. Sensitive changes on another computer are signed with this device's key and ask before signing; `--confirm-signing` confirms without asking. Errors you may see: `COMPUTER_AMBIGUOUS` (the name matches more than one computer; use its ID), `COMPUTER_OFFLINE` (exit 3) and `OPERATION_NOT_REMOTE` (the command only runs on the computer itself). `catalex agents list` on this computer also lists the agents of your other computers that its agents can message, under `Agents on your computers:`. ### Allow chats from other devices Other devices of your account can open this computer's native chats and create chats on it. The app has no switch for this. To refuse them (`REMOTE_LINKS_OFF`), run this on the computer itself; it never works with `--computer`: ```bash catalex computers settings remote-chat-links off catalex computers settings ``` Turn it back on with `remote-chat-links on`. ### Manage your computers | Task | Command | Result | | --- | --- | --- | | List computers | `catalex computers list` | Columns ID, NAME, OS, STATUS, LAST CONNECTED, LAST RUN, AGENTS. Statuses: **Connected**, **Idle**, **Offline**, **Stale (keep or disconnect it)**, **Left (keeps its sign-in)**, **Disconnected**. After an account move it also lists the computers that left and have not rejoined. | | Rename | `catalex computers rename COMPUTER_ID 'Office VM'` | The new name shows on every device. | | Keep a stale computer | `catalex computers keep COMPUTER_ID` | *Kept NAME; it can connect again.* | | Disconnect a computer | `catalex computers disconnect COMPUTER_ID` | Asks first (default No; `--yes` without a terminal). It stops its agents at once and can no longer connect. Its agents' channels stay bound, and it can join again with a new code. Works on an offline computer. | | Delete a disconnected computer | `catalex computers delete COMPUTER_ID` | Asks first (default No; `--yes`). Erases the computer's agents and their chats and data in CatalEx Cloud, and on the computer when it next connects. A connected computer is refused (`COMPUTER_NOT_DISCONNECTED`). | | Leave from this computer | `catalex computers leave` | Asks first (default No; `--yes`, `--no-wait`). This computer stops serving agents; its agents, settings and chats stay, and your sign-in stays. Join again with a new code. | | Inspect this computer | `catalex computers this` | Its key fingerprint, the account it joined and the device keys it trusts, with the reason for each. `--trust-this-device` makes a computer that trusts no device key yet trust this device. | `catalex computers disconnect` and `delete` refuse the computer you are on (`CURRENT_COMPUTER`); use `catalex computers leave` there. `delete` needs a CatalEx Cloud that supports deleting computers, otherwise it says to update CatalEx Cloud. Signing out with `catalex logout` does not remove a joined computer; it keeps serving its agents. A disconnected computer's `catalex status` reports that it was removed from its CatalEx Cloud account, and the app offers **Rejoin**. ### Devices and sign-in codes Devices are the apps and terminals signed in to your account. A device signed in with Google is not trusted for changes on your computers until a trusted device trusts it. | Task | Command | | --- | --- | | List devices (ID, NAME, APP, TRUST, SIGNED IN WITH, KEY) | `catalex devices list` | | Trust another device (compare its key before you confirm) | `catalex devices trust CLIENT_ID` | | Trust this device on a computer that joined your account | `catalex devices trust-this` | | Sign a lost or unknown device out | `catalex devices remove CLIENT_ID` | `APP` is **App** for the CatalEx app and **Terminal** for the `catalex` command. `devices trust` and `devices remove` ask first (default No; `--yes` confirms), and `devices trust` names the key's fingerprint to compare with the one the device shows. ### Sign-in codes To sign in a device that has no browser, or to run `catalex` as yourself on a computer you added with a join code, create a one-time sign-in code on a trusted device. The app has no screen for this. ```bash catalex login-codes create ``` Run the printed `catalex login --code --service ORIGIN` command on the other device and paste the code. That device signs in and is trusted at once. The code works once and expires (`--lifetime` changes it). `login-codes create` waits for the other device; with `--no-wait` it only prints the code. If you stopped it before the other device signed in, run `catalex devices trust-new` to trust it. # Access, approvals and limits Limits work at two levels. An agent's **Limits** tab caps the work that reaches that agent across all its channels. Each messaging channel has its own access lists and rate limits, set in its card on the agent's **Channels** tab. Both apply: a message must pass the channel's rules and the agent's limits. Hours and days are rolling windows: an hour is the last 60 minutes and a day is the last 24 hours. They do not follow the clock or a time zone, and a save keeps the use already counted in them, so a throttled agent stays throttled until its use ages out. ## Who can message a channel ### In the app 1. Open the agent's settings (the gear on its tile) and choose the **Channels** tab. 2. Choose the channel's card. It opens in place and its title line says how it is set, such as *Anyone can message · No limits*. 3. Under **Who can message**, choose **Everyone** or **Only people I choose**. **Everyone** warns *Anyone with this number can message your agent.* 4. With **Only people I choose**, add people to **Allowed**. Type or paste entries, or search people and groups where the channel offers it, then press Enter. 5. Add people you want to refuse to **Blocked**. 6. Choose **Save**. **Cancel** drops the changes. | List | Meaning | Use it for | | --- | --- | --- | | **Allowed** | Only listed people are admitted. | Private testing or a known group of people | | **Blocked** | Listed people are refused, even if they are also allowed. | Revoking one sender's access | Slack entries are email addresses. WhatsApp entries are the sender's phone number with country code, such as `+15551234567`, not your business number. A phone entry ending in `*` covers every number that starts with it, such as `+44*`. WhatsApp Personal can also admit groups. On a WhatsApp Personal number shared by several agents, **Numbers**, **Groups** and **Blocked** are this agent's own; other agents keep theirs, and an agent with no entries receives nothing (*Nobody can message yet*). A refused person gets no reply. These lists do not grant tool permissions. Google Chat has no access lists or rate limits in CatalEx; its card holds only the **Engagement** row and the chat switches. Who can reach a Google Chat app is set by the app's visibility in Google Workspace. ### With the CLI ```bash catalex accounts list catalex accounts access show ACCOUNT_ID catalex accounts access set ACCOUNT_ID --allow owner@example.com,colleague@example.com catalex accounts access set ACCOUNT_ID --block +15551234567 ``` Each flag replaces that list and keeps the other. `--allow none` empties the allowlist, which admits everyone except blocked people; it does not turn the channel off. `--block none` clears the blocklist. For WhatsApp Personal, `catalex accounts candidates` lists people and groups and `--groups group:ID` admits groups (see [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md)). The blocklist wins over the allowlist; a group cannot be blocked. ## Agent limits ### In the app Open the agent's settings and choose the **Limits** tab. Each field saves a moment after you stop typing. Clear a field to remove its limit; the placeholder shows *No limit*, or the default where there is one. | Card | Row | Counts | Default | | --- | --- | --- | --- | | **Hourly limits** | **Messages** | Messages that reach this agent over an hour, from all its channels | No limit | | | **Tokens** | Tokens this agent uses on messaging channels over an hour. Native chats are not counted. | No limit | | | **Sends without being asked** | Messages it starts on its own over an hour | 20 | | **Daily limits** | **Messages**, **Tokens** | The same over 24 hours | No limit | | | **Sends without being asked** | Messages it starts on its own in 24 hours | 100 | | | **New people messaged** | People it messages for the first time in 24 hours | 10 | | **Additional settings** | **Turns at once** | Replies it works on at the same time, in every chat including native chats. Extra messages wait their turn in arrival order; they are never dropped. | 10 | The sends-without-being-asked and new-people rows cap [proactive messages](https://docs.catalex.co/agents/proactive-messages.md). A value the messaging service caps is refused with a note naming the ceiling. A field the server refuses is marked, and the status line says *Check the limit marked on its row.* Once something is used in a window, a thin meter under the field shows the share of the limit used: amber from 70% and red from 90%. Point at it for the count, such as *12 used this hour*. A row with no limit or no use has no meter. **Turns at once** always shows the value in effect: a value below 1 is refused, and clearing it restores 10. ### With the CLI ```bash catalex agents limits show AGENT_ID catalex agents limits set AGENT_ID --day 100 --turns 4 catalex agents limits set AGENT_ID --tokens-hour 150000 --tokens-day 500000 catalex agents limits set AGENT_ID --proactive-hour 10 --proactive-day 50 --proactive-new-people-day 5 catalex agents limits set AGENT_ID --hour none ``` Values are whole numbers of at least 1, or `none`. For message and token rows, `none` removes the limit; for `--turns` and the proactive rows it restores the default. Flags you leave out keep their saved value. `show` lists each limit with the use in its window. ### Token budgets Each turn adds the tokens its AI reported when the messaging service records its outcome. Once a window's tokens reach the limit, new messages are not sent to the agent until the window has room again; a turn already running finishes. A turn can therefore end above the budget. A turn whose AI reports no usage adds nothing, so the count is not a complete billing cap. ## Channel limits ### In the app In a channel's card, choose the **Limits** row to expand it. Every channel limit is off until set. The unit sits inside each field, such as `/hour`. | Row | Counts | | --- | --- | | **Per person** (Slack) / **Per phone number** (WhatsApp) | Messages from one sender, per hour and per day | | **All messages** | Everyone together, per hour and per day | | **People** / **Phone numbers** | Different senders messaging, per hour and per day. Senders already let in keep going. | | **New people** / **New phone numbers** | Senders messaging for the first time, per day | | **Replies at once** | Replies on this channel worked on together | A **Server limit** row appears when the messaging service caps a value. The card also shows a **Time zone** field, but windows are rolling, so it does not move them. Choose **Save**. ### With the CLI ```bash catalex accounts limits show ACCOUNT_ID catalex accounts limits set ACCOUNT_ID --per-person-hour 20 --total-day 500 catalex accounts limits set ACCOUNT_ID --new-people-day 5 ``` Other flags: `--per-person-day`, `--total-hour`, `--people-hour`, `--people-day`, `--turns`. On a number shared by several agents, add `--agent AGENT_ID` to `show` and `set`. A value above the service's ceiling is refused with `RATE_LIMIT_ABOVE_CEILING`. CatalEx commands and answers to the agent's questions never count. ## Find messages that were not sent A message over a limit starts no work and gets no reply, reaction or read receipt. It is not delivered later. In the app, open the agent's messaging chat list. People who were refused before they had a chat appear under **Messages not sent**, with a row such as *2 messages not sent to the agent*. Inside a chat, a refused message is marked **Not sent**; point at it to read why, for example *Not sent to the agent: rate limit (2 messages per person per hour)*. From the terminal: ```bash catalex accounts limits throttled ACCOUNT_ID --limit 10 ``` The reason names the limit and its window. Check throttled messages before treating a silent channel as disconnected. ## Who can answer and approve in a thread This is set from the terminal only. In Slack and Google Chat threads, choose who may answer the agent's questions and who may approve actions or stop it: | `--approval` | Questions | Approvals and stop | | --- | --- | --- | | `anyone` | Anyone in the thread | Anyone in the thread | | `anyone_answers` | Anyone in the thread | Listed people | | `approvers_only` | Listed people | Listed people | ```bash catalex channel-settings show ACCOUNT_ID catalex channel-settings set ACCOUNT_ID --approval anyone_answers --approver U012AB3CD ``` Slack uses member IDs (profile → **More** → **Copy member ID**); Google Chat uses `users/ID` values, which `@App /people @Person` shows privately. `--approver` replaces the list; keep at least one approver for restricted modes. Direct messages stay between the person and the agent. On CatalEx Cloud, only the app's owner can approve in Google Chat, whatever the saved setting says. Being an approver does not lift the agent's tool restrictions. The agent-level **Approvals** choice is on the **Permissions** tab ([details](https://docs.catalex.co/agents/tools-and-permissions.md)). ## Progress updates WhatsApp channels can post short progress notes while the agent works. Replies, questions and permission requests are always posted. This too is terminal only: ```bash catalex channel-settings set ACCOUNT_ID --post message,progress catalex channel-settings set ACCOUNT_ID --post message ``` If the channel is not connected to an installation yet, `set` saves a draft that applies when you run `set` again after it connects. `catalex channel-settings discard ACCOUNT_ID` drops the draft. ## When a change is refused Commands read a revision before saving and refuse a stale one instead of overwriting another change. On `SETTINGS_CHANGED`, read the current values and try again. `ADMIN_REQUIRED` means the messaging service's administrator controls those rules (the app says *Only the messaging service's administrator can set these rate limits.*). `MANAGEMENT_UNAVAILABLE` means the service does not offer the operation or its answer could not be read; it does not prove you lack permission. # Capacity, storage and network These controls are for people and AI agents maintaining a setup. Leave defaults unless you have a concrete capacity, storage or connection problem. The CatalEx app has no screen for them, so they are command-line only. ## Read the live catalog first ```bash catalex settings --json catalex settings advanced --json ``` The live catalog reports each key’s effective value, default, range, unit, editability and restart requirement. The [settings catalog](https://docs.catalex.co/settings/catalog.md) explains individual keys. Your installed release’s catalog takes precedence for supported keys and bounds. Secrets are not listed. ```bash catalex settings set limits.max_warm_runtimes=60 catalex settings set limits.max_warm_runtimes=null ``` The first keeps up to 60 idle agent processes ready; the second restores the default (40). Values are JSON, so quote shell arguments that contain a list or JSON string. Invalid or incompatible changes are refused. Running services restart automatically when required; a controller restart requirement is reported separately. Add `--no-wait` to return once the change is accepted. Check the resulting operation and status, then verify a reply. ## Common settings in practical units How many replies an agent works on at once is each agent's **Turns at once** limit (default 10), set in [access and limits](https://docs.catalex.co/settings/access-and-limits.md#agent-limits); the old `max_active_turns` setting is ignored. `catalex settings advanced set KEY=VALUE...` accepts the integer fields in the units below. Unnamed values are retained; an unknown key is refused. The capability fields `rich_cards` and `chart_kinds` are also reported but not changed by this command. Use the full settings catalog for editable boolean and list fields and for more precise units. | Advanced field | Unit / purpose | Why change it? | | --- | --- | --- | | `max_warm_runtimes` | Idle agent processes retained | Balance quick replies against idle memory | | `max_queued_inputs` | Waiting messages per session | Bound how much work a busy chat can accumulate | | `bootstrap_messages` | Earlier messages given to a replacement session | Balance continuity against context size | | `decision_expiry_minutes` | Minutes before a pending decision expires | Match how long people realistically take to respond | | `max_attachments` | Files per message | Bound per-message processing | | `attachment_retention_days` | Days original attachments remain available | Balance later downloads against storage/privacy | | `attachment_storage_mib` | Total attachment spool size in MiB | Fit disk capacity; it is not a message-history deletion policy | | `audio_max_mib` | Maximum audio size in MiB | Bound upload and transcription work | | `audio_max_seconds` | Maximum audio duration in seconds | Keep transcription work practical | | `transcription_enabled` | `1` transcribes voice notes on this computer, `0` turns it off | Voice messages are then not transcribed; turn it back on with `transcription_enabled=1` | | `transcription_timeout_seconds` | Seconds one voice note may take (default 120) | Give slow computers longer; a note that runs over is delivered untranscribed | | `transcription_concurrency` | Voice notes transcribed at once (default 2, up to 16) | Trade transcription speed against load on the agents | | `tool_retries` | Malformed communication-call retries before plain-text fallback | Recover limited formatting errors without endless retrying | | `recovery_attempts` | Automatic recovery attempts | Bound recovery loops after a session failure | | `progress_per_second` | Routine update rate | Prevent excessive intermediate output | | `rich_cards` | Reports whether new chats use interactive cards | Inspect structured interaction support; not changed by the integer-only advanced command | | `chart_kinds` | Reports allowed chart kinds | Inspect visual-output support; not changed by the integer-only advanced command | ```bash catalex settings advanced set max_warm_runtimes=60 attachment_retention_days=7 ``` The automatic-update timing (`updates.automatic`, `updates.check_interval`, `updates.app_quiet`, `updates.agent_quiet`, `updates.max_wait`, `updates.health_timeout`) is set with the same command; see [Update](https://docs.catalex.co/operate.md#update) for defaults and ranges. This keeps more idle agents ready for quick replies and keeps attachments available for a shorter time. Existing recipients may already have downloaded copies. Changing retention cannot retract those copies. ## Addresses and ports For initial setup, `catalex setup --help` lists `--control-port`, `--chat-port`, `--chat-console-port`, `--agents-port`, `--agents-console-port`, `--service-port` and `--database-port`. Set only ports you need to change; omitted flags preserve saved/default choices. For an existing owned control endpoint: ```bash catalex settings endpoints show --json catalex settings endpoints set --port 7478 ``` CatalEx reserves the new endpoint, checks readiness and manages recovery. A numeric loopback bind such as `127.0.0.1` or `::1` keeps management private to the computer. Do not expose it to receive messaging callbacks. Manual saved connections may need their address updated after a move. For other listeners, inspect before changing: ```bash catalex settings endpoints deployments show native_chat --json ``` Use `catalex settings endpoints deployments set TARGET FIELD PORT`, such as `catalex settings endpoints deployments set native_chat console_port 17855`, only for fields advertised as supported by that result. The command reports the original operation ID. If the outcome is uncertain, inspect that original ID using the endpoint command’s `operation`/`recover` help rather than starting another port move. Keep control, native-chat, agent and messaging-service addresses distinct. ## Advanced client configuration `CATALEX_RELAY_HOME` selects an absolute state and configuration home instead of `~/.catalex`. Use it only when intentionally maintaining a separate installation; changing it can make the existing setup appear missing. The command-line client also supports bounded request, attachment, history and polling settings. See [client environment settings](https://docs.catalex.co/settings/client-environment.md). Set them for the command process, not in agent instructions or a secret-bearing transcript. A timeout change does not repair an offline service. # CLI command reference The `catalex` command does in a terminal what the CatalEx app does on screen, and a few things the app does not offer. This page lists the commands of CatalEx 0.1.20 by task. Each row gives the command with its arguments, what it does and the page that walks through the task. For the exact flags of one command, run `catalex COMMAND --help`. Install the command first: see [Install CatalEx](https://docs.catalex.co/getting-started/install.md). To use the app instead, see [the CatalEx app](https://docs.catalex.co/getting-started/app.md). ## Options every command accepts | Option | Meaning | | --- | --- | | `--json` | Print one structured result with `ok`, `command`, `state`, `data` and, on failure, `error.code` and `error.message`. Branch on `error.code`, not on message text. | | `--connection NAME` | Use a saved connection (name or ID) for this one command. See [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md). | | `--computer NAME` | Run an `agents` or `chats` command on another computer of your account, by name or ID. | | `--confirm-signing` | Confirm signing a sensitive change on another computer without asking. | With one CatalEx running on this computer, commands use it. Tuning variables for the command itself are in [client environment settings](https://docs.catalex.co/settings/client-environment.md). ## Which commands need a sign-in Commands that read or change your account, agents, chats, channels, computers or settings need you to be signed in, or this computer to be joined to your account. Without either, they stop with the error `ACCOUNT_SIGNIN_REQUIRED` (exit status 4) and tell you to run `catalex login`. Adding a number or workspace (`catalex accounts add`, `catalex channels add`, `catalex destinations setup`) needs your own sign-in even on a joined computer. These commands run signed out, and everything else needs a sign-in: - `login`, `join`, `logout` and `account status` - `account delete`, which only resumes a deletion that was already started - `setup`, `install`, `update`, `uninstall` and `path` - `prepare`, `status`, `start`, `stop`, `restart` and `doctor` - `open` and every `app` command, because the app is where a person signs in - `service autostart` - `providers discover`, `providers connect`, `providers disconnect` and `providers login` - `version`, `help` and `completion` In the tables below, the last column says **No** for these and **Yes** for the rest. ## Sign in and your account | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex login` | Sign in to your CatalEx account with Google in your browser. `--code` signs in with a one-time code from another device, `--force` replaces a saved sign-in, `--service URL` picks the service. | No | [Sign in](https://docs.catalex.co/getting-started/app.md) | | `catalex logout` | Sign out on this computer. CatalEx keeps running; `--stop-agents` also makes this computer leave the account. | No | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex account status` | Show whether you are signed in. | No | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex account token` | Print a short-lived access token for your account. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex account move --to URL` | Move your account to another messaging service. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex account delete` | Delete your account and its chat history. `--impact` only shows what would be erased. | No | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex login-codes create` | Create a one-time code that signs in another device as you. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | ## Computers and devices A computer runs your agents. A device is anything signed in to your account. | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex computers list` | List your account's computers with their activity and last connection. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers add` | Create a one-time code that joins another computer to your account. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex join` | Join this computer to your account with a one-time code. | No | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers this` | Show this computer's key and the device keys it trusts. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers rename ID NAME` | Rename a computer. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers leave` | Stop serving agents from this computer; your sign-in stays. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers disconnect ID` | Disconnect a computer from the account; it stops its agents at once. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers keep ID` | Keep a stale computer so it can connect again. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers delete ID` | Delete a disconnected computer and erase its agents and data. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex computers settings [remote-chat-links on\|off]` | Show this computer's settings, or decide whether your other devices may open its chats. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex devices list` | List the devices signed in to your account. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex devices trust ID` | Trust another device for changes on your computers. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex devices trust-new` | Trust the devices that signed in with your sign-in codes. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex devices trust-this` | Trust this device through the CatalEx running on this computer. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | | `catalex devices remove ID` | Sign another device out of your account. | Yes | [Devices](https://docs.catalex.co/settings/computers.md) | ## Agents | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex agents list` | List saved agents, then your account's agents on other computers. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents discover` | List folders where Claude Code or Codex ran lately. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents add` | Add an agent with its folder and AI settings. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents onboard` | Check an existing agent folder, repair it for CatalEx and register it. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents edit ID` | Rename an agent, change its AI, model and effort, or turn **Viewable on web** on or off with `--web-view on\|off`. | Yes | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex agents show AGENT_ID` | Show in plain words what an agent can use (files, terminal, web, connected tools, approvals, extra folders, limits, channels) and the next steps. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents delete AGENT_ID` | Delete a saved agent and everything CatalEx keeps for it. `--computer NAME` deletes an agent of another computer, online or offline. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents picture set AGENT_ID FILE` | Set an agent's picture. `picture show` and `picture remove` read and clear it. | Yes | [Add an agent](https://docs.catalex.co/agents/add-an-agent.md) | | `catalex agents tools` | Inspect, discover or save an agent's tools and permissions. | Yes | [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) | | `catalex agents behavior` | Show or change saved engagement and writing preferences. | Yes | [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md) | | `catalex agents limits show\|set AGENT_ID` | Show or change an agent's rate limits across all its accounts. | Yes | [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md) | | `catalex agents activity AGENT_ID` | List settings changes made to an agent. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex agents sync` | Show whether earlier conversations are synced to the server. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex projects list\|add\|edit` | Manage the folders native chats work in. | Yes | [Folders, instructions and tools](https://docs.catalex.co/agents/folders-and-tools.md) | | `catalex delegations list\|send\|status AGENT_ID` | Send a message to another agent on an agent's behalf, and read what it sent. | Yes | [Messages between agents](https://docs.catalex.co/agents/delegation.md) | | `catalex messages send` | Send a message to one of an agent's people now. | Yes | [Messages the agent starts](https://docs.catalex.co/agents/proactive-messages.md) | | `catalex messages status SEND_ID` | Show the outcome of a message an agent sent. | Yes | [Messages the agent starts](https://docs.catalex.co/agents/proactive-messages.md) | Sharing an agent by link is a channel: `catalex channels add --agent AGENT_ID --type share_link` creates the link and prints its address. See [Share an agent](https://docs.catalex.co/agents/share-an-agent.md). ## Marketplace Every marketplace command needs a sign-in. CatalEx does not verify the repositories the Marketplace lists; check the code on GitHub before importing. | Command | What it does | Learn more | | --- | --- | --- | | `catalex marketplace list` | List the Marketplace's agents and whether this computer has them. | [Marketplace](https://docs.catalex.co/marketplace/overview.md) | | `catalex marketplace import LISTING` | Import a Marketplace agent onto the selected computer. | [Marketplace](https://docs.catalex.co/marketplace/overview.md) | | `catalex marketplace update LISTING` | Update an imported agent to the offered commit. | [Marketplace](https://docs.catalex.co/marketplace/overview.md) | | `catalex marketplace add GITHUB_URL` | Add a public GitHub repository to the Marketplace, then import it. | [Setup file](https://docs.catalex.co/marketplace/setup-file.md) | | `catalex marketplace issues LISTING` | Show the setup file issues CatalEx found in your repository. | [Setup file](https://docs.catalex.co/marketplace/setup-file.md) | | `catalex marketplace remove LISTING` | Remove one of your repositories from the Marketplace. | [Marketplace](https://docs.catalex.co/marketplace/overview.md) | ## Channels and messaging apps A channel connects an agent to a place people write to it. These commands need a sign-in. | Command | What it does | Learn more | | --- | --- | --- | | `catalex channels list` | List channels with their readiness. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex channels add` | Add a native chat, Slack, WhatsApp, Google Chat, WhatsApp Personal (experimental) or share-link channel to an agent. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex channels remove ID` | Remove a channel. Its conversations are kept, except on a linked phone number. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex channels behavior` | Show or change a channel's engagement frequency. | [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md) | | `catalex accounts list` | List accounts with their kind, state, agent and rules. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex accounts add` | Add a messaging app agent or admin account. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex accounts remove ID` | Remove a saved account. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex accounts health [ACCOUNT_ID]` | Show each account's health and how to fix it. | [Troubleshooting](https://docs.catalex.co/troubleshooting.md) | | `catalex accounts clear-setups` | Remove every account whose setup was started and not finished. | [Troubleshooting](https://docs.catalex.co/troubleshooting.md) | | `catalex destinations setup ACCOUNT_ID` | Set up or resume a messaging app's first installation for an account. `--wait` follows a setup the person finishes in the provider, such as allowing a Slack app, and exits 0 once it is verified. | [Connect Slack](https://docs.catalex.co/channels/slack.md), [Connect WhatsApp](https://docs.catalex.co/channels/whatsapp.md), [Connect Google Chat](https://docs.catalex.co/channels/google-chat.md) | | `catalex credentials status\|set\|check\|bind\|unbind\|installations\|operation ACCOUNT_ID` | Enter, replace, check or remove a messaging account's credentials. | [Connect channels with an AI agent](https://docs.catalex.co/channels/agent-workflow.md) | | `catalex accounts admins list\|add\|remove ACCOUNT_ID` | Show or change who may use an admin account. | [Administrator messaging](https://docs.catalex.co/channels/admin.md) | | `catalex accounts access show\|set ACCOUNT_ID` | Show or change who may message an account (allowlist or blocklist). | [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md) | | `catalex accounts limits show\|set\|throttled ACCOUNT_ID` | Show or change an account's rate limits, and list throttled messages. | [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md) | | `catalex channel-settings show\|set\|discard ACCOUNT_ID` | Show or change who may act and what an account's conversations post. | [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md) | | `catalex accounts entries show\|add\|move\|remove ACCOUNT_ID` | Show or change the entries (numbers and groups) each agent answers on a shared account, such as a linked number several agents share. | [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) | | `catalex accounts candidates ACCOUNT_ID` | List the people and groups that can reach an account. | [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) | | `catalex accounts agents engagement\|settings\|switches\|remove` | Show or set one agent's engagement depth, own settings, chat commands and system messages on a shared account, or remove it. | [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md), [Access, approvals and limits](https://docs.catalex.co/settings/access-and-limits.md) | | `catalex accounts manager recreate ACCOUNT_ID` | Create a number's CatalEx Manager group again. | [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) | | `catalex accounts remove-link ACCOUNT_ID` | Remove a shared number that no agent uses. | [WhatsApp Personal](https://docs.catalex.co/channels/whatsapp-personal.md) | | `catalex accounts routes show\|remove` | List or remove the channels of agents whose computer is offline or removed. | [Messaging channels](https://docs.catalex.co/channels/overview.md) | | `catalex accounts template show\|set\|clear ACCOUNT_ID` | Show or change the template an account uses to start conversations. | [Messages the agent starts](https://docs.catalex.co/agents/proactive-messages.md) | | `catalex accounts chats list\|show\|requests\|answer\|approve\|delete` | List an account's chats, read one, and answer or approve what its agent is waiting on. | [Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md) | ## Native chats Native chats are the conversations you have with an agent in the app or from the terminal. These commands need a sign-in. | Command | What it does | Learn more | | --- | --- | --- | | `catalex chats list` | List native chats with their live activity. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats create` | Create a native chat in an agent's native chat channel. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats send ID` | Send a message to a native chat. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats show ID` | Show a chat's state, settings and session. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats history ID` | Read bounded pages of a chat's history. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats watch ID` | Stream a chat's events for a bounded time. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats activity [ID]` | Read a chat's full activity: tool calls, thoughts and results. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats cancel ID` | Stop the chat's current turn. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats answer ID` | Answer an agent's question or AI provider form. | [Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md) | | `catalex chats approve ID` | Grant or deny an AI provider permission request. | [Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md) | | `catalex chats react ID` | Add, replace or remove your reaction to a message. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats attachments upload\|download\|show\|revoke` | Upload, download, inspect or revoke a chat's files; `show` includes the transcript of a voice message or video. | [Files, charts and decisions](https://docs.catalex.co/chats/files-and-approvals.md) | | `catalex chats import` | Import a known Codex or Claude Code session as a native chat. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats resume ID` | Resume a chat's original AI session. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats replace ID` | Start a new AI session for a chat whose session failed. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats retry ID` | Retry creating a chat that failed to start. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats remove ID` | Remove a saved chat. Its saved history is kept. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats archive list\|restore` | List archived chats, or restore the ones missing on this computer. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats settings show ID` | Show the model settings a chat started with. | [Native chats](https://docs.catalex.co/chats/native-chats.md) | | `catalex chats usage ID` | Show a chat's turns, tokens, cache use and cost. | [Activity, history and usage](https://docs.catalex.co/activity.md) | ## Activity, usage and history | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex analytics` | Show every conversation and its distribution. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex analytics summary` | Show message activity and cost: totals, each day, who and where, what agents did, busiest hours, the budget and spending spikes. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex analytics attention` | List what needs attention; `ignore KEY`, `ignored` and `restore KEY` hide, list and show ignored items. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md#analytics-and-resource-use) | | `catalex analytics budget show\|set\|clear` | Show, set (`--monthly AMOUNT`, US dollars) or clear the monthly spending budget. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md#analytics-and-resource-use) | | `catalex analytics checks` | List the built-in analytics checks; `checks on\|off CHECK_ID` changes one. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md#analytics-and-resource-use) | | `catalex analytics rules` | List custom analytics rules; `rules add --name NAME --pattern REGEX`, `rename RULE_ID --name NAME` and `remove RULE_ID` change them. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md#analytics-and-resource-use) | | `catalex usage` | Show CPU, memory, disk and token usage per chat and service. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex transcript SESSION_ID` | Show a Slack or WhatsApp conversation's read-only snapshot. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex hosting agents` | List the agents your messaging service holds, with channel and session counts. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | | `catalex hosting sessions SERVICE_ID PROJECT_ID AGENT_ID` | List one agent's Slack and WhatsApp conversations on the messaging service. | Yes | [Activity, history and usage](https://docs.catalex.co/activity.md) | ## AI providers and settings | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex providers` | Show every AI provider, its version, state and whether it is connected. | Yes | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex providers discover` | Detect every AI provider again and list it. | No | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex providers login PROVIDER` | Sign in to Codex or Claude Code with its own sign-in on this computer. | No | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex providers connect PROVIDER` | Use an installed, signed-in provider (`codex` or `claude`) in this setup. | No | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex providers disconnect PROVIDER` | Stop using a provider in this setup. | No | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex refresh` | Re-verify installed agents and their model inventory. | Yes | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex defaults show\|set` | Show or set the AI settings new agents start with. | Yes | [AI providers, models and effort](https://docs.catalex.co/settings/ai-tools.md) | | `catalex connections list\|add\|edit\|remove\|use\|rescan` | Manage saved connections to computers and messaging services. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex connections hosting show\|on\|off\|set` | Show or change the selected computer's cloud hosting. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex local-setup on\|off` | Turn the complete setup on this computer (agents, native chats and a messaging service) on or off. | Yes | [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md) | | `catalex settings` | Show the Developer settings catalog with defaults and ranges. | Yes | [Runtime settings catalog](https://docs.catalex.co/settings/catalog.md) | | `catalex settings set KEY=VALUE...` | Change settings; `null` restores a default. | Yes | [Runtime settings catalog](https://docs.catalex.co/settings/catalog.md) | | `catalex settings advanced` | Show the Advanced settings in people's units. | Yes | [Capacity, storage and network](https://docs.catalex.co/settings/advanced.md) | | `catalex settings advanced set KEY=VALUE...` | Change Advanced settings; unnamed values are kept. | Yes | [Capacity, storage and network](https://docs.catalex.co/settings/advanced.md) | | `catalex settings endpoints show\|set\|operation\|recover` | Inspect or safely move this computer's control listener. | Yes | [Capacity, storage and network](https://docs.catalex.co/settings/advanced.md#addresses-and-ports) | | `catalex settings endpoints deployments show\|set\|operation\|recover` | Inspect or move one deployment listener. | Yes | [Capacity, storage and network](https://docs.catalex.co/settings/advanced.md#addresses-and-ports) | ## Service lifecycle, install and update | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex setup` | Set up CatalEx: CatalEx Cloud, everything on this computer, or a CatalEx service URL. | No | [Install CatalEx](https://docs.catalex.co/getting-started/install.md) | | `catalex install [COMPONENT...]` | Install CatalEx from a verified release. | No | [Install CatalEx](https://docs.catalex.co/getting-started/install.md) | | `catalex update [COMPONENT...]` | Update installed components to the newest release. `--check` only reports. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex update auto` | Run one pass of the automatic update; `--now` switches to the newest release at once, and `--app-only` replaces the app with its waiting new version. CatalEx runs it in the background by itself. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md#update) | | `catalex update status` | Show, without changing anything, whether an update switch runs and whether a new app version waits. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md#update) | | `catalex service autostart status\|on\|off` | Show, register or remove the login item that starts CatalEx's service at login without opening the app. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md#start-catalex-at-login) | | `catalex install status` | Show the installed components, their release and integrity. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex uninstall [COMPONENT...]` | Remove installed components; saved data is kept unless `--purge` is given. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex path add\|remove\|status` | Put the commands' folder on your login shell's PATH, take it off, or check it. | No | [Troubleshooting](https://docs.catalex.co/troubleshooting.md) | | `catalex prepare` | Make sure CatalEx's management service is ready on this computer. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex start` | Start CatalEx on the selected computer. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex stop` | Stop CatalEx on the selected computer. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex restart` | Restart CatalEx on the selected computer. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex status` | Show CatalEx's setup, operation and component states. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | | `catalex status metrics` | Show how many calls CatalEx makes and receives. | No | [Runtime settings catalog](https://docs.catalex.co/settings/catalog.md#call-metrics) | | `catalex doctor` | Check that CatalEx is ready; exits 1 when a part is not ready. | No | [Troubleshooting](https://docs.catalex.co/troubleshooting.md) | | `catalex version` | Show the installed client version. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md) | ## The CatalEx app | Command | What it does | Sign-in | Learn more | | --- | --- | --- | --- | | `catalex open` | Launch or focus the app. `--section` shows `agents`, `settings`, `settings/providers` or `settings/channels`; `--conversation REF` opens a conversation. | No | [The CatalEx app](https://docs.catalex.co/getting-started/app.md) | | `catalex app open` | The same as `catalex open`, under `app`. `--restore` reopens the chat or screen that was open before an update. | No | [The CatalEx app](https://docs.catalex.co/getting-started/app.md) | | `catalex app status` | Show whether the app runs, its version and whether it opens at login. | No | [The CatalEx app](https://docs.catalex.co/getting-started/app.md) | | `catalex app quit` | Quit the app; agents and chats keep running. | No | [The CatalEx app](https://docs.catalex.co/getting-started/app.md) | | `catalex app updating --reason quiet\|too_old` | Show the app's updating screen; `catalex update auto` asks for it before it switches. It updates nothing itself. | No | [Updates and everyday operation](https://docs.catalex.co/operate.md#update) | | `catalex app login on\|off` | Turn opening the app when you log in to this computer on or off. | No | [The CatalEx app](https://docs.catalex.co/getting-started/app.md) | ## Troubleshooting `catalex debug agents`, `debug projects`, `debug sessions list|inspect|events` and `debug operations inspect` print what CatalEx holds, one page at a time, to help find a problem. They need a sign-in. Start with [Troubleshooting](https://docs.catalex.co/troubleshooting.md#read-what-catalex-holds) and `catalex doctor`. # Runtime settings catalog Inspect `catalex settings --json` for your release's **effective values, validated bounds and editability**. This reference records the published setting names and defaults of CatalEx 0.1.19; supported fields vary by version. It deliberately contains no machine-specific values or secrets. The app has no screen for these settings; they are command-line only. Use [capacity and storage](https://docs.catalex.co/settings/advanced.md) for examples. Set an editable key with `catalex settings set KEY=JSON_VALUE`; `null` restores its default. Restart **services** means running services are restarted to apply the change; **controller** means a controller restart is required; **none** applies without a restart. Read-only network fields use setup or the [endpoint workflow](https://docs.catalex.co/settings/advanced.md#addresses-and-ports), not a raw settings write. The live catalog supplies ranges because related limits must remain compatible: for example, a ping interval must be shorter than its receiving connection's idle timeout. A maximum allowed by validation is not a recommended workload. Increase capacity only after checking memory, disk and provider limits. ## Workload and history Bound simultaneous work, waiting inputs and history size. Raise capacity only when the computer can support it. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.max_active_turns` | Deprecated and ignored. Each agent's **Turns at once** limit bounds its own turns, and nothing bounds turns across agents | `4` | count | Editable / services | | `limits.max_warm_runtimes` | How many idle agent runtimes stay ready for quick replies | `40` | count | Editable / services | | `limits.max_queued_inputs_per_session` | How many messages may wait for one chat before new ones are refused | `100` | count | Editable / services | | `limits.bridge_spool_mib` | Disk space for messages held while the messaging service link is down | `256` | MiB | Editable / services | | `limits.local_backlog_mib` | Disk space for messages waiting to be delivered to agents | `1024` | MiB | Editable / services | | `limits.bootstrap_messages` | How many earlier messages a new agent session is given as context | `100` | count | Editable / services | | `limits.inventory_probe_timeout_ms` | How long to wait when checking an agent's installed version and models | `10000` | ms | Editable / services | | `limits.inventory_max_models` | How many models to list per agent | `200` | count | Editable / services | | `limits.inventory_max_folders` | How many agent folders have their own AI settings read | `200` | count | Editable / services | ## Memory Bound output buffering and in-memory records when agents or histories become large. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.memory.output_buffer_bytes` | Memory kept for each running agent's output | `131072` | bytes | Editable / services | | `limits.memory.peer_tracked_commands` | How many peer commands are remembered while awaiting a result | `128` | count | Editable / services | | `limits.memory.peer_received_frames` | How many received peer messages may be held in memory | `100` | count | Editable / services | | `limits.memory.peer_received_bytes` | Memory allowed for received peer messages | `2097152` | bytes | Editable / services | ## Recovery Bound attempts and delay after interrupted or failed sessions; preserve a finite recovery budget. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.recovery.max_attempts` | How many times a failed turn is retried before giving up | `3` | count | Editable / services | | `limits.recovery.series_reset_seconds` | How long without failures before the retry count starts over | `1800` | s | Editable / services | | `limits.recovery.scan_page_size` | How many interrupted turns are checked at once on startup | `32` | count | Editable / services | | `limits.recovery.max_same_session_retries` | How many retries reuse the same agent session before starting fresh | `2` | count | Editable / services | | `limits.recovery.backoff_seconds` | Seconds to wait before each successive retry | `[5, 30]` | s | Editable / services | | `limits.recovery.prompt_resends` | How many times a message is resent to an agent that did not answer | `2` | count | Editable / services | ## Messaging connection Tune bounded connection, replay and acknowledgement behavior for a measured network problem. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.peer.native_session_sync_interval_ms` | How often chats started in an agent's own app are synced | `60000` | ms | Editable / services | | `limits.peer.native_session_resync_interval_ms` | The longest an unchanged scan of chats started in an agent's own app goes unreported | `1800000` | ms | Editable / services | | `limits.peer.native_session_probe_timeout_ms` | How long a check for an agent's own chats may take | `30000` | ms | Editable / services | | `limits.peer.native_session_page_size` | How many of an agent's own chats are read per request | `100` | count | Editable / services | | `limits.peer.native_session_max_pages` | How many pages of an agent's own chats are read per sync | `1000` | count | Editable / services | | `limits.peer.call_timeout_ms` | How long a peer call may take before it fails | `5000` | ms | Editable / services | | `limits.peer.command_timeout_ms` | How long a peer command may take before it fails | `10000` | ms | Editable / services | | `limits.peer.handshake_timeout_ms` | How long a new peer connection may take to be accepted | `5000` | ms | Editable / services | | `limits.peer.write_timeout_ms` | How long sending one message to a peer may take | `5000` | ms | Editable / services | | `limits.peer.read_idle_timeout_ms` | How long a peer connection may stay silent before it is dropped | `30000` | ms | Editable / services | | `limits.peer.ping_interval_ms` | How often a peer connection is checked to be alive | `10000` | ms | Editable / services | | `limits.peer.poll_interval_ms` | Fallback for new work; a store commit wakes chat links at once | `250` | ms | Editable / services | | `limits.peer.reconnect_initial_ms` | How long to wait before the first reconnect to a peer | `1000` | ms | Editable / services | | `limits.peer.reconnect_max_ms` | The longest wait between reconnect attempts to a peer | `30000` | ms | Editable / services | | `limits.peer.reconnect_reset_ms` | How long a connection must hold before reconnect waits reset | `30000` | ms | Editable / services | | `limits.peer.removed_check_ms` | How long a disconnected computer waits between checks of whether CatalEx Cloud restored or deleted it | `300000` | ms | Editable / services | | `limits.peer.shutdown_timeout_ms` | How long peer connections get to close cleanly on shutdown | `5000` | ms | Editable / services | | `limits.peer.claim_lease_ms` | How long a claimed message is reserved before others may take it | `15000` | ms | Editable / services | | `limits.peer.claim_batch` | How many messages are claimed from a peer at once | `32` | count | Editable / services | | `limits.peer.session_page_size` | How many chats are listed per peer request | `32` | count | Editable / services | | `limits.peer.cursor_ttl_ms` | How long a peer paging cursor stays valid | `600000` | ms | Editable / services | | `limits.peer.received_page_bytes` | The largest page of data accepted from a peer in one reply | `524288` | bytes | Editable / services | | `limits.peer.control_queue_bytes` | Memory for control messages queued to a peer | `1048576` | bytes | Editable / services | | `limits.peer.data_queue_bytes` | Memory for chat data queued to a peer | `2097152` | bytes | Editable / services | | `limits.peer.queue_frames` | How many messages may queue for one peer connection | `32` | count | Editable / services | | `limits.peer.accepted_links` | How many peer connections are accepted at once | `16` | count | Editable / services | | `limits.peer.follow_batch` | How many updates are followed from a peer per round | `32` | count | Editable / services | | `limits.peer.target_fetch_timeout_ms` | How long fetching a message's target may take | `10000` | ms | Editable / services | | `limits.peer.target_fetch_batch` | How many targets are fetched per request | `20` | count | Editable / services | | `limits.peer.target_fetches` | How many target fetches may run at the same time | `8` | count | Editable / services | | `limits.peer.settings_timeout_ms` | How long applying one agent settings change from an admin chat may take | `60000` | ms | Editable / services | | `limits.peer.catalogue_ack_revisions` | How many sent agent registrations are remembered to report their acknowledgement | `64` | count | Editable / services | | `limits.peer.record_sync_timeout_ms` | How long to wait for one batch of the conversation record sync. | `30000` | ms | Editable / services | | `limits.peer.record_sync_batch` | How many messages one batch of the conversation record sync carries (1 to 5000). | `500` | count | Editable / services | | `limits.peer.deferral_log_interval_ms` | The least time between two log warnings that the same command stays deferred | `60000` | ms | Editable / services | ## Agent communication Bound communication queues, output, retries and bridge liveness; avoid using longer timeouts to hide an offline peer. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.bridge.handshake_timeout_ms` | How long the messaging service link may take to connect | `5000` | ms | Editable / services | | `limits.bridge.write_timeout_ms` | How long sending one message over the messaging service link may take | `5000` | ms | Editable / services | | `limits.bridge.read_idle_timeout_ms` | How long the messaging service link may stay silent before it is dropped | `30000` | ms | Editable / services | | `limits.bridge.ping_interval_ms` | How often the messaging service link is checked to be alive | `10000` | ms | Editable / services | | `limits.bridge.poll_interval_ms` | Fallback for forwarding work; a journal commit forwards at once | `100` | ms | Editable / services | | `limits.bridge.control_page_size` | How many control messages are read per request | `32` | count | Editable / services | | `limits.bridge.reconnect_initial_ms` | How long to wait before the first service reconnect | `1000` | ms | Editable / services | | `limits.bridge.reconnect_max_ms` | The longest wait between service reconnect attempts | `30000` | ms | Editable / services | | `limits.bridge.shutdown_timeout_ms` | How long the messaging service link gets to close cleanly on shutdown | `10000` | ms | Editable / services | | `limits.bridge.history_timeout_ms` | How long loading chat history for the messaging service may take | `15000` | ms | Editable / services | | `limits.bridge.history_requests` | How many history requests may run at the same time | `32` | count | Editable / services | | `limits.bridge.native_open_timeout_ms` | How long opening an agent's own chat may take | `60000` | ms | Editable / services | | `limits.bridge.cancel_timeout_ms` | How long cancelling a running turn may take | `250` | ms | Editable / services | | `limits.bridge.process_exit_wait_ms` | How long to wait for an agent process to exit | `5000` | ms | Editable / services | | `limits.bridge.process_poll_interval_ms` | How often a running agent process is checked | `10` | ms | Editable / services | | `limits.bridge.tool_call_timeout_ms` | How long an agent's tool call may take before it fails | `20000` | ms | Editable / services | | `limits.bridge.io_buffer_bytes` | Memory used to read and write agent output | `4096` | bytes | Editable / services | | `limits.bridge.journal_total_mib` | Total disk space for the delivery journal | `256` | MiB | Editable / services | | `limits.bridge.tool_refusals` | How many refused tool calls are tolerated before a turn stops | `4` | count | Editable / services | | `limits.bridge.report_retries` | How many times a failed voice-note transcript report is sent again before it is dropped | `2` | count | Editable / services | | `limits.bridge.subagent_notice_bytes` | How much of a finished subagent's final message its notice to the main agent carries | `4096` | bytes | Editable / services | | `limits.bridge.background_renewal_ms` | How often a session's running background work is reported again to keep the chat showing the agent working | `60000` | ms | Editable / services | | `limits.bridge.routine_messages_per_second` | How many routine messages an agent may send each second | `4` | count | Editable / services | | `limits.bridge.tool_connections` | How many tool connections may be open at once | `16` | count | Editable / services | | `limits.bridge.journal_lock_timeout_ms` | How long to wait for the delivery journal lock | `50` | ms | Editable / services | | `limits.bridge.journal_disk_reserve_mib` | Free disk space kept back from the delivery journal | `8` | MiB | Editable / services | | `limits.bridge.pricing_refresh_interval_ms` | How often the model price table is fetched from the messaging service | `86400000` | ms | Editable / services | | `limits.bridge.pricing_fetch_timeout_ms` | How long fetching the model price table may take | `10000` | ms | Editable / services | | `limits.bridge.pricing_max_bytes` | The largest model price table accepted, in bytes | `65536` | bytes | Editable / services | ## Conversation gateway Bound incoming sessions, delivery, decisions and attachment requests. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.gateway.read_header_timeout_ms` | How long a client may take to send request headers | `5000` | ms | Editable / services | | `limits.gateway.idle_timeout_ms` | How long an idle client connection is kept open | `30000` | ms | Editable / services | | `limits.gateway.native_idle_timeout_ms` | How long a conversation may sit idle before its agent process closes; the next message or reaction starts it again | `300000` | ms | Editable / services | | `limits.gateway.shutdown_timeout_ms` | How long the chat service gets to stop cleanly | `10000` | ms | Editable / services | | `limits.gateway.drain_timeout_ms` | How long in-flight work may finish before the chat service stops | `15000` | ms | Editable / services | | `limits.gateway.remote_history_timeout_ms` | How long loading remote chat history may take | `15000` | ms | Editable / services | | `limits.gateway.cursor_ttl_ms` | How long a paging cursor stays valid | `300000` | ms | Editable / services | | `limits.gateway.archive_timeout_ms` | How long archiving a chat may take | `10000` | ms | Editable / services | | `limits.gateway.retention_interval_ms` | How often old data is checked for cleanup | `2000` | ms | Editable / services | | `limits.gateway.retention_high_percent` | Storage fullness that starts removing old data | `70` | percent | Editable / services | | `limits.gateway.retention_low_percent` | Storage fullness at which cleanup of old data stops | `60` | percent | Editable / services | | `limits.gateway.dispatch_interval_ms` | How often waiting messages are handed to agents | `250` | ms | Editable / services | | `limits.gateway.dispatch_pass_timeout_ms` | How long one delivery pass may take | `5000` | ms | Editable / services | | `limits.gateway.drain_poll_interval_ms` | How often shutdown checks whether work has finished | `100` | ms | Editable / services | | `limits.gateway.bridge_handshake_timeout_ms` | How long a bridge connection may take to be accepted | `5000` | ms | Editable / services | | `limits.gateway.bridge_write_timeout_ms` | How long sending one message to a bridge may take | `5000` | ms | Editable / services | | `limits.gateway.bridge_ping_interval_ms` | How often a bridge connection is checked to be alive | `10000` | ms | Editable / services | | `limits.gateway.bridge_read_idle_timeout_ms` | How long a bridge may stay silent before it is dropped | `30000` | ms | Editable / services | | `limits.gateway.bridge_final_wait_ms` | How long a success reaction waits for its turn's end | `5000` | ms | Editable / services | | `limits.gateway.bridge_queue_frames` | How many messages may queue for one bridge connection | `32` | count | Editable / services | | `limits.gateway.bridge_pending_finals` | How many success reactions may wait for their turn's end | `32` | count | Editable / services | | `limits.gateway.bridge_io_buffer_bytes` | Memory used to read and write bridge traffic | `4096` | bytes | Editable / services | | `limits.gateway.event_cursors` | How many live event streams may be open at once | `256` | count | Editable / services | | `limits.gateway.session_cursors` | How many chat list cursors may be open at once | `1024` | count | Editable / services | | `limits.gateway.event_page_size` | How many events are returned per request | `10` | count | Editable / services | | `limits.gateway.catalogue_page_size` | How many catalogue entries are returned per request | `100` | count | Editable / services | | `limits.gateway.history_page_size` | How many history messages are returned per request | `20` | count | Editable / services | | `limits.gateway.remote_history_skip_pages` | How many remote history pages may be skipped when catching up | `5` | count | Editable / services | | `limits.gateway.idle_tracked_sessions` | How many chats are tracked for idle detection | `4096` | count | Editable / services | | `limits.gateway.question_warm_timeout_ms` | How long an idle chat waiting for an answer to its question stays open | `1800000` | ms | Editable / services | | `limits.gateway.input_quiet_window_ms` | How long messages wait for another before reaching the agent together in one turn | `1500` | ms | Editable / services | | `limits.gateway.input_max_wait_ms` | The longest the first of such messages waits for others | `10000` | ms | Editable / services | | `limits.gateway.analytics_sample_records` | How many records are sampled for analytics | `2000` | count | Editable / services | | `limits.gateway.analytics_transcript_messages` | How many messages per chat are read for analytics | `100` | count | Editable / services | | `limits.gateway.analytics_activity_rows` | How many grouped rows one Analytics read takes from each query | `50000` | count | Editable / services | | `limits.gateway.analytics_reply_samples` | How many recent messages are paired for reply times | `5000` | count | Editable / services | ## Chat client connections Bound chat requests, history pages and client handshakes so a slow client cannot hold resources indefinitely. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.console.gateway_timeout_ms` | How long the dashboard waits for the chat service to answer | `10000` | ms | Editable / services | | `limits.console.links` | How many dashboard connections may be open at once | `16` | count | Editable / services | | `limits.console.link_handshake_timeout_ms` | How long a dashboard connection may take to be accepted | `10000` | ms | Editable / services | | `limits.console.link_write_timeout_ms` | How long sending one message to the dashboard may take | `5000` | ms | Editable / services | | `limits.console.link_ping_interval_ms` | How often a dashboard connection is checked to be alive | `10000` | ms | Editable / services | | `limits.console.link_idle_timeout_ms` | How long a dashboard connection may stay silent before it is dropped | `30000` | ms | Editable / services | | `limits.console.answer_replay_timeout_ms` | How long a given answer is kept for replay after a reconnect | `15000` | ms | Editable / services | | `limits.console.config_apply_timeout_ms` | How long applying a settings change may take | `2000` | ms | Editable / services | | `limits.console.config_apply_interval_ms` | How often a pending settings change is retried | `200` | ms | Editable / services | | `limits.console.catalogue_ack_timeout_ms` | How long connecting an agent to a messaging app waits for CatalEx Cloud to register it | `20000` | ms | Editable / services | | `limits.console.catalogue_ack_interval_ms` | How often that wait asks whether CatalEx Cloud has registered the agent | `200` | ms | Editable / services | | `limits.console.remembered_scopes` | How many permission choices are remembered | `10000` | count | Editable / services | | `limits.console.page_size` | How many items the dashboard loads per page | `50` | count | Editable / services | | `limits.console.attachment_status_batch` | How many attachment statuses are checked per request | `50` | count | Editable / services | | `limits.console.attachment_preparing_ms` | How long a new message's file that is not downloaded yet shows as preparing | `300000` | ms | Editable / services | | `limits.console.web_result_bytes` | The largest JSON answer to a web view request this computer holds in memory (4096 to 67108864); a larger answer is refused | `1048576` | bytes | Editable / services | ## Management operations Bound setup, discovery, service checks, marketplace imports and management requests on the agent computer. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.controller.endpoint_operations` | How many endpoint operations may run at the same time | `128` | count | Editable / services | | `limits.controller.start_timeout_ms` | How long starting CatalEx may take | `300000` | ms | Editable / services | | `limits.controller.cleanup_timeout_ms` | How long cleaning up leftovers may take | `20000` | ms | Editable / services | | `limits.controller.gateway_ready_timeout_ms` | How long to wait for the chat service to become ready | `90000` | ms | Editable / services | | `limits.controller.gateway_probe_timeout_ms` | How long one gateway readiness check may take | `3000` | ms | Editable / services | | `limits.controller.gateway_probe_interval_ms` | How often the chat service is checked for readiness | `1000` | ms | Editable / services | | `limits.controller.start_probe_interval_ms` | How often a starting deployment is checked for readiness | `100` | ms | Editable / services | | `limits.controller.shutdown_timeout_ms` | How long CatalEx gets to stop cleanly | `15000` | ms | Editable / services | | `limits.controller.drain_timeout_ms` | How long the chat service gets to finish work before stopping | `20000` | ms | Editable / services | | `limits.controller.control_timeout_ms` | How long a request to CatalEx may take | `5000` | ms | Editable / services | | `limits.controller.down_timeout_ms` | How long stopping CatalEx may take | `25000` | ms | Editable / services | | `limits.controller.down_poll_interval_ms` | How often shutdown checks that services have stopped | `250` | ms | Editable / services | | `limits.controller.control_read_header_timeout_ms` | How long a control client may take to send request headers | `3000` | ms | Editable / services | | `limits.controller.console_read_header_timeout_ms` | How long a browser may take to send request headers | `5000` | ms | Editable / services | | `limits.controller.console_idle_timeout_ms` | How long an idle browser connection is kept open | `60000` | ms | Editable / services | | `limits.controller.media_reconcile_interval_ms` | How often stored media is checked against chats | `3600000` | ms | Editable / services | | `limits.controller.socket_probe_timeout_ms` | How long checking a local socket may take | `200` | ms | Editable / services | | `limits.controller.orphan_stop_timeout_ms` | How long to wait when stopping leftover processes | `120000` | ms | Editable / services | | `limits.controller.stats_interval_ms` | How often resource usage is sampled | `30000` | ms | Editable / services | | `limits.controller.stats_docker_timeout_ms` | How long reading container usage may take | `5000` | ms | Editable / services | | `limits.controller.stats_chats` | How many chats are included in usage statistics | `500` | count | Editable / services | | `limits.controller.stats_processes` | How many processes are included in usage statistics | `256` | count | Editable / services | | `limits.controller.analytics_people` | How many people Analytics lists by name | `50` | count | Editable / services | | `limits.controller.computer_name_timeout_ms` | How long reading the Mac's Computer Name may take before the host name is used | `1000` | ms | Editable / services | | `limits.controller.computer_offline_after_ms` | How long this computer's connection may keep failing before it reports itself offline | `10000` | ms | Editable / services | | `limits.controller.account_chats` | How many chats one page of an account's chats lists | `25` | count | Editable / services | | `limits.controller.account_chat_messages` | How many messages one page of a chat reads | `50` | count | Editable / services | | `limits.controller.account_chats_cache_max_age_ms` | How long an account's first page of chats or a chat's messages is served before the messaging service is read again | `300000` | ms | Editable / services | | `limits.controller.agent_registration_attempts` | How many new agent IDs one add tries to register with the messaging service before it reports a conflict | `3` | count | Editable / services | | `limits.controller.agent_registration_requests` | How many requests one new agent ID may take to be registered; a lost reply is asked again with the same ID | `2` | count | Editable / services | | `limits.controller.account_chats_cache_entries` | How many pages of chats or messages are kept in memory | `64` | count | Editable / services | | `limits.controller.agent_activity_entries` | How many settings changes from admin chats the agents' activity keeps | `1000` | count | Editable / services | | `limits.controller.agent_picture_bytes` | The largest image an agent's picture may be, in bytes | `1048576` | bytes | Editable / services | | `limits.controller.marketplace_clone_timeout_ms` | How long copying a marketplace agent to this computer may take before it is cancelled | `600000` | ms | Editable / services | | `limits.controller.marketplace_imports` | How many marketplace agents this computer keeps imported at once | `100` | count | Editable / services | | `limits.controller.marketplace_folder_suffixes` | How many numbered folder names (agent-2, agent-3, and so on) CatalEx tries when a marketplace agent's folder name is taken | `10000` | count | Editable / services | | `limits.controller.log_bytes` | How large CatalEx's activity log may grow before a start moves it aside, in bytes | `8388608` | bytes | Editable / services | | `limits.controller.health_check_interval_ms` | The least time between two end-to-end checks of the messaging service; a status read starts one once it has passed | `300000` | ms | Editable / services | | `limits.controller.behavior_binding_cache_max_age_ms` | How long the messaging service's proof of an agent conversation's binding is reused before the service is asked again | `900000` | ms | Editable / services | | `limits.controller.restart_attempts` | How many times CatalEx starts a deployment again after it stopped unexpectedly | `3` | count | Editable / services | | `limits.controller.restart_wait_ms` | How long CatalEx waits before the first restart; each next one waits five times as long | `1000` | ms | Editable / services | | `limits.controller.restart_stable_after_ms` | How long a deployment runs before its earlier restarts no longer count against it | `60000` | ms | Editable / services | | `limits.controller.update_poll_interval_ms` | How often CatalEx looks at whether to run its updater | `10000` | ms | Editable / services | | `limits.controller.update_staged_interval_ms` | How often the updater runs while a release waits to be installed | `60000` | ms | Editable / services | ## Conversation storage Bound database retries, maintenance and paging. Change only for a diagnosed storage problem. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.store.query_timeout_ms` | How long a database query may take | `5000` | ms | Editable / services | | `limits.store.annotation_timeout_ms` | How long saving a message annotation may take | `2000` | ms | Editable / services | | `limits.store.control_expiry_ms` | How long an unanswered control request stays valid | `60000` | ms | Editable / services | | `limits.store.sqlite_busy_timeout_ms` | How long to wait for a busy local database | `5000` | ms | Editable / services | | `limits.store.postgres_connect_timeout_ms` | How long connecting to the PostgreSQL database may take | `5000` | ms | Editable / services | | `limits.store.max_open_conns` | The most database connections open at once | `10` | count | Editable / services | | `limits.store.max_idle_conns` | The most idle database connections kept ready | `2` | count | Editable / services | | `limits.store.touch_buffer` | How many chat activity updates are batched before saving | `1024` | count | Editable / services | | `limits.store.evict_batch` | How many old records are removed per cleanup step | `500` | count | Editable / services | | `limits.store.settlement_reserve_percent` | Share of storage reserved for finishing in-flight messages | `5` | percent | Editable / services | | `limits.store.settled_control_retention_ms` | How long completed control requests are kept | `604800000` | ms | Editable / services | | `limits.store.message_tag_ttl_ms` | How long a reply can still name the message it answers | `86400000` | ms | Editable / services | | `limits.store.handover_batch` | How many records move to a new owner per step | `256` | count | Editable / services | | `limits.store.dispatch_page_size` | How many waiting messages are read per delivery pass | `32` | count | Editable / services | | `limits.store.command_page_size` | How many commands are read per request | `32` | count | Editable / services | ## Native provider sessions Bound startup, decisions, native output and cancellation for the installed AI tools. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.native.version_probe_timeout_ms` | How long checking an agent's version may take | `5000` | ms | Editable / services | | `limits.native.login_probe_timeout_ms` | How long checking an agent's sign-in may take | `10000` | ms | Editable / services | | `limits.native.reap_timeout_ms` | How long to wait for a finished agent process to be cleaned up | `1000` | ms | Editable / services | | `limits.native.exit_grace_ms` | How long an agent gets to exit after being asked to stop | `500` | ms | Editable / services | | `limits.native.stop_grace_ms` | How long an agent gets to stop before it is forced | `1000` | ms | Editable / services | | `limits.native.kill_wait_ms` | How long to wait after forcing an agent process to end | `1000` | ms | Editable / services | | `limits.native.cancel_timeout_ms` | How long cancelling an agent turn may take | `250` | ms | Editable / services | | `limits.native.write_timeout_ms` | How long sending input to an agent may take | `1000` | ms | Editable / services | | `limits.native.completion_wait_ms` | How long to wait for an agent to report a turn finished | `2000` | ms | Editable / services | | `limits.native.call_match_timeout_ms` | How long to match an agent's tool call to its result | `1000` | ms | Editable / services | | `limits.native.permission_match_timeout_ms` | How long to match a permission request to an agent's tool call | `2000` | ms | Editable / services | | `limits.native.turn_process_stop_timeout_ms` | How long stopping an agent process after a turn may take | `2000` | ms | Editable / services | | `limits.native.decision_expiry_ms` | How long a permission question waits for an answer | `1800000` | ms | Editable / services | | `limits.native.group_poll_interval_ms` | How often an agent's process group is checked | `10` | ms | Editable / services | | `limits.native.probe_pipe_wait_ms` | How long to wait for an agent's probe output | `100` | ms | Editable / services | | `limits.native.permission_hook_io_timeout_ms` | How long the permission check may take to read or write | `5000` | ms | Editable / services | | `limits.native.permission_hook_margin_ms` | Extra time allowed on top of the permission answer wait | `60000` | ms | Editable / services | | `limits.native.tool_inventory_timeout_ms` | How long listing an agent's tools by starting it briefly may take | `20000` | ms | Editable / services | | `limits.native.tool_inventory_settle_ms` | How long an agent's tool list must stay unchanged to be complete | `2000` | ms | Editable / services | | `limits.native.tool_gate_timeout_ms` | How long the check of each tool call against an agent's reviewed tools may take | `10000` | ms | Editable / services | | `limits.native.tool_gate_probe_timeout_ms` | How long the test of that check before a restricted session starts may take | `10000` | ms | Editable / services | | `limits.native.config_read_timeout_ms` | How long to wait when reading an agent's own AI settings | `3000` | ms | Editable / services | | `limits.native.self_started_replies` | How many replies the agent sends on its own between messages are kept for delivery | `8` | count | Editable / services | | `limits.native.start_check_error_bytes` | How much of the provider's own error text a refused start check or turn keeps; the agent runtime forwards at most 2048 characters of a turn's text | `2048` | bytes | Editable / services | ## Audio Bound audio bytes and duration before transcription or other processing. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.audio.max_bytes` | The largest voice message accepted | `10485760` | bytes | Editable / services | | `limits.audio.max_duration_ms` | The longest voice message accepted | `300000` | ms | Editable / services | ## Attachments Balance attachment size, count, retention and total disk use. These settings do not erase downloaded recipient copies. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.artifacts.retention_ms` | How long generated files are kept | `604800000` | ms | Editable / services | | `limits.artifacts.max_spool_bytes` | Disk space for generated files awaiting delivery | `268435456` | bytes | Editable / services | | `limits.artifacts.max_attachments` | How many attachments one message may carry | `4` | count | Editable / services | | `limits.artifacts.max_file_bytes` | The largest single attachment accepted | `10485760` | bytes | Editable / services | | `limits.artifacts.upload_timeout_ms` | How long uploading one agent file to the messaging service may take | `120000` | ms | Editable / services | ## Agent messaging Bound cross-agent message work and delivery records. These limits do not enable a destination; the sender's allowlist does. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.delegation.ref_cache_entries` | How many routes to other agents' contacts are remembered | `10000` | count | Editable / services | | `limits.delegation.resolve_timeout_ms` | How long to wait for the messaging service to route a delegation | `5000` | ms | Editable / services | | `limits.delegation.outbox_poll_interval_ms` | How often delegation messages for the messaging service are collected | `250` | ms | Editable / services | | `limits.delegation.outbox_poll_wait_ms` | How long a collection of delegation messages waits for one to send | `2000` | ms | Editable / services | | `limits.delegation.link_report_timeout_ms` | How long the messaging service link counts as up without word from it | `3000` | ms | Editable / services | ## Proactive sends Bound the messages an agent sends without being asked. The per-agent counts are in the agent's [Limits tab](https://docs.catalex.co/settings/access-and-limits.md#agent-limits). | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.proactive.wait_ms` | How long a proactive send waits for the messaging service before it reports queued | `10000` | ms | Editable / services | | `limits.proactive.max_text_characters` | The longest text of a proactive send | `4096` | count | Editable / services | | `limits.proactive.context_count` | How many proactive sends the next turn lists | `5` | count | Editable / services | ## Call metrics Bound the call counters CatalEx keeps and logs. `catalex status metrics` shows the counts. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `limits.call_metrics.summary_interval_ms` | How often the call summary is logged | `60000` | ms | Editable / services | | `limits.call_metrics.max_series` | How many distinct label sets each call counter keeps before the rest count as other | `200` | count | Editable / services | ## Controller process Tune the management process's own request and operation budgets. These require a controller restart rather than only a service restart. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `controller.limits.controller.endpoint_operations` | How many endpoint operations may run at the same time | `128` | count | Editable / controller | | `controller.limits.controller.start_timeout_ms` | How long starting CatalEx may take | `300000` | ms | Editable / controller | | `controller.limits.controller.cleanup_timeout_ms` | How long cleaning up leftovers may take | `20000` | ms | Editable / controller | | `controller.limits.controller.gateway_ready_timeout_ms` | How long to wait for the chat service to become ready | `90000` | ms | Editable / controller | | `controller.limits.controller.gateway_probe_timeout_ms` | How long one gateway readiness check may take | `3000` | ms | Editable / controller | | `controller.limits.controller.gateway_probe_interval_ms` | How often the chat service is checked for readiness | `1000` | ms | Editable / controller | | `controller.limits.controller.start_probe_interval_ms` | How often a starting deployment is checked for readiness | `100` | ms | Editable / controller | | `controller.limits.controller.shutdown_timeout_ms` | How long CatalEx gets to stop cleanly | `15000` | ms | Editable / controller | | `controller.limits.controller.drain_timeout_ms` | How long the chat service gets to finish work before stopping | `20000` | ms | Editable / controller | | `controller.limits.controller.control_timeout_ms` | How long a request to CatalEx may take | `5000` | ms | Editable / controller | | `controller.limits.controller.down_timeout_ms` | How long stopping CatalEx may take | `25000` | ms | Editable / controller | | `controller.limits.controller.down_poll_interval_ms` | How often shutdown checks that services have stopped | `250` | ms | Editable / controller | | `controller.limits.controller.control_read_header_timeout_ms` | How long a control client may take to send request headers | `3000` | ms | Editable / controller | | `controller.limits.controller.console_read_header_timeout_ms` | How long a browser may take to send request headers | `5000` | ms | Editable / controller | | `controller.limits.controller.console_idle_timeout_ms` | How long an idle browser connection is kept open | `60000` | ms | Editable / controller | | `controller.limits.controller.media_reconcile_interval_ms` | How often stored media is checked against chats | `3600000` | ms | Editable / controller | | `controller.limits.controller.socket_probe_timeout_ms` | How long checking a local socket may take | `200` | ms | Editable / controller | | `controller.limits.controller.orphan_stop_timeout_ms` | How long to wait when stopping leftover processes | `120000` | ms | Editable / controller | | `controller.limits.controller.stats_interval_ms` | How often resource usage is sampled | `30000` | ms | Editable / controller | | `controller.limits.controller.stats_docker_timeout_ms` | How long reading container usage may take | `5000` | ms | Editable / controller | | `controller.limits.controller.stats_chats` | How many chats are included in usage statistics | `500` | count | Editable / controller | | `controller.limits.controller.stats_processes` | How many processes are included in usage statistics | `256` | count | Editable / controller | | `controller.limits.controller.analytics_people` | How many people Analytics lists by name | `50` | count | Editable / controller | | `controller.limits.controller.computer_name_timeout_ms` | How long reading the Mac's Computer Name may take before the host name is used | `1000` | ms | Editable / controller | | `controller.limits.controller.computer_offline_after_ms` | How long this computer's connection may keep failing before it reports itself offline | `10000` | ms | Editable / controller | | `controller.limits.controller.account_chats` | How many chats one page of an account's chats lists | `25` | count | Editable / controller | | `controller.limits.controller.account_chat_messages` | How many messages one page of a chat reads | `50` | count | Editable / controller | | `controller.limits.controller.account_chats_cache_max_age_ms` | How long an account's first page of chats or a chat's messages is served before the messaging service is read again | `300000` | ms | Editable / controller | | `controller.limits.controller.agent_registration_attempts` | How many new agent IDs one add tries to register with the messaging service before it reports a conflict | `3` | count | Editable / controller | | `controller.limits.controller.agent_registration_requests` | How many requests one new agent ID may take to be registered; a lost reply is asked again with the same ID | `2` | count | Editable / controller | | `controller.limits.controller.account_chats_cache_entries` | How many pages of chats or messages are kept in memory | `64` | count | Editable / controller | | `controller.limits.controller.agent_activity_entries` | How many settings changes from admin chats the agents' activity keeps | `1000` | count | Editable / controller | | `controller.limits.controller.agent_picture_bytes` | The largest image an agent's picture may be, in bytes | `1048576` | bytes | Editable / controller | | `controller.limits.controller.marketplace_clone_timeout_ms` | How long copying a marketplace agent to this computer may take before it is cancelled | `600000` | ms | Editable / controller | | `controller.limits.controller.marketplace_imports` | How many marketplace agents this computer keeps imported at once | `100` | count | Editable / controller | | `controller.limits.controller.marketplace_folder_suffixes` | How many numbered folder names (agent-2, agent-3, and so on) CatalEx tries when a marketplace agent's folder name is taken | `10000` | count | Editable / controller | | `controller.limits.controller.log_bytes` | How large CatalEx's activity log may grow before a start moves it aside, in bytes | `8388608` | bytes | Editable / controller | | `controller.limits.controller.health_check_interval_ms` | The least time between two end-to-end checks of the messaging service; a status read starts one once it has passed | `300000` | ms | Editable / controller | | `controller.limits.controller.behavior_binding_cache_max_age_ms` | How long the messaging service's proof of an agent conversation's binding is reused before the service is asked again | `900000` | ms | Editable / controller | | `controller.limits.controller.restart_attempts` | How many times CatalEx starts a deployment again after it stopped unexpectedly | `3` | count | Editable / controller | | `controller.limits.controller.restart_wait_ms` | How long CatalEx waits before the first restart; each next one waits five times as long | `1000` | ms | Editable / controller | | `controller.limits.controller.restart_stable_after_ms` | How long a deployment runs before its earlier restarts no longer count against it | `60000` | ms | Editable / controller | | `controller.limits.controller.update_poll_interval_ms` | How often CatalEx looks at whether to run its updater | `10000` | ms | Editable / controller | | `controller.limits.controller.update_staged_interval_ms` | How often the updater runs while a release waits to be installed | `60000` | ms | Editable / controller | ## Computer and account checks Inspect network configuration, health-check cadence and cross-computer chat visibility. Use the supported connection/endpoint workflow for read-only addresses. Ports accept 1024 to 65535. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `controller.destination_check_interval_ms` | How often connected accounts are checked for problems (1000 to 3600000) | `60000` | ms | Editable / none | | `controller.destination_check_timeout_ms` | How long one account check may take (1000 to 300000) | `30000` | ms | Editable / none | | `controller.port` | The port CatalEx's main service listens on | `7443` | port | Read-only | | `controller.control_port` | The port the app uses to manage CatalEx | `7449` | port | Read-only | | `controller.native_chat_console_port` | The port for the native chats' console | `7445` | port | Read-only | | `controller.native_chat_gateway_port` | The port for the native chat service | `7441` | port | Read-only | | `controller.agent_console_port` | The port for the agent console | `7447` | port | Read-only | | `controller.agent_gateway_port` | The port agents use to reach CatalEx | `7442` | port | Read-only | | `controller.service_port` | The port of the service CatalEx connects to | `8080` | port | Read-only | | `controller.database_port` | The port of CatalEx's database | `15432` | port | Read-only | | `controller.control_bind` | The address the management service listens on | `"127.0.0.1"` | string | Read-only | | `controller.service_url` | The address of the messaging service CatalEx connects to | `""` | string | Read-only | | `controller.show_other_computers_chats` | Show chats from other computers in each account's chats | `false` | boolean | Editable / none | ## Fixed protocol bounds These are fixed contract values, not tuning controls. Split oversized content or use an attachment. | Key | Purpose | Default | Unit | Change / restart | | --- | --- | --- | --- | --- | | `fixed.message_text_characters` | The longest message text, in characters, that CatalEx accepts | `65536` | characters | Read-only | # Client environment settings These variables affect the `catalex` command-line process, not an agent’s permissions or server limits. Set one for a specific command when diagnosing slow networks, large responses or bounded history reads. Leave it unset to use the default; values are decimal integers in the listed range. For example: ```bash CATALEX_CLIENT_REQUEST_TIMEOUT_MS=60000 catalex status ``` This gives a request up to one minute; it cannot make an unreachable server respond. A shorter caller deadline still wins. Higher byte/frame/history budgets increase potential memory and network work. | Environment setting | Unit | Default | Inclusive range | | --- | --- | --- | --- | | `CATALEX_CLIENT_DISCOVERY_MAX_BYTES` | bytes per publication | 65536 | 1024–1048576 | | `CATALEX_CLIENT_REGISTRY_MAX_BYTES` | bytes per registry read/write | 16777216 | 1024–67108864 | | `CATALEX_CLIENT_RESPONSE_MAX_BYTES` | bytes per HTTP response/request | 16777216 | 1024–67108864 | | `CATALEX_CLIENT_ATTACHMENT_MAX_BYTES` | bytes per chat attachment upload or download | 16777216 | 1024–67108864 | | `CATALEX_CLIENT_DISCOVERY_MAX_ENTRIES` | directory entries per scan | 1024 | 1–16384 | | `CATALEX_CLIENT_MAX_CONNECTIONS` | references plus removal identities | 1024 | 1–16384 | | `CATALEX_CLIENT_REQUEST_TIMEOUT_MS` | milliseconds per identity/scan/input/control request or console handshake | 30000 | 1–600000 | | `CATALEX_CLIENT_OPERATION_TIMEOUT_MS` | milliseconds a command follows an accepted operation | 600000 | 1–3600000 | | `CATALEX_CLIENT_POLL_INTERVAL_MS` | milliseconds between status reads while following, and between the health checks of a new release after an update | 200 | 10–60000 | | `CATALEX_CLIENT_DISCOVERY_PROBE_TIMEOUT_MS` | milliseconds per liveness probe when several agent computers are discoverable | 2000 | 1–600000 | | `CATALEX_CLIENT_CHAT_TIMEOUT_MS` | milliseconds per chat link handshake or request | 30000 | 1–600000 | | `CATALEX_CLIENT_CHAT_WRITE_TIMEOUT_MS` | milliseconds per chat frame write | 5000 | 1–600000 | | `CATALEX_CLIENT_CHAT_WATCH_MS` | default `chats watch` duration in milliseconds | 30000 | 1–600000 | | `CATALEX_CLIENT_CHAT_MAX_FRAMES` | frames one chat link reads | 1000 | 1–65536 | | `CATALEX_CLIENT_CHAT_HISTORY_LIMIT` | messages per history page | 100 | 1–100 | | `CATALEX_CLIENT_CHAT_HISTORY_PAGES` | history pages one command reads | 5 | 1–100 | | `CATALEX_CLIENT_CHAT_COMMAND_TTL_MS` | milliseconds a sent chat command stays admissible | 1800000 | 1–86400000 | | `CATALEX_CLIENT_CHAT_RESEND_MS` | milliseconds before a chat command with no receipt yet is sent again | 1000 | 1–600000 | | `CATALEX_CLIENT_CONNECT_TIMEOUT_MS` | milliseconds `catalex join` and `catalex devices trust-this` wait for this computer to connect | 15000 | 0–600000 | | `CATALEX_CLIENT_SIGNIN_TIMEOUT_MS` | milliseconds `catalex login` waits for you to finish signing in | 600000 | 1–3600000 | | `CATALEX_CLIENT_GOOGLE_LOGIN_TIMEOUT_MS` | milliseconds for the final step of a Google sign-in | 60000 | 1–600000 | | `CATALEX_CLIENT_COMPUTER_NAME_TIMEOUT_MS` | milliseconds to read the Mac's Computer Name before the host name is used | 1000 | 100–10000 | | `CATALEX_CLIENT_DELETE_RETRIES` | times `catalex account delete` repeats a failed request | 2 | 0–10 | | `CATALEX_CLIENT_DELETE_RETRY_MS` | milliseconds before the first repeat | 1000 | 1–600000 | | `CATALEX_CLIENT_DISCONNECT_IDLE_POLLS` | consecutive idle status reads before a command that waits for this computer to disconnect gives up | 3 | 1–100 | | `CATALEX_CLIENT_PROMPT_MAX_BYTES` | bytes of one line read from a terminal prompt | 4096 | 1024–1048576 | | `CATALEX_CLIENT_RECENT_AGENTS_SESSION_FILES` | recent AI tool session files `catalex agents discover` looks at | 200 | 1–1000 | | `CATALEX_CLIENT_RECENT_AGENTS_READ_BYTES` | bytes read from each session file | 65536 | 1024–1048576 | | `CATALEX_CLIENT_RECENT_AGENTS_MAX_RESULTS` | most agent folders it lists | 12 | 1–100 | | `CATALEX_CLIENT_RECENT_AGENTS_MAX_DEPTH` | folder depth it follows | 4 | 1–16 | | `CATALEX_CLIENT_RECENT_AGENTS_CODEX_THREADS` | Codex threads it reads | 300 | 1–20000 | | `CATALEX_CLIENT_RECENT_AGENTS_CODEX_TIMEOUT_MS` | milliseconds the Codex thread lookup may take | 5000 | 1–600000 | | `CATALEX_CLIENT_LOCK_WAIT_MS` | milliseconds a command waits for a busy sign-in state lock | 10000 | 0–600000 | | `CATALEX_CLIENT_LOCK_RETRY_MS` | milliseconds between attempts to take that lock | 50 | 1–10000 | | `CATALEX_CLIENT_KEYCHAIN_TIMEOUT_MS` | milliseconds one keychain call may take before the credential file is used | 10000 | 1–600000 | | `CATALEX_CLIENT_CREDENTIAL_MAX_BYTES` | bytes read from the stored sign-in | 65536 | 1024–1048576 | | `CATALEX_CLIENT_UPDATE_STAGE_ATTEMPTS` | times one `catalex update auto` run downloads again because a newer release appeared meanwhile | 3 | 1–10 | | `CATALEX_CLIENT_UPDATE_DOWNLOAD_TIMEOUT_MS` | milliseconds one release file may take to download | 1800000 | 1–86400000 | | `CATALEX_CLIENT_UPDATE_DOWNLOAD_MAX_BYTES` | bytes of one release file | 2147483648 | 1–68719476736 | `CATALEX_RELAY_HOME` selects an absolute configuration and state home instead of `~/.catalex`; a relative path is refused. Change it only to work with an intentionally separate installation. Saved connections and existing setup discovery then use that home. `CATALEX_CLIENT_CREDENTIAL_STORE` chooses where `catalex login` keeps the sign-in: `auto` (default: an existing credential file, else a usable keychain, else a new private file), `keychain` or `file`. Other `CATALEX_CLIENT_*` variables, such as the Google sign-in pacing ones, are for diagnostics; leave them unset. For runtime capacity use [advanced settings](https://docs.catalex.co/settings/advanced.md). For the remote computer selected by a command, use `--connection NAME`; do not change state-home variables to select a different server. # 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 ```bash 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: ```bash 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. ```bash 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 ```bash 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: | Setting | Default | Range | Meaning | | --- | --- | --- | --- | | `updates.automatic` | `1` | `0`–`1` | `0` turns automatic switching off. CatalEx then switches only when CatalEx Cloud refuses this version. | | `updates.check_interval` | 60 minutes | 1 minute–1 week | How often CatalEx looks for a new release. | | `updates.app_quiet` | 2 minutes | 1 minute–1 week | How long the app must be unused. | | `updates.agent_quiet` | 15 minutes | 1 minute–1 week | How long after an agent's last turn ended. | | `updates.max_wait` | 24 hours | 1 hour–30 days | How long a downloaded release waits for a quiet moment. | | `updates.health_timeout` | 2 minutes | 1 minute–1 week | How long a new release has to become healthy before it is rolled back. | ```bash catalex settings advanced set updates.app_quiet=10 updates.agent_quiet=30 ``` ### Update components by hand ```bash 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](https://docs.catalex.co/operate.md#start-catalex-at-login) starts a stopped CatalEx again at the next login unless you turn it off. ```bash 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](https://docs.catalex.co/troubleshooting.md#the-app-does-not-start) lists what to do if it keeps appearing. ### With the CLI ```bash 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](https://docs.catalex.co/settings/computers.md). ### With the CLI ```bash 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: ```bash 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](https://docs.catalex.co/channels/overview.md). 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](https://docs.catalex.co/settings/server.md#delete-your-account), where the account deletion can remove CatalEx from this computer too. ```bash 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](https://docs.catalex.co/settings/server.md#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](https://docs.catalex.co/agents/add-an-agent.md#change-or-remove-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. # Troubleshooting Find the screen the app showed, the symptom or the error code CatalEx printed, then apply the fix and run the same operation again. Fix the reported cause before creating another agent or account. The app words most problems in plain language and never shows a code; `catalex` prints the code with its next step. Start with these read-only checks: ```bash catalex status catalex doctor catalex install status catalex account status catalex providers ``` `catalex providers` needs a CatalEx sign-in. Signed out, use `catalex providers discover`. Every `catalex` command prints an error code and its next step; add `--json` for structured fields, and read `catalex COMMAND --help` for your release's flags. ## The app does not start The app repairs CatalEx without asking: it restarts a part that stopped, reinstalls program files that are missing or damaged from its own copy, and moves damaged saved data aside, never deleting it, before starting again at the sign-in. Normally you only see the **Starting CatalEx** screen again for a few seconds. | What you see | Cause | Fix | | --- | --- | --- | | **Starting CatalEx** stays on screen | The app is restarting a part that does not answer. It tries three times, waiting 2, 5 and 10 seconds | Wait for the three attempts. If the screen stays, run `catalex doctor` in a terminal | | **Oops, there was an issue starting CatalEx.** with **Try again** | Three restarts in a row failed | Select **Try again**. If it comes back, run `catalex doctor --fix`; when it reports damaged saved data, `catalex doctor --fix --fresh-start` moves that data aside and starts clean | | **There was an error starting CatalEx.** with **Retry** (during setup, or full window after sign-in) | CatalEx could not start after you signed in; the reason is printed under the title | Select **Retry**. If it fails again, run `catalex doctor` | | **CatalEx is not answering** with **Retry** in a browser tab | The page was opened without the app, and nothing else can start CatalEx | Open the CatalEx app on this computer; it fixes itself. Then select **Retry** | | **CatalEx needs you to sign in** in a browser tab | The page was opened in a browser while signed out | Sign in in the app, or run `catalex login`, then select **I've signed in** | | **Sign-in needs CatalEx running on this computer.** | The sign-in dialog works through CatalEx on this computer, which is not up yet | Wait for the **Starting CatalEx** screen to finish, or run `catalex start` | | macOS refuses to open CatalEx the first time (damaged, or from an unidentified developer) | The app is not notarized | Open **System Settings** > **Privacy & Security** and select **Open Anyway**, or Control-click the app and choose **Open** | ## Installation | Symptom or code | Cause | Fix | | --- | --- | --- | | Installer download fails | The network blocked or interrupted the download | Check the network, retry the [install commands](https://docs.catalex.co/getting-started/install.md#install-with-one-command). Do not use copies of the installer from elsewhere | | Download times out or fails TLS | Network problem | Check the network and retry the same address | | `catalex: command not found` after installing | This shell's `PATH` predates the install | Run `export PATH="$HOME/.local/bin:$PATH"` or open a new terminal; `catalex path status` checks new terminals | | `RELEASE_INSTALLER_UNSUPPORTED` ("release V has an installer this CatalEx cannot run") | The installed `catalex` is too old for that release | Run the step 1 installer again to get a current `catalex`, then retry | | `RELEASE_UNAVAILABLE` | The release list could not be read: no network, or no access | Check the network and run the same command again | | Installer ends with "CatalEx was installed but is not running" | CatalEx did not become ready within 2 minutes | Run `catalex status` and `catalex doctor`, then `catalex start`. To make the installer wait longer, run it again with `CATALEX_START_TIMEOUT` set to a number of seconds | | `RELEASE_SIGNATURE_INVALID` | The release list's signature is missing or wrong, so `install` or `update` refused it and changed nothing | Run the same command again. If it repeats, run the step 1 installer from the address in [Install CatalEx](https://docs.catalex.co/getting-started/install.md#install-with-one-command), not from a copy | | `catalex update auto` prints `waiting` | The release is downloaded, but the computer is not quiet: the app is in use or an agent is working or worked lately (`app_in_use`, `agent_active`, `agent_recent`, `activity_unknown`) | Wait: CatalEx switches by itself. To switch now, run `catalex update auto --now` | | `UPDATE_IN_PROGRESS` from `catalex start`, `restart`, `prepare` or `setup` | An update switch is running and stopped CatalEx on purpose; it starts CatalEx itself when it finishes | Wait a minute and run the command again. `catalex update status` shows whether a switch runs; one that never finishes stops counting after 30 minutes | | A command exits with status `75` | Another CatalEx command holds a lock, such as the settings lock while the app saves a setting | Nothing is wrong. Wait and run it again; the automatic update does this itself | | `catalex service autostart on` fails with `LOGIN_ITEM_FOREIGN` or `LOGIN_ITEM_UNSUPPORTED` | A file CatalEx did not write already sits where its login item goes, or the computer is not macOS or Linux | Move that file away and run the command again. Windows is not supported | | `catalex update auto` prints `rolled_back` | The new release did not become healthy within `updates.health_timeout`, so CatalEx restored the previous release and your saved data. That release is skipped and never tried again | Nothing to do: the next newer release is tried by itself. Run `catalex doctor` if CatalEx is not running | | `catalex update auto` prints `not_applicable` | A development build, an installation Homebrew owns, or an installation CatalEx did not record or that changed since | Update with the package manager that installed it; see [Installation ownership and PATH](https://docs.catalex.co/operate.md#installation-ownership-and-path) | | `catalex open` fails, or no app appears | The app was not installed (`--no-app`, or not an Apple Silicon Mac) | Run `catalex install app`, then `catalex open`. The app is for macOS on Apple silicon | | `catalex: command not found` after installing only the app | The app keeps `catalex` in `~/.local/bin` without adding that folder to `PATH` | Run `~/.local/bin/catalex path add` and open a new terminal, or run the [one-line installer](https://docs.catalex.co/getting-started/install.md#install-with-one-command) | | Update refused while CatalEx runs | `update` does not stop CatalEx on its own | Run `catalex update auto --now`, or `catalex update --restart`; add `--yes` to quit a running app | | `catalex uninstall` or `update` reports `NOT_OWNED` or `PACKAGE_MANAGED` | The app or command was not installed by CatalEx, or Homebrew installed it | Use the package manager that installed it; see [Installation ownership and PATH](https://docs.catalex.co/operate.md#installation-ownership-and-path) | ## Setup and sign-in | Symptom or code | Cause | Fix | | --- | --- | --- | | `SIGN_IN_EXPIRED` | The browser sign-in was not finished within 10 minutes | Run the same `catalex setup` or `catalex login` command again | | `SIGN_IN_CANCELLED`, or the browser shows "Sign-in cancelled" | The Google sign-in was declined or closed | Run the same command again and finish the sign-in | | `GOOGLE_SIGN_IN_FAILED` | Google or the account service ended the sign-in with an error | Run the command again | | `LOCAL_PORT_UNAVAILABLE` | The local port that receives Google's answer could not be opened | Retry. If it repeats, create a one-time code on a signed-in device with `catalex login-codes create`, then run `catalex login --code` here and paste it | | `ACCOUNT_SIGNIN_REQUIRED` ("not signed in to a CatalEx account") | Nobody is signed in, and the command touches agents, chats or channels | Run the step the error names: the `catalex setup` command when CatalEx is not set up on this computer, and `catalex login` when only the sign-in is missing. Commands that install, set up, update, start, stop or check CatalEx, and `catalex open`, run signed out | | `DEVICE_NOT_TRUSTED` (exit status 4) after a first sign-in with `catalex setup` | Your account already has a trusted device, such as the CatalEx app, and this one is not trusted for changes yet | Trust this computer in **Settings** > **Devices**, or run `catalex devices trust CLIENT_ID` on a trusted device, then run the same setup command again | | There is no email and password sign-in | CatalEx signs in with Google only | Use **Log in using Google** in the app or `catalex login` | | App shows **Sign-in didn't finish.** with **Try again** | The browser sign-in or joining this Mac did not complete. Nothing is left signed in | Select **Try again** | | Browser shows "This sign-in link was already used or has expired." | The link was opened twice or too late | Start signing in again from CatalEx | | `SIGNED_IN_ELSEWHERE` ("already signed in to SERVICE") | A sign-in to another service is saved | Run `catalex logout`, then sign in again | | `CLIENT_UPDATE_REQUIRED` (HTTP 426, with the lowest supported release) | CatalEx Cloud, or your own service, no longer accepts this version of `catalex` or the app | CatalEx updates itself. To update now, run `catalex update auto --now`, then run the command again | | `JOIN_CODE_INVALID` | A join code was refused: unknown, mistyped, already used, revoked or expired, or it is a sign-in code. Nothing was created | Create a new code with `catalex computers add` and run `catalex join` with it | | `LOGIN_CODE_INVALID` (exit status 2) | The sign-in code was mistyped or is no longer valid. After too many tries, the service answers `RATE_LIMITED` | Create a new code with `catalex login-codes create` on a trusted device, then run `catalex login --code` | | `CLIENT_NOT_TRUSTED` or `SIGNATURE_REQUIRED` (exit status 4) | This device is not trusted for changes, which the command needs | Run `catalex devices trust-this` on a computer that joined your account, or choose **Trust for changes** on a trusted device; see [Devices](https://docs.catalex.co/settings/computers.md) | | `SIGNIN_TOO_OLD` (exit status 4) | `catalex account move` needs a sign-in made within the last 10 minutes | Run `catalex login --force`, then the move again | | `MOVE_CONFIRMATION_MISMATCH` or `ACCOUNT_DELETE_CONFIRMATION_MISMATCH` (exit status 2) | The email you typed is not the account's. Nothing changed | Run the command again and type the account's email | | `ACCOUNT_DELETE_CONFIRMATION_REQUIRED` (exit status 2) | There is no terminal, so the command could not ask. Nothing was contacted | Add `--yes --confirm-email YOUR_EMAIL` | | `ACCOUNT_HAS_COMPUTERS` | A setup would take this computer to another service or mode while your account has more than one computer or signed-in device. Nothing changed | Move the whole account with `catalex account move --to URL`; see [CatalEx Cloud and account](https://docs.catalex.co/settings/server.md#move-your-account-to-another-service) | | `COMPUTER_ALREADY_JOINED` | This computer already belongs to an account on another service | Leave that account first with `catalex computers leave`, then join again | | `this build has no CatalEx Cloud address; pass --service-url` | An older build without the CatalEx Cloud address | Run `catalex update`, then the setup command again | | Setup reports an occupied port, or `PORT_IN_USE` | Another program uses a CatalEx port | Pass free ports with setup's port flags; see [network settings](https://docs.catalex.co/settings/advanced.md#addresses-and-ports) | | App shows "This build of CatalEx cannot sign in." | The build has no CatalEx Cloud address | Run `catalex update` | | App shows **Welcome back to CatalEx** with **Log in using Google** | You logged out, or CatalEx signed you out | Select **Log in using Google**. Your agents and chats come back | | App shows "You were signed out from another device.", "This computer was removed from your account." or "Your account was deleted.", then "Sign in again to continue." | Another device signed you out, this computer was removed, or the account was deleted | Sign in again with **Log in using Google**, or `catalex login` | | `COMPUTER_REMOVED`, or `catalex status` says "This computer was removed from its CatalEx Cloud account." | Another device removed this computer | Sign in again with `catalex login` | | `This computer: Offline (CODE)` in `catalex status`, or `THIS_COMPUTER_OFFLINE` | The computer cannot reach the service | Check the network, then run `catalex devices trust-this` to reconnect. The app's warning has the same fix; see the next table | | `Trusted for changes: no` | This device signed in but no trusted device has trusted it yet, so it cannot make sensitive changes on your computers | On a computer that joined your account run `catalex devices trust-this`, or choose **Trust for changes** under **Settings** > **Devices** on a trusted device; see [Devices](https://docs.catalex.co/settings/computers.md) | | `ACCOUNT_DELETION_UNCONFIRMED` | The answer to an account deletion was lost | Run the same `catalex account delete` command again | ### This Mac is offline When this Mac joined your account but cannot connect, the app shows a warning on every view and in **Settings** > **Devices**. `catalex status` shows the same state as `This computer: Offline (CODE)`. | The app says | Cause | Fix | | --- | --- | --- | | This Mac can't reach CatalEx Cloud | The network is down (`NETWORK_UNREACHABLE`) | Check your internet connection, then select **Try again** | | CatalEx Cloud is busy right now | The service is busy or restarting (`SERVICE_UNAVAILABLE`) | Select **Try again** in a minute | | This Mac was disconnected from, or deleted from, your CatalEx account | Another device removed it (`COMPUTER_REMOVED`, `COMPUTER_DELETED`) | Select **Rejoin**, or run `catalex devices trust-this` | | Your CatalEx account moved, or CatalEx Cloud no longer accepts this Mac | `ACCOUNT_MOVED`, `COMPUTER_UNAUTHORIZED` | Select **Sign in**, or run `catalex login` | | CatalEx on this Mac is updating | This version is too old to connect (`UPDATE_REQUIRED`) | Wait: CatalEx updates itself, then connects again. Select **Try again** afterwards, or run `catalex update auto --now` | | Another copy of CatalEx took over this Mac's connection | `CONNECTION_REPLACED` | Close CatalEx on the other computer that uses this name, then select **Try again** | | CatalEx Cloud refused the connection, or this Mac couldn't connect | `SERVICE_REFUSED`, `COMPUTER_CONNECTION_FAILED` or another cause | Select **Try again**; `catalex status` prints the code | ## Agents and native chats | Symptom or code | Cause | Fix | | --- | --- | --- | | `PROVIDER_NOT_READY` | Claude Code or Codex is not installed | Install it, then run `catalex providers discover` | | `PROVIDER_NOT_SIGNED_IN`, or "Your AI is not signed in on this computer." | The AI tool is signed out | Run `catalex providers login claude` (or `codex`), then send the message again | | `AGENT_START_CHECK_FAILED`, or "NAME could not be connected to Claude Code" | The AI could not start in the folder; nothing was saved | Fix what the provider reported, in the folder's settings or the provider, then add the agent again | | `AGENT_ID_CONFLICT` or `AGENT_REGISTRATION_UNAVAILABLE` | Adding an agent failed because the service reported three new agent IDs in a row as taken, or did not answer. Nothing was saved | Run the add again; for `AGENT_REGISTRATION_UNAVAILABLE` check the connection first with `catalex status` | | `MODEL_UNSUPPORTED`, `REASONING_EFFORT_UNSUPPORTED` or `CAPABILITY_INVENTORY_UNAVAILABLE` | The AI does not offer the model or effort you named, or its model list could not be read. Nothing was saved | Choose one of the listed valid options, or run `catalex refresh` and save again | | `FOLDER_CONFIG_INVALID` | CatalEx edits the agent folder's Claude Code or Codex settings to make your choice work, and one of those files does not parse. CatalEx never rewrites it | Fix or remove the file the error names, then repeat the change | | `FOLDER_CONFIG_LIMIT_IN_USER_SETTINGS` or `FOLDER_CONFIG_MANAGED_LIMIT` | A limit in your own user settings, or an organization policy, blocks the choice. Nothing was written | Edit your user settings, or choose a setting the policy allows | | `AGENT_FOLDER_MISSING` | The agent's folder no longer exists, so nothing was started | Restore the folder, or choose a new folder for the agent | | `PROJECT_ROOT_CHANGED` | The agent's folder was replaced or moved while a chat was open | The chat starts a new AI session in the folder as it is now. The earlier AI conversation is not continued | | `AGENT_SIGNED_OUT`, `AGENT_USAGE_LIMIT`, `AGENT_PROVIDER_BUSY`, `AGENT_PROVIDER_UNREACHABLE`, `AGENT_CONTEXT_FULL`, `AGENT_MODEL_UNAVAILABLE`, `AGENT_SANDBOX_BLOCKED`, `AGENT_SANDBOX_UNAVAILABLE` or `AGENT_POLICY_REFUSED` | The AI ended the turn and named why: signed out, usage limit used up, busy, unreachable, the chat too long, model unavailable, blocked by the AI's sandbox, a sandbox that cannot start on this computer, or declined under its usage policy | Sign in to the AI with `catalex providers login`, wait and send again (busy, unreachable, usage limit), start a new chat (too long), choose other settings with `catalex agents edit` (model), or install the sandbox tools the AI lists (`AGENT_SANDBOX_UNAVAILABLE`). The agent keeps running | | `PICTURE_TOO_LARGE` or `PICTURE_TYPE_UNSUPPORTED` | `catalex agents picture set` accepts only PNG, JPEG or WebP, up to 1 MiB by default | Use a smaller image of a supported type | | `IMPORT_NO_FREE_FOLDER` | Importing a Marketplace agent found every numbered folder name for it taken | Move or remove the folders with that name and its numbered variants (`agent-2`, `agent-3` and so on), then import again | | `AGENT_TOOLS_NOT_CARRIED` | A provider change would widen the agent's tool access | Review the agent's tools on its **Permissions** tab, or keep the current provider | | `TOOLS_REVIEW_REQUIRED` | The agent's tool selection needs review after a change in its tools or isolation | Review the tools on the agent's **Permissions** tab (changes save on their own), or `catalex agents tools --agent AGENT_ID`, then send the message again. See [Tools and permissions](https://docs.catalex.co/agents/tools-and-permissions.md) | | `AGENT_TURN_REFUSED` | The AI refused the turn with the chosen model or effort | Read the AI's text in the error and run the command it prints to choose other settings | | A chat's session failed and stays stuck | Recovery gave up | Send a new message (it replaces the stuck session), or run `catalex chats replace CHAT_ID`. The chat keeps its history | | `RELAY_STOPPED` | CatalEx is stopped | Run `catalex start` | | `CHAT_NOT_ON_THIS_COMPUTER` (exit status 5) from `chats show` or `chats send` | A chat that `chats list` names is gone from this computer, for example after a reset of its conversations; the archive keeps it | Run `catalex chats archive restore`, then the command again. A chat ID that `chats list` does not name stays `NOT_FOUND` | | `SETUP_AGENT_REQUIRED` (exit status 2) | A WhatsApp Personal number added with `accounts add` has no agent yet | Run `catalex channels add --agent AGENT_ID --type whatsapp_personal --new`, or give the number an agent with `catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true --value agent_id=AGENT_ID` | | `INPUT_QUEUE_FULL` | Too many messages are already waiting | Let the current turn finish, or stop it, then retry. Your draft is kept | | `PROVIDER_IN_USE` | You tried to disconnect a provider an agent still uses | Move those agents to another provider first | | A tool or instruction seems missing | Wrong folder or provider, or the folder's own tool setup | Check the agent's folder and provider, then ask a question that needs that tool. A self-description is not evidence | | A requested chart or file is missing | **Rich formats** or **Share media** is off | Check **Rich formats** under **How it replies** on the **General** tab, and **Share media** on the **Permissions** tab. See [Engagement and writing](https://docs.catalex.co/agents/writing-preferences.md) | | A change saved, but behavior is the same | The change applies at a later point | New-agent defaults do not change existing agents. A model or effort change applies to new chats; a provider change starts a new chat on the next message | ## Messaging | Symptom or code | Cause | Fix | | --- | --- | --- | | Account connected, but no reply arrives | Something on the path is broken | Work through the checklist below | | `CALLBACK_UNREACHABLE` | The provider's webhook points at a deleted or unreachable installation | Connect the account again; for WhatsApp each connect moves the webhook to this installation | | `CREDENTIAL_REJECTED` | The provider refused the token or key | Check the credential and its permissions for the same provider installation, then replace it with `catalex credentials set ACCOUNT_ID`; see [Replace or check credentials](https://docs.catalex.co/operate.md#replace-or-check-credentials) | | `catalex accounts health` says "Files from agents are not delivered on this account." | The Google Chat app has no OAuth client | Add one with **Turn on file uploads…** or `catalex credentials set ACCOUNT_ID --key-file CLIENT.json`; see [Google Chat](https://docs.catalex.co/channels/google-chat.md) | | Access is refused, or messages are throttled | Access rules or limits | Run `catalex accounts access show ACCOUNT_ID`, `catalex accounts limits show ACCOUNT_ID` and `catalex agents limits show AGENT_ID`. An empty allowlist admits everyone. See [Access and limits](https://docs.catalex.co/settings/access-and-limits.md) | | A reply's **View conversation** link shows *This conversation isn't available* | The page opens only for the owner. The link is malformed or unknown, the Google account is not the agent's owner, or **Viewable on web** is off for the agent | Sign in with the Google account of your CatalEx account, or turn **Viewable on web** on in the agent's **Settings** or with `catalex agents edit AGENT_ID --web-view on` | | A decision made while the agent was offline did not arrive | A permission or answer sent to an offline agent is recorded but not kept to send later | It reaches the agent only if the agent reconnects before the request expires; otherwise ask the agent again. `/status` shows the state | When messaging is connected but silent, check in order: 1. Is CatalEx connected? `catalex status` shows the link to CatalEx Cloud. 2. Is the right bot, number or app connected to the intended agent? 3. Do the account's access rules admit the sender? 4. Does the agent answer in a native chat? 5. Does the incoming conversation appear under the agent's channel? 6. Does the reply arrive in the original messaging app? For WhatsApp, also check Meta's recipient verification, permissions and sender registration; see [WhatsApp](https://docs.catalex.co/channels/whatsapp.md). ## Read what CatalEx holds To see what CatalEx saved while you look for a cause, these read-only commands print one page at a time. They need a sign-in. ```bash catalex debug agents catalex debug projects catalex debug sessions catalex debug sessions inspect SESSION_ID ``` **Expected result:** the saved agents, folders or sessions, or one session in detail. `catalex debug sessions events SESSION_ID` prints a session's retained events, and `catalex debug operations inspect OPERATION_ID` prints one operation. Add `--json` for structured output, and remove tokens and message content before you share any of it. ## A command's outcome is uncertain A request may have reached its destination before the reply was lost. Inspect the original command or operation before retrying, because a new ID can repeat the work: - Native message: `catalex chats send CHAT_ID --retry COMMAND_ID --wait`. - Credentials: `catalex credentials operation ACCOUNT_ID OPERATION_ID`. - Account move or deletion: run the same command again; it finishes the original. ## Report a problem Include the release version (`catalex version`, and `catalex app status` for the app), the operating system, the command or screen, the exact error code, and whether the same agent works in a native chat. Say whether the message reached the messaging app, CatalEx's conversation history, or neither. Remove access tokens, app secrets, private folder paths, personal phone numbers and any message content not needed to reproduce the issue. Send the details to [support@catalex.co](mailto:support@catalex.co). # Privacy Policy **Effective date: October 24, 2026** This policy describes CatalEx’s current app, command-line client, messaging features and documentation website. It replaces the description of the retired workplace-search product. Questions and privacy requests: [privacy@catalex.co](mailto:privacy@catalex.co). ## What is processed and why | Data | Purpose | Where it is handled | | --- | --- | --- | | Agent names, folder paths, provider/model choices, instructions and permissions | Register and run the intended agent | Agent computer; relevant configuration/context reaches its AI tool | | Messages, replies, questions, approvals, reactions and session identifiers | Carry and resume conversations | Agent computer; connected messaging service and selected messaging provider when used | | Files, images, audio and derived transcripts/previews | Deliver attachments and make content usable by the agent | Participating computer/service and providers required for that feature | | Phone numbers, Slack identities and Google Chat identities | Route messages, enforce access and identify the person | Messaging service and the selected messaging provider | | Tokens, app secrets and service-account keys | Authenticate connections and verify callbacks | The computer/service responsible for that connection | | Account and pairing information, such as email, linked identity and connection IDs | Sign-in, associate computers and authorize managed features | The connected account service | | Status, errors, timestamps, settings activity and resource/token measurements | Operate, diagnose and control workload | Participating computer/service; information you choose to share with support | An agent can read or change files and external systems that its native tools permit. Its folder is a working context, not by itself an operating-system security sandbox. Choose permissions and admitted people for the data you intend it to handle. ## Your setup determines the data path With native chats on your computer, CatalEx stores conversation and configuration data there. Your AI tool can still send prompts, tool results and file content to its model provider. “On this computer” does not mean AI inference is offline. Connecting WhatsApp, Slack or Google Chat adds the messaging provider and the messaging service to the data path. CatalEx Cloud and CatalEx-managed pairing involve the connected CatalEx service. Administrators operating that service may be able to access the messages, credentials and operational records it stores. Earlier native AI conversations can be imported or synced to a connected server where that feature is supported. Review the Cloud page’s sync state and your service operator’s policy before connecting sensitive history. Disconnecting a service does not by itself erase copies already stored there. ## AI providers and third parties Your selected AI tool’s account, plan and data controls determine its retention and model-training practices. CatalEx does not promise zero retention or no training by every third party. Review [Anthropic’s data-use explanation](https://privacy.claude.com/en/articles/10023580-is-my-data-used-for-model-training) and your provider’s applicable terms and settings before sending sensitive information. Messaging platforms, tunnel/hosting operators and tools you connect process information under their own terms. They may process it in other countries. Your service operator is responsible for its hosting, subprocessors, transfer arrangements and any organization-specific agreement. Do not assume a particular region, encryption-at-rest scheme or regulatory certification from the installation choice alone. CatalEx uses information processed by its services to provide messaging and account functions, maintain security, diagnose failures, respond to support and meet legal obligations. We do not sell your personal information or use conversation content for advertising. We may disclose information when legally required or necessary to protect people and the service. ## Credentials and security Supply secrets through private app fields, private files or supported standard input. Do not send them in an ordinary chat. CatalEx’s management interfaces authenticate requests, and provider credentials are used for the connection that needs them. Protect the computer, server, backups and native provider account; use HTTPS for remote services and keep management endpoints private. No system guarantees absolute security. Revoke credentials at the issuing provider if compromised, replace the saved credentials and contact [support@catalex.co](mailto:support@catalex.co). A disconnected account is not the same as a revoked provider token. ## Retention and deletion Local conversations and settings remain in saved state across ordinary restarts, agent/channel removal and uninstall. Attachments have separate availability, retention and storage limits. [Capacity and storage settings](https://docs.catalex.co/settings/advanced.md) explains how to inspect them. An expired attachment does not imply its conversation text was deleted. `catalex uninstall` keeps saved data. `catalex uninstall --purge` removes the installation’s owned local data according to its supported cleanup behavior; unrelated files and independently retained provider/tool data are outside that operation. See [removal](https://docs.catalex.co/operate.md#remove-catalex). Backups and recipients’ downloaded files can retain copies. Removing a local messaging account reference leaves its server installation and history intact. For information held by a CatalEx-operated service, contact [privacy@catalex.co](mailto:privacy@catalex.co) to request access, correction, deletion, restriction or a copy, as applicable. We may verify your identity and retain information required for legal, security or dispute purposes. For a service someone else operates, contact its administrator as well. We cannot delete data held independently by your AI provider, messaging provider or other recipients on their behalf. ## Website and app storage The documentation website uses browser storage for preferences such as theme. Its hosting and font delivery providers receive ordinary network requests, including IP address and browser information. The app and connected services use local storage and session/account state to keep connections and preferences working. Do not share browser profiles or control tokens with people who should not manage the setup. ## Your choices and rights You can choose native chats, disconnect messaging, narrow access lists, restrict tools, revoke credentials and remove local data. These choices have different scopes; use the linked guides before assuming one action deletes every copy. Applicable law may provide additional access, correction, objection, portability or complaint rights. Contact us for requests about data we hold, or your local data-protection authority for a complaint. CatalEx is intended for people aged 16 or older. Do not knowingly supply children’s personal information without the required authority and protections. ## Policy changes We will publish material changes with an updated effective date and provide additional notice where required by law. Your organization’s signed agreement may set additional obligations for a CatalEx-operated service. # Terms of Service **Effective date: October 24, 2026** These terms govern your use of CatalEx software and services. By using them, you agree to these terms. If you act for an organization, you must have authority to do so. You must be at least 16 years old. Questions: [support@catalex.co](mailto:support@catalex.co). ## What CatalEx provides CatalEx connects existing AI agents to native chats and supported messaging apps. It can run on your computer, connect to a server your organization operates, or use CatalEx-operated features where available. Features depend on the installed software, provider capabilities and connected service. Native chats do not require a CatalEx account; account-dependent features require the offered sign-in or pairing flow. CatalEx does not guarantee that an AI agent will complete a task, that a provider will accept an action, or that every message will arrive. Computer availability, network access, provider approval, credentials and limits affect operation. Check results and delivery before relying on them. ## Your responsibilities You are responsible for the computer and servers you operate, credentials you supply, people you admit and permissions you give agents. Only connect tools, folders and messaging accounts you are authorized to use. Obtain required permissions and provide notices before processing other people’s information. AI agents can make mistakes and take consequential actions through permitted tools. Review permissions and approvals, verify important outputs and retain appropriate human oversight. Stopping a turn does not reverse actions already completed. Do not rely on CatalEx as an emergency service or a substitute for qualified professional advice. ## Acceptable use Do not use CatalEx to break the law, violate third-party rights, send abusive or unlawful content, obtain unauthorized access, steal credentials, bypass security controls or disrupt a service. Do not evade usage or rate limits or misrepresent another person’s identity or authorization. Using AI agents and supported automation to install, configure and operate CatalEx is permitted. Automation must respect the same authentication, permissions and third-party terms as a person. We may suspend access to CatalEx-operated services for abuse, security risks or legal requirements. ## Accounts and connected services Keep account and connector credentials private, use accurate registration information and promptly report suspected compromise. Administrators may control access and data on the services they operate. Revoking access, removing a local account and deleting server data are separate operations. Codex, Claude Code, Slack, WhatsApp, Google Chat, hosting/tunnel services and tools you connect have independent terms, costs and privacy practices. You are responsible for the accounts and charges you authorize with them. CatalEx does not control their availability, approval decisions or model output. ## Your data You retain your rights in the content you provide. You grant CatalEx the limited permission needed to transmit, process, store and display it to provide the features you use, maintain security and meet legal obligations. You must have the right to supply that content and authorize its processing by the providers you select. Our [Privacy Policy](https://docs.catalex.co/privacy-policy.md) describes current data paths and choices. Your AI provider’s training and retention practices depend on its terms and your account settings. These terms make no blanket promise of third-party zero retention or no training. Ordinary uninstall, agent removal and channel removal preserve saved history. Purge operations have a defined local scope and cannot retract delivered copies or erase independently held provider data. Review [everyday operation](https://docs.catalex.co/operate.md) before deletion and maintain any backups you need. ## Software and intellectual property CatalEx retains rights in its software, branding and documentation, subject to any applicable separate license. Third-party components remain governed by their licenses. You may use the software and documentation for their intended purposes under these terms and any supplied license. Feedback you submit may be used to improve CatalEx without an obligation to compensate you; this does not transfer ownership of your private content. ## Fees Any paid CatalEx service must disclose its price and applicable payment terms when you subscribe or purchase. These docs do not create a paid subscription or promise a retired product’s plan limits. Third-party AI, messaging, hosting and network charges are separate. A signed commercial agreement governs where it specifies different terms. ## Availability and liability To the extent permitted by applicable law, CatalEx is provided “as is” and “as available,” without warranties of uninterrupted operation, fitness for a particular purpose or accurate AI output. We may update or discontinue features and will provide notice where required. To the extent permitted by applicable law, CatalEx is not liable for indirect or consequential loss, lost profits or lost data arising from use of the software or services. Aggregate liability is limited to the amount paid to CatalEx for the relevant service in the 12 months before the claim. Nothing excludes liability or statutory consumer rights that cannot lawfully be excluded or limited. ## Ending use and resolving problems You may stop using and uninstall CatalEx at any time. Contact support to close an account or end a CatalEx-operated service; contact privacy support for data requests. An organization’s separate contract may specify termination and retention terms. Obligations concerning data rights, intellectual property and liability continue where their nature requires it. Contact [support@catalex.co](mailto:support@catalex.co) first about a dispute so we can try to resolve it. Applicable mandatory law and any signed agreement determine rights and forum; these terms do not remove rights you cannot waive. ## Changes and contact We will publish material changes with an updated effective date and provide additional notice where required. Stop using the affected service if you do not accept revised terms. If a provision is unenforceable, the remaining terms continue to apply. Support: [support@catalex.co](mailto:support@catalex.co). Privacy: [privacy@catalex.co](mailto:privacy@catalex.co).