Skip to main content

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.12 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. To use the app instead, see the CatalEx app.

Options every command accepts​

OptionMeaning
--jsonPrint 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 NAMEUse a saved connection (name or ID) for this one command. See CatalEx Cloud and account.
--computer NAMERun an agents or chats command on another computer of your account, by name or ID.
--confirm-signingConfirm 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.

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
  • 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​

CommandWhat it doesSign-inLearn more
catalex loginSign 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.NoSign in
catalex logoutSign out on this computer. CatalEx keeps running; --stop-agents also makes this computer leave the account.NoCatalEx Cloud and account
catalex account statusShow whether you are signed in.NoCatalEx Cloud and account
catalex account tokenPrint a short-lived access token for your account.YesCatalEx Cloud and account
catalex account move --to URLMove your account to another messaging service.YesCatalEx Cloud and account
catalex account deleteDelete your account and its chat history. --impact only shows what would be erased.NoCatalEx Cloud and account
catalex login-codes createCreate a one-time code that signs in another device as you.YesDevices

Computers and devices​

A computer runs your agents. A device is anything signed in to your account.

CommandWhat it doesSign-inLearn more
catalex computers listList your account's computers with their activity and last connection.YesDevices
catalex computers addCreate a one-time code that joins another computer to your account.YesDevices
catalex joinJoin this computer to your account with a one-time code.NoDevices
catalex computers thisShow this computer's key and the device keys it trusts.YesDevices
catalex computers rename ID NAMERename a computer.YesDevices
catalex computers leaveStop serving agents from this computer; your sign-in stays.YesDevices
catalex computers disconnect IDDisconnect a computer from the account; it stops its agents at once.YesDevices
catalex computers keep IDKeep a stale computer so it can connect again.YesDevices
catalex computers delete IDDelete a disconnected computer and erase its agents and data.YesDevices
catalex computers settings [remote-chat-links on|off]Show this computer's settings, or decide whether your other devices may open its chats.YesDevices
catalex devices listList the devices signed in to your account.YesDevices
catalex devices trust IDTrust another device for changes on your computers.YesDevices
catalex devices trust-newTrust the devices that signed in with your sign-in codes.YesDevices
catalex devices trust-thisTrust this device through the CatalEx running on this computer.YesDevices
catalex devices remove IDSign another device out of your account.YesDevices

Agents​

CommandWhat it doesSign-inLearn more
catalex agents listList saved agents, then your account's agents on other computers.YesAdd an agent
catalex agents discoverList folders where Claude Code or Codex ran lately.YesAdd an agent
catalex agents addAdd an agent with its folder and AI settings.YesAdd an agent
catalex agents onboardCheck an existing agent folder, repair it for CatalEx and register it.YesAdd an agent
catalex agents edit IDRename an agent or change its AI, model and effort.YesAI providers, models and effort
catalex agents delete AGENT_IDDelete a saved agent and everything CatalEx keeps for it.YesAdd an agent
catalex agents picture set AGENT_ID FILESet an agent's picture. picture show and picture remove read and clear it.YesAdd an agent
catalex agents toolsInspect, discover or save an agent's tools and permissions.YesTools and permissions
catalex agents behaviorShow or change saved engagement and writing preferences.YesEngagement and writing
catalex agents limits show|set AGENT_IDShow or change an agent's rate limits across all its accounts.YesAccess, approvals and limits
catalex agents activity AGENT_IDList settings changes made to an agent.YesActivity, history and usage
catalex agents syncShow whether earlier conversations are synced to the server.YesCatalEx Cloud and account
catalex projects list|add|editManage the folders native chats work in.YesFolders, instructions and tools
catalex delegations list|send|status AGENT_IDSend a message to another agent on an agent's behalf, and read what it sent.YesMessages between agents
catalex messages sendSend a message to one of an agent's people now.YesMessages the agent starts
catalex messages status SEND_IDShow the outcome of a message an agent sent.YesMessages the agent starts

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.

Marketplace​

Every marketplace command needs a sign-in. CatalEx does not verify the repositories the Marketplace lists; check the code on GitHub before importing.

CommandWhat it doesLearn more
catalex marketplace listList the Marketplace's agents and whether this computer has them.Marketplace
catalex marketplace import LISTINGImport a Marketplace agent onto the selected computer.Marketplace
catalex marketplace update LISTINGUpdate an imported agent to the offered commit.Marketplace
catalex marketplace add GITHUB_URLAdd a public GitHub repository to the Marketplace, then import it.Setup file
catalex marketplace issues LISTINGShow the setup file issues CatalEx found in your repository.Setup file
catalex marketplace remove LISTINGRemove one of your repositories from the Marketplace.Marketplace

