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.
- Setup and onboarding need no asking: the person asked for them. Use
--preset cloudunless 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.- 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-launchto the installer and tocatalex setup. Then runcatalex openonce, 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.- 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 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:
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: <the folder each assistant runs in, e.g. doctor-assistant/doctor-agent>.
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
catalexcommands. 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
catalexonly as a private file path (mode0600) 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 --helpare everything you need.
The command reference is the CLI reference; fetch it as raw Markdown at https://docs.catalex.co/reference/cli.md.
1. Is CatalEx already running?
command -v catalex && catalex status --json
catalexis present andstatusshowsnative_chat(browseron an older CatalEx) andagentasready: 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. The setup is CatalEx Cloud:
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 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 --applychooses 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, steps 2 to 7. Its core is one command, which checks the folder, repairs only the folder's own files and saves the agent:
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), 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. 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:
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), 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).
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 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, so a later session in that folder needs no skill and no copy of this page (what onboarding leaves).
Updating or removing
- Update CatalEx:
catalex update --check, thencatalex update --restart. - Remove one agent from CatalEx:
catalex agents delete AGENT_IDand, if you want to restore the folder, delete the marked CatalEx block from its instructions (Remove (offboard) an agent). - Remove CatalEx:
catalex uninstallkeeps chats and settings; use--purgeonly when the person explicitly asks to delete their data.