Channels and messaging apps​

A channel connects an agent to a place people write to it. These commands need a sign-in.

CommandWhat it doesLearn more
catalex channels listList channels with their readiness.Messaging channels
catalex channels addAdd a native chat, Slack, WhatsApp, Google Chat, WhatsApp Personal (experimental) or share-link channel to an agent.Messaging channels
catalex channels remove IDRemove a channel. Its conversations are kept, except on a linked phone number.Messaging channels
catalex channels behaviorShow or change a channel's engagement frequency.Engagement and writing
catalex accounts listList accounts with their kind, state, agent and rules.Messaging channels
catalex accounts addAdd a messaging app agent or admin account.Messaging channels
catalex accounts remove IDRemove a saved account.Messaging channels
catalex accounts health [ACCOUNT_ID]Show each account's health and how to fix it.Troubleshooting
catalex accounts clear-setupsRemove every account whose setup was started and not finished.Troubleshooting
catalex destinations setup ACCOUNT_IDSet up or resume a messaging app's first installation for an account.Connect Slack, Connect WhatsApp, Connect Google Chat
catalex credentials status|set|check|bind|unbind|installations|operation ACCOUNT_IDEnter, replace, check or remove a messaging account's credentials.Connect channels with an AI agent
catalex accounts admins list|add|remove ACCOUNT_IDShow or change who may use an admin account.Administrator messaging
catalex accounts access show|set ACCOUNT_IDShow or change who may message an account (allowlist or blocklist).Access, approvals and limits
catalex accounts limits show|set|throttled ACCOUNT_IDShow or change an account's rate limits, and list throttled messages.Access, approvals and limits
catalex channel-settings show|set|discard ACCOUNT_IDShow or change who may act and what an account's conversations post.Access, approvals and limits
catalex accounts entries show|add|move|remove ACCOUNT_IDShow or change the entries (numbers and groups) each agent answers on a shared account, such as a linked number several agents share.WhatsApp Personal
catalex accounts candidates ACCOUNT_IDList the people and groups that can reach an account.WhatsApp Personal
catalex accounts agents engagement|settings|switches|removeShow or set one agent's engagement depth, own settings, chat commands and system messages on a shared account, or remove it.Engagement and writing, Access, approvals and limits
catalex accounts manager recreate ACCOUNT_IDCreate a number's CatalEx Manager group again.WhatsApp Personal
catalex accounts remove-link ACCOUNT_IDRemove a shared number that no agent uses.WhatsApp Personal
catalex accounts routes show|removeList or remove the channels of agents whose computer is offline or removed.Messaging channels
catalex accounts template show|set|clear ACCOUNT_IDShow or change the template an account uses to start conversations.Messages the agent starts
catalex accounts chats list|show|requests|answer|approve|deleteList an account's chats, read one, and answer or approve what its agent is waiting on.Files, charts and decisions

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.

CommandWhat it doesLearn more
catalex chats listList native chats with their live activity.Native chats
catalex chats createCreate a native chat in an agent's native chat channel.Native chats
catalex chats send IDSend a message to a native chat.Native chats
catalex chats show IDShow a chat's state, settings and session.Native chats
catalex chats history IDRead bounded pages of a chat's history.Native chats
catalex chats watch IDStream a chat's events for a bounded time.Native chats
catalex chats activity [ID]Read a chat's full activity: tool calls, thoughts and results.Native chats
catalex chats cancel IDStop the chat's current turn.Native chats
catalex chats answer IDAnswer an agent's question or AI provider form.Files, charts and decisions
catalex chats approve IDGrant or deny an AI provider permission request.Files, charts and decisions
catalex chats react IDAdd, replace or remove your reaction to a message.Native chats
catalex chats attachments upload|download|show|revokeUpload, download, inspect or revoke a chat's files; show includes the transcript of a voice message or video.Files, charts and decisions
catalex chats importImport a known Codex or Claude Code session as a native chat.Native chats
catalex chats resume IDResume a chat's original AI session.Native chats
catalex chats replace IDStart a new AI session for a chat whose session failed.Native chats
catalex chats retry IDRetry creating a chat that failed to start.Native chats
catalex chats remove IDRemove a saved chat. Its saved history is kept.Native chats
catalex chats archive list|restoreList archived chats, or restore the ones missing on this computer.Native chats
catalex chats settings show IDShow the model settings a chat started with.Native chats
catalex chats usage IDShow a chat's turns, tokens, cache use and cost.Activity, history and usage

Activity, usage and history​

CommandWhat it doesSign-inLearn more
catalex analyticsShow every conversation and its distribution.YesActivity, history and usage
catalex analytics summaryShow message activity and cost: totals, each day, and who and where.YesActivity, history and usage
catalex usageShow CPU, memory, disk and token usage per chat and service.YesActivity, history and usage
catalex transcript SESSION_IDShow a Slack or WhatsApp conversation's read-only snapshot.YesActivity, history and usage
catalex hosting agentsList the agents your messaging service holds, with channel and session counts.YesActivity, history and usage
catalex hosting sessions SERVICE_ID PROJECT_ID AGENT_IDList one agent's Slack and WhatsApp conversations on the messaging service.YesActivity, history and usage

AI providers and settings​

CommandWhat it doesSign-inLearn more
catalex providersShow every AI provider, its version, state and whether it is connected.YesAI providers, models and effort
catalex providers discoverDetect every AI provider again and list it.NoAI providers, models and effort
catalex providers login PROVIDERSign in to Codex or Claude Code with its own sign-in on this computer.NoAI providers, models and effort
catalex providers connect PROVIDERUse an installed, signed-in provider (codex or claude) in this setup.NoAI providers, models and effort
catalex providers disconnect PROVIDERStop using a provider in this setup.NoAI providers, models and effort
catalex refreshRe-verify installed agents and their model inventory.YesAI providers, models and effort
catalex defaults show|setShow or set the AI settings new agents start with.YesAI providers, models and effort
catalex connections list|add|edit|remove|use|rescanManage saved connections to computers and messaging services.YesCatalEx Cloud and account
catalex connections hosting show|on|off|setShow or change the selected computer's cloud hosting.YesCatalEx Cloud and account
catalex local-setup on|offTurn the complete setup on this computer (agents, native chats and a messaging service) on or off.YesCatalEx Cloud and account
catalex settingsShow the Developer settings catalog with defaults and ranges.YesRuntime settings catalog
catalex settings set KEY=VALUE...Change settings; null restores a default.YesRuntime settings catalog
catalex settings advancedShow the Advanced settings in people's units.YesCapacity, storage and network
catalex settings advanced set KEY=VALUE...Change Advanced settings; unnamed values are kept.YesCapacity, storage and network
catalex settings endpoints show|set|operation|recoverInspect or safely move this computer's control listener.YesCapacity, storage and network
catalex settings endpoints deployments show|set|operation|recoverInspect or move one deployment listener.YesCapacity, storage and network

Service lifecycle, install and update​

CommandWhat it doesSign-inLearn more
catalex setupSet up CatalEx: CatalEx Cloud, everything on this computer, or a CatalEx service URL.NoInstall CatalEx
catalex install [COMPONENT...]Install CatalEx from a verified release.NoInstall CatalEx
catalex update [COMPONENT...]Update installed components to the newest release. --check only reports.NoUpdates and everyday operation
catalex install statusShow the installed components, their release and integrity.NoUpdates and everyday operation
catalex uninstall [COMPONENT...]Remove installed components; saved data is kept unless --purge is given.NoUpdates and everyday operation
catalex path add|remove|statusPut the commands' folder on your login shell's PATH, take it off, or check it.NoTroubleshooting
catalex prepareMake sure CatalEx's management service is ready on this computer.NoUpdates and everyday operation
catalex startStart CatalEx on the selected computer.NoUpdates and everyday operation
catalex stopStop CatalEx on the selected computer.NoUpdates and everyday operation
catalex restartRestart CatalEx on the selected computer.NoUpdates and everyday operation
catalex statusShow CatalEx's setup, operation and component states.NoUpdates and everyday operation
catalex status metricsShow how many calls CatalEx makes and receives.NoRuntime settings catalog
catalex doctorCheck that CatalEx is ready; exits 1 when a part is not ready.NoTroubleshooting
catalex versionShow the installed client version.NoUpdates and everyday operation

The CatalEx app​

CommandWhat it doesSign-inLearn more
catalex openLaunch or focus the app. --section shows agents, settings, settings/providers or settings/channels; --conversation REF opens a conversation.YesThe CatalEx app
catalex app openThe same as catalex open, under app.YesThe CatalEx app
catalex app statusShow whether the app runs, its version and whether it opens at login.YesThe CatalEx app
catalex app quitQuit the app; agents and chats keep running.YesThe CatalEx app
catalex app login on|offTurn opening the app when you log in to this computer on or off.YesThe CatalEx app

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 and catalex doctor.