CLI Reference

Every bxAgents verb and its flags.

On this page

CLI Reference

Usage: bxAgents <command> [options]

(or boxlang module:bxAgents <command> [options] - see Installation.)

Global flags

These are handled before verb dispatch and never reach a verb.

FlagEffect
-h, --help, helpShow the task-grouped command overview and exit 0. Use bxAgents serve --help or bxAgents help serve for focused usage, options, defaults, and examples. Help is accepted in any position and never runs the command, including clean --help. The overview is also printed (exit 1) if no command is given.
-v, --versionPrint bxAgents v{version} and exit 0. Only meaningful as the very first token, so it never collides with package --version=1.0.0.
--no-colorDisable help's color and bold styling.
--no-bannerHide the overview's logo. Focused command help never shows the logo.

Help groups commands by task instead of presenting one alphabetical wall of text. At an interactive terminal, headings use bold brand cyan, commands and flags use bold, and supporting text is muted. Descriptions wrap with hanging indents to fit COLUMNS (80 columns when unset). Pipes, NO_COLOR, and TERM=dumb receive plain text without ANSI escapes.

Quoting flag values

BoxLang 1.19.0's boxlang launcher script splits every argument at spaces, so --description="Daily standup" arrives as --description=Daily (--description "a b c" and "--description=a b c" too). Single quotes, backslashes and %20 do not help either: there is no way to type a value with a space through the bxAgents command until this is fixed upstream. A message that is split this way is not rejected, it is mis-read: bxAgents invoke --message="Where is order 48213, and can I still return it?" fails with No build found at [.../is/.build], because is was taken as the project folder.

Two ways round it:

  • Start the module through Java, which keeps the quoting. Define this once in your shell, and every example on these pages that quotes a value with spaces works as typed (replace the path with the BoxLang runtime jar, boxlang-<version>.jar, in the lib folder of your BoxLang install):

    bxAgents() { java -cp /path/to/boxlang-1.19.0.jar ortus.boxlang.runtime.BoxRunner module:bxagents "$@"; }
    

    Or run it in one line: java -cp /path/to/boxlang-1.19.0.jar ortus.boxlang.runtime.BoxRunner module:bxagents new my-agent --description="a b c".

  • Write the value without spaces (--description=Daily-standup) and fill the text in the generated file afterwards.

The banner

At an interactive terminal, bxAgents --help and the end of the new wizard greet you with the BxAgents name in block letters, painted left to right in the Ortus brand gradient, cyan (#00DBFF) to green (#00FF78), matching BxRig. It is never written to a pipe or a file. Alternative themes remain available: Ocean, Fire, Sunset, Purple, Mint, Gray, Forest and Gold.

SettingEffect
NO_COLOR, --no-colorSame shape, no color
TERM=dumb, output that is not UTF-8, or a terminal narrower than the art (75 columns)One plain line instead
--no-banner, or BXAGENTS_BANNER=offNo banner
BXAGENTS_BANNER_THEME=OceanSelect an alternative theme; unset or Brand uses the brand gradient

Every verb accepts

--projectRoot=<path> (or a bare positional path as the first non-flag argument) to target a project other than the current directory. Precedence: --projectRoot flag > first positional argument > current working directory.

Argument syntax

Follows BoxLang's own documented CLI conventions:

FormResult
--optiontrue
--option=value / --option="quoted value"value (surrounding quotes stripped)
-o=valueshort form with a value
-oshort form, true
-abccombined shorthand: a, b, c all true
--!option / --no-optionnegation, false
anything elsea positional (the first becomes the project-root fallback)

Repeated options: last one wins.

Note the first row: a bare --option is a boolean, not a way to pass the next token as its value. A flag that requires a value (--model, --message, --password, --environment, --port, ...) is therefore rejected with an error when written bare, rather than silently becoming true:

$ bxAgents new my-agent --model openai/gpt-5
Error: --model requires a value - write it as `--model=<value>`.

Always use the --flag=value form. The space-separated form is not supported.

Tab completion

completions/ holds ready-made completion scripts for bash, fish and PowerShell. See Installation for the one-line setup of each.

Verbs

An example below that quotes a value with spaces (--description="...", --message="...", --when="...") needs the Java form from Quoting flag values when it is run through the bxAgents launcher.

new

Scaffold a new agent project.

add

Add a tool, interceptor, schedule, MCP server, gateway, subagent, skill, extension and more to an existing project.

skills

Find, install, update and remove skills from skills.boxlang.io.

build

Run the full build pipeline.

test

Run your project's own tests/specs via TestBox.

serve

Launch a real boxlang-miniserver process.

chat

Interactive REPL against the built agent.

invoke

One non-interactive turn - for scripting/CI.

package

Package a built project into a .bxa.

deploy

Ship to a real deployment target.

hash-password

Hash a plaintext password for a webui users entry.

token

Issue, list and revoke access tokens for a deployed agent.

embed

Put the agent on another website, for anonymous visitors.

users

List the web page's accounts and choose who is an admin.

notes

Read and manage the notes an agent keeps.

models

List the models a project can talk to and test that they answer.

sessions

List, rename, fork, delete, export and import the conversations in the chat database.

stats

What the model calls used: tokens by model, provider, day or user, once the project turns usage on.

vault

The secrets the agent uses, sealed in the chat database: list, add, edit, remove, status, audit.

connect

Sign in to the MCP servers that ask each person to sign in.

connectors

The catalog of known connectors that ships with BX Agents: list them, show one, check the files.

routines

The scheduled routines: list, add, edit, pause, run, reports and clean-up.

data

Where the agent keeps everything, how big each part is, and the volumes it may use.

logs

List the agent's logs and show the last lines of one.

backup

Zip the chat database, files and skills in the data home.

restore

Put a backup back; what was there is kept as before-restore.

inspect

Report how the agent is composed, from its source.

extensions

List the extensions the chat loads, and install, update, remove or link more.

clean

Remove a project's .build/ and dist/ output.

doctor

Diagnose the runtime and project before build/serve surprise you.

new

Create a new agent project one of three mutually exclusive ways: scaffold it (answering questions at a terminal, or with flags), clone a GitHub repo, or install a ForgeBox package.

# At a terminal: answer questions (see the new wizard guide)
bxAgents new my-agent

# Scaffold from flags (default template: minimal)
bxAgents new my-agent --model=openai/gpt-5 [--template=minimal|webui-chat|slack-bot|telegram-bot|github-bot|mcp-server|scheduled|multi-agent] [--name=...] [--description=...] [--class] [--skipInstall]

# The same, adding what the wizard would have offered
bxAgents new my-agent --model=claude --with=time,search --search=brave --mcp=github --channels=web,telegram --guard=flag

# Clone an existing GitHub repo
bxAgents new my-agent --repo=owner/repo-name

# Install a ForgeBox package
bxAgents new my-agent --forgebox=some-package-slug
  • With no --model, no --repo and no --forgebox, at a terminal, new runs the wizard. --no-wizard or --yes turns it off, --wizard turns it on even with a --model, and --no-tui asks the same questions as numbered lines. A --model on its own never starts it, since scripts have always had to pass one. The wizard's flags (--with, --search, --files, --files-dir, --temperature, --max-tokens, --timeout, --memory, --mcp, --connectors, --channels, --web-auth, --guard, --prompt, --widgets, --widgets-bottom, --deploy and the deploy details) are listed in the wizard guide; a bad value names the flag and what it accepts. They need Agent.yml, so they cannot be combined with --class.
  • --template, --repo, and --forgebox name three different project SOURCES - exactly one applies. Combining any two of them is an error.
  • --template mode (the default when no source flag is passed at all - minimal):
    • --model is required when no questions are asked - a provider/model slug (see the model slug).
    • --name defaults to the target directory's own basename.
    • Refuses to run if the target already contains an Agent.yml or an Agent.bx.
    • Creates Agent.yml, instructions.md, a root Application.bx (extends the class every build generates; never overwritten), every convention folder (empty), a root box.json (testbox as a development dependency, installed into lib/testbox), a ready-to-run tests/ folder (tests/specs/AgentSpec.bx), a .env (commented API key stubs only; it deliberately does not set BOXLANG_HOME), a .gitignore (.env and .env.*, .build/, dist/, data/chat.db* (a leftover: the chat database lives in the data home, outside the project), lib/, boxlang_modules/, .agents/skills/, editor files), and the standard dotfiles .editorconfig, .gitattributes, .bxlint.json, .markdownlint.json and a .boxlang.json listing every bx-ai setting at its default (the BoxLang runtime reads it when run from the project root; edit the values there). Never overwrites a file that already exists. BoxLang and boxlang-miniserver load a .env from the project root themselves, so the file also works for your API keys; BxAgents never reads, copies or packages it.
    • --class (a bare boolean flag, like the others described above) writes the class-based Agent.bx instead of the default Agent.yml, for agents whose definition needs code (hooks, dynamic instructions). It applies to the root and to any subagents a template scaffolds, and only to --template mode - not to --repo/--forgebox.
    • --template picks one of 8 built-in starters, each layering a bit of pre-wired content on top of the base skeleton above (see Agent Templates for every generated file in full, plus how --repo/--forgebox sources work and how to publish your own):
      • minimal - the bare skeleton, nothing extra.
      • webui-chat - adds a gateways/webui.bx exposing the web chat UI at /chat.
      • slack-bot - adds a gateways/slack.bx channel adapter, plus matching SLACK_BOT_TOKEN/SLACK_APP_TOKEN stub lines in .env.
      • telegram-bot - adds a gateways/telegram.bx channel adapter, plus a matching TELEGRAM_BOT_TOKEN stub line in .env.
      • github-bot - adds a gateways/github.bx channel adapter, plus matching GITHUB_TOKEN/GITHUB_WEBHOOK_SECRET/GITHUB_BOT_NAME stub lines in .env.
      • mcp-server - adds an example mcp/exampleServer.bx tool server and a gateways/mcpExpose.bx entry exposing it as an MCP server at /mcp.
      • scheduled - adds a schedules/Example.bx scheduler calling the agent on a daily cron schedule.
      • multi-agent - adds a subAgents list to the root Agent.yml declaring two subagents (researcher, writer), each scaffolded as its own real subagents/<name>/Agent.yml + instructions.md.
    • Also runs box install in the new project root, so bxAgents test works immediately with no separate install step. This is best-effort: if box isn't on PATH or the install fails, new still succeeds - the message just tells you to run it yourself. Pass --skipInstall to opt out of this step entirely.
  • --repo mode (--repo=owner/repo-name or a full URL): clones the repo via a bundled JGit dependency - no git binary needs to be installed. Always clones shallow (depth 1) and always strips the resulting .git folder afterward, so the new project starts with a clean history rather than staying tied to the template repo's own remote. Refuses to run into a directory that already exists and is non-empty, and fails clearly if no Agent.yml or Agent.bx is found in the cloned repo.
  • --forgebox mode (--forgebox=<slug>): installs a ForgeBox package by talking to ForgeBox's own REST API directly (no box CLI required). Fails clearly if the slug doesn't exist, the download fails, or the installed package has no Agent.yml or Agent.bx at its root (unwrapping one level of nesting first, since many ForgeBox archives wrap their contents in a single top-level folder).
  • Only --template mode needs --model; --repo/--forgebox never require it, since the source project already defines its own.
  • --name/--description are ignored (with a warning in the output) when --repo/--forgebox is used - the cloned/installed project defines its own.
  • The box install convenience step (and --skipInstall) only ever apply to --template mode - a cloned/installed project's own box.json (if it has one at all) is left untouched.

add

Add one thing to a project that already exists, asking the same questions new asks. Today that is a tool, an interceptor, a schedule, an mcp server, a gateway, a subagent, a skill, a profile, a provider, a capability or an extension.

bxAgents add                        # pick what to add
bxAgents add tool                   # asks for the name, function, description and arguments
bxAgents add tool WeatherTools --function=getWeather --description="Get the weather for a city" --args="city, days:numeric"
bxAgents add tool Pinger --agent=researcher     # into subagents/researcher/tools/
bxAgents add tool Pinger --dry-run              # show the file, write nothing
  • The positional arguments are the kind and the name, so the project is found by --projectRoot=<path> or the current folder only.
  • At a terminal, whatever is not given as a flag is asked, in the full-screen UI (or numbered lines with --no-tui). With --yes, in a pipe or in CI nothing is asked: flags and defaults are used, and a required answer that is missing names the flag to pass.
  • Questions end on a review of the files that will be written. Cancelling, with Esc or Ctrl+C, changes nothing.
  • Nothing is overwritten. If a file already exists none are written and the error names it; --force replaces it. At a terminal the review offers to replace instead.
  • --dry-run prints each file with its text and writes nothing.

add tool

Creates tools/<Name>.bx with one @AITool function in the shape bx-ai documents: a docblock describing each argument, the annotation carrying the description the model reads, and typed required arguments from which bx-ai builds the tool's schema.

FlagMeaning
--name=<Name>The file name, or the second positional. Letters, digits and underscores, starting with a letter.
--agent=<subagent>Whose tool it is. Asked only when the project has subagents; . (the default) is the root agent.
--function=<name>The function the model calls. Defaults to the file name with a lower-case first letter.
--description=<text>What the tool does. The model reads it to decide when to call the tool. Without it, and with nothing to ask, the file gets a TODO description and the output reminds you to replace it.
--args=<list>Comma separated, each name or name:type (string by default; numeric, boolean, array, struct, date and any also work).

A tool belongs to the agent whose folder it is in and is attached to that agent automatically. Two tool files of one agent may not share a name, even in different subfolders, so a clash is refused here instead of at the next build. Check the result with bxAgents inspect --section=tools.

add interceptor

Creates interceptors/<Name>.bx with one method for each interception point you pick, and the @scope that the build splits on.

bxAgents add interceptor AuditLogger --points=preProcess,onException --description="Log every request"
bxAgents add interceptor AiWatch --scope=runtime --points=beforeAIModelInvoke,onAIError
FlagMeaning
--name=<Name>The file name, or the second positional. A name another interceptor already uses is refused.
--scope=agent\|runtimeagent (the default) is a ColdBox interceptor registered with the generated app when it starts; its methods take ( event, interceptData, rc, prc ). runtime listens to the events bx-ai announces in the BoxLang runtime and takes the event data as its one argument; BxAgents copies it to .build/runtime-interceptors but does not register it for you.
--points=<list>Comma separated interception points. The picker offers the common ones; any ColdBox core point (agent) or bx-ai event (runtime) can be named here, and a name that is not a point for that scope is refused. Defaults to preProcess (agent) or beforeAIModelInvoke (runtime).
--description=<text>One line for the class's docblock. Optional.

add schedule

Adds a scheduler to schedules/ that sends an agent a message on a schedule. Three things are asked: when it runs, what it says to the agent, and which agent. Overlapping runs are always prevented (.withNoOverlaps()). Each schedule is its own file, schedules/<Name>.bx, so adding one never edits another.

bxAgents add schedule --when="weekdays 08:30" --prompt="Summarize yesterday's findings"
bxAgents add schedule digest --when="0 9 * * 1-5" --prompt="Check for new tickets" --agent=researcher
bxAgents add schedule                          # asks how often, the details, a name, and what to say
FlagMeaning
--when=<phrase or cron>When it runs: one of the phrases below, or a cron expression. At a terminal, leave it out and you are asked how often, then the details.
--prompt=<text>The message sent to the agent each time.
--name=<name>The task's name, or the second positional. It also names the file: daily-digest writes schedules/DailyDigest.bx. Defaults to a name made from the phrase. A task name already used in schedules/ is refused.
--agent=<subagent>Which agent runs it. Asked only when the project has subagents; . (the default) is the root agent, which the file calls with run(). Another agent is called with agent( "name" ).run() by its declared name, so renaming the agent means editing the file.
PhraseRunsWritten as
every 15 minutes, every 2 hours, every 1 daysAt that interval.every( 15, "minutes" ), .every( 2, "hours" ), .every( 1, "days" )
hourly, hourly :15Every hour, on the hour or at that minute.everyHour(), .everyHourAt( 15 )
daily 09:00Every day at that time.everyDayAt( "09:00" )
weekdays 08:30, weekends 10:00Monday to Friday, or Saturday and Sunday.onWeekdays( "08:30" ), .onWeekends( "10:00" )
weekly mon 09:00Once a week (mon tue wed thu fri sat sun).everyWeekOn( 1, "09:00" )
monthly 1 09:00Once a month on that day, 1 to 28 so that no month skips it.everyMonthOn( 1, "09:00" )
first-business-day 09:00, last-business-day 17:00On that business day of each month.onFirstBusinessDayOfTheMonth( "09:00" )
0 9 * * 1-5, 0 30 8 * * MON-FRIAny cron expression: five fields, or six with seconds in front.cron( "..." ) with six fields (a leading 0 is added to a five-field one), checked by BoxLang's own parser. Only the six-field form fires on BoxLang 1.19.0

Times are 24 hour HH:mm in the scheduler's timezone.

A phrase is never written as a five-field .cron(): on BoxLang 1.19.0 that does not fire (see Cron).

  • An existing file of the same name is a conflict and nothing is written; --force replaces it.
  • Schedulers run while the app is served (bxAgents serve). Check the result with bxAgents inspect --section=schedule.

add mcp

Adds an MCP server in either direction: one the agent calls (written into Agent.yml), or one the project hosts (mcp/<name>.bx).

bxAgents add mcp client github                 # a server from the catalog the new wizard uses (or --direction=client)
bxAgents add mcp client --url=https://mcp.acme.dev/mcp --name=acme --auth=bearer --env=ACME_TOKEN
bxAgents add mcp server tools --description="My tools"
bxAgents add mcp                                # asks which way

add mcp client adds an entry to the agent's mcpServers: list. A name from the catalog (github, stripe, notion, atlassian, cloudflare, supabase, git) fills in the address and the sign-in, or for a server that runs as a program on this machine (git) the command to start it and what it needs on the PATH; otherwise give --url. Without a terminal, name the server as the positional or give --url.

FlagMeaning
--server=<name>A catalog server by name, instead of the positional.
--url=<address>A server not in the catalog. An address with a user name, password or key in it is refused: the secret belongs in an environment variable.
--name=<label>A label for Agent.yml; it is not sent to the server.
--auth=none\|bearer\|header\|basicHow it signs you in. bearer writes token, header writes headers (name it with --header=), basic writes user (with --user=) and password.
--env=<NAME>The environment variable that holds the key or password. Only the name goes in Agent.yml, as ${env.NAME}; an empty NAME= is added to .env for you to fill in.
--timeout=<ms>Optional.
--agent=<subagent>Which agent uses it; . (the default) is the root agent.

add mcp server writes mcp/<name>.bx offering the project's tools through bx-ai's MCP server, and, unless you decline, a gateways/<name>Mcp.bx entry that serves it over HTTP.

FlagMeaning
--name=<name>The file name and the server's name. Defaults to tools.
--description=<text>, --version=<x.y.z>What other agents see.
--tools=<list>Which tools to offer. Defaults to all of the root agent's tools; a name that is not one of them is refused.
--cors=<origin>Web origins allowed to call it from a browser; * for any. Empty for none.
--expose / --no-expose, --path=<path>Whether to serve it over HTTP, and where (default /mcp/<name>). A path another gateways/ entry uses is refused.

The tool list is written out when you run the command, so a tool added later has to be added to mcp/<name>.bx. The served route has no authentication of its own: keep it off public networks or put it behind a proxy that checks a credential.

  • Agent.yml is edited by inserting lines only, so its comments and layout stay as they are. If the list cannot be extended that way (written on one line, say), or the definition is a class-based Agent.bx, nothing is changed and the error carries the entry to paste.
  • A server the agent already uses, by name or address, is refused.

add gateway

Adds one way in to the agent: a chat platform, the web chat UI, or the HTTP API. (A hosted MCP route is added with add mcp server.)

bxAgents add gateway telegram                   # polls Telegram, no public address needed
bxAgents add gateway slack --env=botTokenEnvVar=ACME_BOT,appTokenEnvVar=ACME_APP --policy=steer
bxAgents add gateway web --auth=key             # the browser chat page, behind a random shared key
bxAgents add gateway api --path=/api/chat
bxAgents add gateway                            # asks which (or --type=<kind>)

The platforms are the ones the new wizard offers: telegram, slack, discord, whatsapp-cloud, teams, twilio, github, email and signal.

FlagMeaning
--name=<name>The file, gateways/<name>.bx, or the second positional. Defaults to the type, so add gateway web writes gateways/web.bx, while the wizard and the webui-chat template write gateways/webui.bx. The file name does not matter: the exposes value inside it says what it is. A name in use is refused.
--env=<config=NAME,...>Chat platforms: which variable holds which credential, for example botTokenEnvVar=ACME_BOT. Without it the usual names are used (SLACK_BOT_TOKEN, ...). Only names go in the gateway file; an empty stub for each goes in .env.
--policy=queue\|reject\|steer\|interruptChat platforms: what to do with a message that arrives while the agent is still answering. Written to Agent.yml's gatewaySession unless it is the default queue.
--path=<path>web and api: where it is served (/chat and /api/chat by default). A path another gateway uses is refused.
--auth=open\|key\|usersweb: anyone who can reach it, a random shared key kept in .env as CHAT_UI_API_KEY, or named users. Default key.
--profiles=a,bweb: the project's profiles people can pick in the chat (see Choosing the model). Asked only when the project has profiles; none keeps the page on the agent's own model.
--users=<name:hash,...>web with users: each hash comes from bxAgents hash-password. A password is never taken as a flag; at a terminal you type it, hidden, and only its hash is stored.

After a chat platform is added, the output lists the steps that happen outside the project (creating the bot, a public address, a daemon) and which .env variables to fill in; bxAgents doctor reports any that are still not set. The HTTP API route has no authentication unless agentApi.tokenEnvVar is set in Agent.yml.

add subagent

Adds a subagent: a whole agent under subagents/<name>/ with its own model, tools, MCP servers, memory and guard, wired into a parent's subAgents list. At a terminal it asks the same questions as new (purpose, model, tools, search, files, memory, MCP, guard); the questions only a whole project needs (shape, channels, deploy) are left out.

bxAgents add subagent researcher                # asks
bxAgents add subagent writer --model=openai/gpt-5 --description="Writes the answer"
bxAgents add subagent checker --model=claude --parent=writer --with=search --search=brave --guard=flag
FlagMeaning
--name=<name>The folder, or the first positional. A name any agent in the project already has is refused.
--parent=<folder>The agent that delegates to it: . for the root (the default) or the folder of another subagent, which is how they nest.
--model=<provider/model>Required without a terminal, unless --profile is given.
--profile=<name>Use one of the project's profiles instead of a model, as the main agent can with profile:. At a terminal, a project that has profiles is asked which to use.
--description, --with, --search, --files, --files-dir, --memory, --mcp, --guardThe same as new.

Writes subagents/<name>/Agent.yml (with the environments.test mock model, so bxAgents test needs no key) and instructions.md, and adds an empty .env stub for each key the choices need. The name is inserted into the parent's subAgents without rewriting the file, so comments and order stay as they were. If the parent is a class, or its list is written in a shape that cannot be extended by inserting, nothing in it is changed and the line to add is printed. Packages a choice needs (bx-playwright for browsing) are named for you to add to box.json. --temperature, --max-tokens and --timeout are refused here: they are settings of the whole app, so they go in the project's own Agent.yml.

add skill

Adds a custom skill of your own: skills/<name>/SKILL.md, in the Claude Agent Skills shape. It goes into source control with the project and into every build.

bxAgents add skill release-notes --description="Use this skill when writing release notes"
bxAgents add skill                              # asks
FlagMeaning
--name=<name>The folder, or the first positional. Lowercase letters, digits and hyphens. A skill that already exists is refused.
--description=<text>One sentence starting "Use this skill when". The model reads it to decide whether to load the skill, so it is the part that matters. Without it a TODO is written for you to replace.

Skills are not wired to an agent: every skill in the build is available to the model. Skills from skills.boxlang.io are not added here; they are installed, not written.

add provider

Adds the settings every call to one provider starts from, under providers: in the root Agent.yml (bx-ai's providers setting): the temperature, longest answer and timeout, whichever model or profile is used.

bxAgents add provider openai --temperature=0.2 --timeout=60
bxAgents add provider                           # asks
FlagMeaning
--provider=<id>, or the first positionalA provider bx-ai knows (openai when nothing is asked and none is given). One that already has settings is refused.
--temperature, --max-tokens, --timeoutAt least one is needed. Written as params (temperature, max_tokens) and options (timeout).

The provider's key is never asked for: its usual variable (OPENAI_API_KEY) gets an empty stub in .env. The entry is inserted without rewriting the file, so comments and order stay. Needs an Agent.yml at the root.

add profile

Adds a named combination of provider, model, settings and key variable under profiles: in the root Agent.yml (bx-ai's profiles setting). An agent picks it with profile: <name>, and defaultProfile names the one the app starts on.

bxAgents add profile fast --provider=openai --model=gpt-5-mini --temperature=0.2 --default
bxAgents add profile planner --provider=claude --model=claude-opus-4 --description="Thinks first"
bxAgents add profile                            # asks
FlagMeaning
--name=<name>, or the first positionalLetters, digits, - and _, starting with a letter. default, a provider's name and a name already used are refused.
--description=<text>What it is for.
--provider=<id>, --model=<model>The provider, and a model of it. Without a model the provider's own default is used.
--api-key-env=<NAME>Another environment variable for its key, when two profiles of one provider need different keys. Only the name is written.
--temperature, --max-tokens, --timeoutAs for add provider.
--defaultAlso sets defaultProfile. An existing defaultProfile is never changed: the line to edit is printed instead.

Adds an empty .env stub for the key variable. Check the result with bxAgents inspect --section=ai.

add capability

Sets the default provider and model for one thing besides chat, in the root Agent.yml with bx-ai's own names. One command for all four; it asks only the questions that capability has.

bxAgents add capability embeddings --provider=openai --model=text-embedding-3-small
bxAgents add capability speech --provider=openai --voice=alloy --format=mp3
bxAgents add capability                         # asks which one
CapabilityKeys it writes
embeddingsprovider, model
speechprovider, model, voice, format
transcriptionprovider, model
imageprovider, model, size, quality, style, instructions

The flags are --slot (or the first positional), --provider and one for each key in the table, such as --model and --voice. Every key but the provider is optional; left out, the provider's own default applies. bx-ai keeps speech and transcription on one audio provider, so the second of the two defaults to the first's provider and a different one is refused. A capability that is already set is refused: edit it in the file. The provider's key variable gets an empty stub in .env; the key itself is never asked for.

add extension

Creates an extension of your own in extensions/: one file for a few methods, or a folder when it carries a scheduler, gateway, tool, skill or web files. See Starting one.

bxAgents add extension standup
bxAgents add extension standup --with=command,key --description="Daily standup"
bxAgents add extension standup --with=command,scheduler        # a folder, with schedulers/Standup.bx
FlagMeaning
--nameThe file or folder name, or the first positional. Letters, digits, -, _ and ..
--withWhat it brings, comma separated: command, key, status, prefix, source, slot, verb, listener, scheduler, gateway, tool, skill, web. Default command.
--layoutfile or folder. A folder is the only choice when --with has a scheduler, gateway, tool, skill or web.
--descriptionOne line for the class's docblock.

skills

Skills from the registry (skills.boxlang.io), the way coldbox ai skills installs them. A skill of your own goes in skills/ instead: see add skill.

bxAgents skills find release                    # search the registry
bxAgents skills install ortus-boxlang/skills/boxlang-developer~configuration
bxAgents skills install                         # restore what the lock lists and the disk lacks
bxAgents skills list                            # what is installed, and whether it is intact
bxAgents skills update [name...] [--dry-run]    # fetch newer versions
bxAgents skills remove <name>
CommandWhat it does
find <words>Searches names and descriptions. Shows the reference to install, the registry's audit result and the install count. Needs no project. --limit=<n> (default 10), --json.
install <owner/repo/skill>...Installs into .agents/skills/<name>/SKILL.md and records it in .agents/skills.lock.json. The last part can be the slug (boxlang-developer~configuration), the path in the repository (boxlang-developer/configuration) or the skill's name. A skill that failed the registry's security audit is refused; one that is not trusted is flagged.
installWith no reference, restores what the lock lists and the disk lacks.
listOne line per installed skill. Notes one that is missing, or edited since it was installed. --json.
update [name...]Fetches newer versions. A skill you edited is skipped, with what to do; --dry-run only reports.
remove <name>Deletes the skill and its lock entry.

--registry=<url> (or the BXAGENTS_SKILLS_URL environment variable) points at another registry.

Where things live

PathWhatIn source control
skills/<name>/Skills you wroteYes
.agents/skills/<name>/Skills installed from the registryNo. install adds the folder to .gitignore.
.agents/skills.lock.jsonWhat is installed, its source and its shaYes

build restores any skill the lock lists and the disk lacks, so a fresh checkout builds the same agent, and fails naming the skill if the registry cannot be reached. Nothing is fetched when they are all there, so an offline build of a restored project works. Both folders go into the build; a skill of your own with the same name wins over an installed one.

The sha is the git blob sha of SKILL.md, the one the registry reports. An install is checked against it before anything is written, and it is how update knows a skill changed and list knows you edited one.

Warning

A skill is instructions your agent follows. The registry audits what it lists, but read what you install before you ship it.

build

Run the full build pipeline.

bxAgents build [--environment=production] [--verbose] [--generatorVersion=1.0.0]

Writes .build/ (app/, public/, lib/, runtime/, boxlang_modules/ and miniserver.json, see what is in .build) and .build/manifest.json. Fails with every collected validation error if the project is invalid.

  • BXAGENTS_MODULE_DIR names the module folder to copy into .build/runtime/modules/bx-agents when BxAgents is not running from an installed module (a source checkout: build/modules/bx-agents); none copies nothing. It is read with getSystemSetting(). build, serve, test and invoke --server also take a moduleDir option that wins over it (the test suite uses it).

  • --verbose prints one line per build phase live as it runs - what got resolved/discovered/validated, per-phase counts (models, tools, gateways, warnings, etc.), which agents ended up registered in config/WireBox.bx and under which names, how many schedules/*.bx schedulers were found, and a final Build completed in Xms timing line. Useful for debugging a slow or unexpectedly-behaving build. Silent otherwise - --verbose costs nothing when not passed.

  • --generatorVersion overrides the string stamped into manifest.json's generator.version (see The Manifest) - defaults to "dev" when omitted. Exists for tooling that builds against a specific released version of this module and wants that recorded in the manifest, rather than the local dev default.

test

Run your project's own tests/specs via TestBox.

bxAgents test
  • Requires TestBox installed in lib/testbox (box install in the project root; tests/testbox is also found).
  • Builds your agent against the mock provider by default (the test environment override in Agent.yml, or test() in a class-based Agent.bx) - no API key or network access needed.
  • Prints pass/fail/error/skipped counts plus one line per failure, and exits non-zero if anything failed.

serve

Launch a real boxlang-miniserver process serving .build/public.

bxAgents serve [--port=8080] [--host=127.0.0.1]
  • Requires a prior build - fails clearly if .build/app doesn't exist, or if the build has no public/ (it was made before the app/public layout: build again).
  • Fails clearly if boxlang-miniserver isn't found on PATH.
  • The root address answers too: / redirects (302) to the web UI when the project has one, and otherwise returns a small JSON pointer to the API's health route (on agentApi.path), or a plain 404 when the API is off. It names nothing about the agent.
  • Always serves the agent at /__bxagents (POST /invoke, POST /stream, POST /batch, GET /info), whatever the project declares in gateways/ - see the always-on agent route for how to require a token on it, or turn it off.
  • Binds to 127.0.0.1 by default. A generated app is not authenticated unless you configured it to be (the web UI's API-key gate and sign-in are both opt-in), so the default keeps a development server off the network. Pass --host=0.0.0.0 to bind all interfaces deliberately - the startup line tells you which of the two you got.
  • --port must be an integer in 1-65535; anything else fails immediately rather than inside the server process.
  • Runs in the foreground and stays attached to the terminal. Press Ctrl+C there to stop the server.
  • Writes .build/miniserver.json before launching: webRoot: public, configPath: runtime/boxlang.json (the ColdBox BoxLang template's engine config, whitespace compression off), serverHome: runtime, rewrites to index.bxm, health check on, and a pass predicate that lets only index.bxm run. Every path is relative to .build, and the server is started in .build with BOXLANG_HOME=.build/runtime - which is what the template's ${user-dir} means.
  • Serves only .build/public: the app's code, its config (agent-settings.json, Agent.yml, instructions) and the libraries are not under the web root, so they cannot be downloaded; an unknown address is a JSON 404.
  • Loads only the bxagents module (with the BoxLang modules bundled inside it, and the project's own boxlang_modules/): the module is copied into .build/runtime/modules under its installed folder name (bx-agents from bx-module install), and runtime/ is the BoxLang home, so the modules installed on the machine are never loaded into the served app. chat --server and invoke --server get this too, since they reuse serve internally. test runs its child process with its own home in .build/test-runtime, loading the bxagents module alone as well. Both are set through the child's environment when it starts, never by writing a file into the project root.
  • A project (or an unpacked app) under a path with a space does not start: the boxlang-miniserver launcher script does not quote BOXLANG_HOME.
  • The scaffolded .env does not set BOXLANG_HOME. Each project gets its own runtime home when bxAgents serves or runs it, so a project that runs under boxlang module:bxagents ... from its own root keeps working: the boxlang launcher reads the project .env, and a relative BOXLANG_HOME there points the launcher at an empty folder. build, doctor, inspect and the default invoke run inside the bxAgents process you started, and a runtime home cannot change mid-process, so they use your own home. Default chat starts an isolated BoxLang process with .build/runtime/boxlang.json and .build/runtime as its home. Per-project runtime state is kept in .build/; BoxLang's compiled-class cache in your home is named after each source file's full path, so two projects do not overwrite each other. bxAgents doctor warns when an older project's .env still has a relative BOXLANG_HOME line; delete it.

chat

The terminal chat

New to it? Start with the terminal UI, the walkthroughs and the slash command list. This section is the reference.

A chat with the built agent, in a terminal screen that keeps your scrollback: finished turns are printed as ordinary terminal text (select, search and scroll them as usual) and only the message box and the answer being written are redrawn. --no-tui (and any terminal that is not interactive) uses a plain line-by-line REPL instead, built on BoxLang's own MiniConsole.

bxAgents chat                                  # local chat in an isolated runtime
bxAgents chat --no-tui                         # plain line-by-line REPL
bxAgents chat --inline                         # the box under the last line, not pinned to the bottom of a cleared screen
bxAgents chat --server [--port=<port>]         # full app, own throwaway server
bxAgents chat --connect=http://127.0.0.1:8080  # full app, server you already run
bxAgents chat --connect=https://agent.example.com --token=<token>   # a server that wants one
bxAgents chat --connect=https://agent.example.com --api-path=/agent-api   # a server that serves its API somewhere else (agentApi.path)
bxAgents chat --user=alice                     # whose notes and conversations (default: `local`, the one user of an open server)
bxAgents chat --continue                       # open the most recent conversation, with its history
bxAgents chat --session=2                      # open one by its number in /sessions, or by id

In the screen:

KeyDoes
EnterSend the message
Shift+Enter, Ctrl+J, or \ then EnterNew line in the message
Up / DownEarlier messages (from the first or last line of the box)
EscStop the agent. It stops at its next step, not mid-word
Enter while the agent worksSteer it: your message is added to the run
Ctrl+CClear the box; on an empty box, leave; while the agent works, stop it. Ctrl+D leaves on an empty box
? alone, F1, Ctrl+/, or /keysOpen the shortcuts panel: the keys as they are bound now, with the action name of each, narrowed by typing

Type / for the commands: /help, /new (a fresh conversation), /tools, /volumes (the folders the agent may use), /agent (pick a sub-agent to talk to), /skills (the skills the agent can load, and from which level), /copy (the last answer to the clipboard, using the OSC 52 escape most terminals honor), /export [file] (the conversation as Markdown or HTML), /name and /fork (see below), /keys (which key does what), /prompt (how the message box looks, see below), /sessions, /resume, /clear, /compact and /info (see below), /model, /profile and /default (see below), /remember <text> and /notes (see below), /record [file] and /record stop (see below) and /exit.

The same commands in the web page and in gateways

Each slash command is written once, as a small class that answers with data (text, a table, a list to pick from), and the terminal, the web page and the chat platforms each draw that answer their own way. So /help, /new, /tools, /volumes, /sessions, /resume, /clear, /compact, /model, /ping, /info, /remember and /notes work in all three:

WhereHow you use them
Terminal chatType /, as above
Web pageType / (or press the lightning button): a menu of the commands appears, Tab completes one
Chat platforms (Telegram, Slack, ...)Type the command as a message. A safe set is on by default (help, info, tools, model, ping, notes, remember); a project can widen or switch it off
A server over HTTPGET /__bxagents/commands and POST /__bxagents/command, see Run control

/name, /fork and /export work in the terminal and in the web page (where /export hands the file to the browser to save, and the page has Fork and Export buttons). The size of the context is also always in front of you: the hint row under the message box starts with ctx ~12.4k / 128k 9% (just ctx ~12.4k when the project does not say the window), refreshed before every prompt, so after each message, /clear, /compact, /resume and a change to your notes. The web page shows the same in the bar above the conversation; click the ring for the breakdown. The numbers are estimates, characters divided by four (what bx-ai's aiTokens() does), good for seeing which part is big and not for an exact bill. The tools of MCP servers are fetched when a run starts and are not counted.

/copy, /record, /profile, /default and /exit act on your own machine or on your own session's model, so they stay in the terminal.

Conversations in the chat

Every chat is a conversation, listed in the project's shared chat database (chat.db in the data home) under your user, the same list the web chat shows. The messages themselves are kept in the agent's memory, so a conversation can be picked up again only as far as that memory lasts: the default cache memory is lost when the process ends, a file or jdbc memory is not.

CommandDoes
/sessionsList your recent conversations, numbered
/resume [number or id]Go back to one and show what was said; without an argument, the most recent
/newStart a new conversation (the old one stays in the list)
/name <new name>Name this conversation; a conversation nobody has spoken in yet gets its entry in the list
/fork [new name]Copy this whole conversation, messages and all, under a new name and carry on in the copy; the original stays as it was. Without a name the copy is called Fork of <this one>
/export [file] [--format=md\|html]Save the conversation as Markdown or as an HTML page. The file name decides the format (.html or .htm is HTML, anything else Markdown) unless --format says; without a name the file is dated, in the folder you started in. The HTML shows the Markdown rendered, tables included, and escapes anything you typed so it never runs when the file is opened
/clearForget this conversation's messages and keep the conversation
/compactReplace the older messages with a summary (needs a summary model on the agent's memory)
/infoAgent, model, conversation, message count, notes and database
/contextHow big the context is right now and what it is made of: the system prompt, the tool definitions, the notes and this conversation's messages, each with its size, the total, and the share of the model's context window when the project says it. The largest tools are named. Worked out locally; no model is called
/prompt [style]How the message box looks, for this chat: /prompt shows the choices, /prompt box switches style, /prompt top +git -clock changes the widgets. Only at the terminal
/statsWhat the model calls used: /stats for the last 30 days by model, /stats 7 --by=day for another span or grouping. Only at the terminal. When usage is not recorded it says how to turn it on, and /stats enable writes usage: true into Agent.yml for you (rebuild for it to take effect)

--continue opens the most recent conversation when the chat starts, and --session=<number or id> opens a particular one. Both show the earlier messages first. Over --connect the server keeps the list and the messages, under the name of your token; a server without a chat database says it keeps no list.

The prompt and the tables

The message box has five looks, each with a top bar that carries a label and small facts (widgets), and a coloured edge: the accent colour at rest, amber while the agent works.

prompt:Look
bars (default)A bar above the message box and a bar below it, like Pi; the hints and the bottom widgets under the lower bar
bars-hintsThe same two bars, with the hints and the bottom widgets inside the lower one
ruleOne coloured rule above the box, and the hint row below
boxA rounded box around the message box
panelA tinted panel with a thick left bar; on a terminal without 256 or true colour (16 colours or none) it is drawn as rule

The widgets are agent, profile, folder, user, clock, machine, git, date, session, elapsed and ctx. They sit in the top bar (after the label) or at the bottom (on the hint row, or inside the lower bar); when the line is too narrow the last ones drop off. A widget with nothing to show, such as git outside a repository, is left out. By default the top bar shows agent, folder, user and clock, and the bottom shows ctx and profile.

Set the start in Agent.yml or with bxAgents new (--prompt=box --widgets=agent,git --widgets-bottom=ctx, or the "Look and feel" step of the wizard), and change it while you chat with /prompt: /prompt shows the style and widgets in use and everything on offer, /prompt box switches style, /prompt top agent clock sets the top widgets, /prompt top +git -clock adds and removes, and /prompt bottom none clears a place. A change lasts for that chat.

tui:
  prompt: bars
  widgets:
    top: []
    bottom: [ folder, git, ctx, profile ]

Tables in an answer are drawn with rounded borders in the accent colour, a bold header and the column alignment of the table; cells wrap on a narrow terminal. Code blocks are coloured by language. Commands can mix styles within a line: /help shows each command name in bold teal with its description in gray, /info shows labels in gray with values in teal, and /volumes marks read-write volumes in green and read-only in amber. See the Reply API for how extension commands produce styled output.

Models in the chat

The chat can change the model it talks to without losing the conversation: the memory, tools, sub-agents and instructions stay, only the model is replaced. It lists the profiles of the project.

CommandDoes
/modelShow the model in use (provider/model), its profile and, when the project says them, its context window and whether it can see images
/ping [profile]Test that the model answers, with one tiny question: it says how long it took, or why it did not (no key, a wrong model name, the service unreachable). A result is kept for 30 seconds, so a repeat is not another request
/profilePick a profile from a list: its provider and model, its description, which is the default and which is in use
/profile <name>Switch straight to one. A profile whose provider has no key set is switched to with a warning, since the next message would fail
/defaultGo back to the app's default: the defaultProfile, else the provider and model at the top of Agent.yml

A chat on --connect or --server can switch only among the profiles the server lists in agentApi.profiles (GET /__bxagents/profiles), sent as options.profile with each message; a server that lists none says so and changes nothing. There is no /provider: a profile already names its provider, and the providers' own settings are in Agent.yml (see add provider).

Notes in the chat

When the agent keeps notes, the chat can show and change them:

CommandDoes
/remember <text>Keep a note about you
/notesOpen the notes screen (below)
/notes listPrint your notes and the agent's, with how full each is
/notes add [agent] <text>Add a note (about you, or with agent about the agent's work)
/notes edit <id> <text>Change a note; the id is the short code in the list
/notes remove <id>Remove a note
/notes statsCharacters used against the limit, and the rough tokens they add to every conversation

/notes opens a screen with your notes (press t or Tab for the agent's). The note under the cursor is the one the keys act on:

KeyDoes
aAdd a note to the scope on screen
e or EnterEdit the note, starting from its text
dRemove the note, after a yes
t or TabSwitch between your notes and the agent's
sShow the stats
EscBack to the chat

The heading shows how many characters of the limit are used and about how many tokens that adds to every conversation. It works in all three modes. Over --connect the commands use the server's notes routes, so you see the notes of that server, and removing a note of the agent needs an admin token. An agent without a notes block says how to turn them on.

Running things on your machine from the chat

Two prefixes in the message box run something on your own machine, never on a server, even when the chat talks to one over --connect:

TypeDoes
!commandRuns a shell command (sh -c, or cmd /c on Windows) in the folder you started in. Its output (standard output and error together, cut at 20,000 characters, stopped after a minute) is shown, and goes with your next message, so the agent sees what you saw
!!commandThe same, shown on screen only
#function( arguments )Calls one BoxLang built-in function, such as #dateFormat( now(), 'yyyy-MM-dd' ) or #listLen( 'a,b,c' ). The result is shown (a struct or array as JSON) and goes with the next message
##function( arguments )The same, shown on screen only

! must be followed at once by the command (! hello is a message) and # by a call (# A heading and #hashtag are messages). A call is only a call: a string ('..' or ".."), number, true, false, null, array, struct or nested call as an argument, positional or named, and nothing else. There are no variables, operators, . access or statements, and a name that is not a registered built-in function is refused before anything runs. What waits for the next message shows in /context (as Attached) and in the status bar, and is gone once the message is sent.

The two are yours to switch off or narrow, in a file that belongs to you and not to any project, ~/.bxagents/Agent.yml (BXAGENTS_USER_CONFIG names another file). It is the same file that layers every other setting; chat: is valid only there:

chat:
  shell: true        # false switches ! off; or the shell to use: "bash -c", "pwsh -Command"
  bifs: true         # false switches # off; or the functions allowed: [ dateFormat, listLen ]
  keys:              # change the keys of an action; one key or a list. /keys shows the action names
    newline: [ ctrl+n, shift+enter ]
    stop: ctrl+x
  prefixes: { desk:explain: "?%" }   # the prefix of an extension's prefix, by id (extension:method)
  sources: { desk:ticket: issue }    # the name of an extension's @name:query source, by id
extensions:                          # values for extensions, and what to turn off
  disable: [ roll ]

A missing file means both are on. A key the file does not know, or a value of the wrong kind, is reported when the chat starts instead of being ignored.

Keys are written as people say them: enter, alt+enter, shift+enter, ctrl+j, esc, tab, up, down, home, end, or a letter with ctrl or alt. Actions you can change: submit, newline, historyPrevious, historyNext, clear, exit, deleteToStart, deleteWord, lineStart, lineEnd, complete, pasteImage and clearScreen (in the message box) and stop (while the agent works). Moving the cursor with the arrows, Backspace and Delete are not actions. An entry that names no action, cannot be read as a key, or takes a key another action in the same place already has, is reported when the chat starts and that action keeps its default keys, so a typo never leaves you without a way to send a message. The heading and the hint row show your keys.

Files and pictures in the message

TypeDoes
@Opens a list of the files under the folder you started in (up to five levels deep; hidden folders, node_modules, build, dist, target, out, __pycache__, venv are skipped). Keep typing to narrow it, Up and Down to move, Tab or Enter to take one
@path/to/fileA text file in the message: its content goes with the message, in its own block, cut at 100,000 characters. A name that is not a file is reported and stays as plain text; the message is still sent
@picture.pngA picture (png, jpg, gif, webp), sent as an image part of the message
Ctrl+Shift+VPastes a picture from the clipboard (needs wl-paste or xclip on Linux, pngpaste on macOS; Windows uses PowerShell). A chip in the hint row shows how many are waiting

At most 4 pictures go with one message, each up to 5 MB. Before anything is sent the chat checks the model: set vision: false on a profile that cannot see, and a picture sent to it is refused with a message instead of an obscure provider error. When vision is not set the picture goes through. /context counts what is attached. The picture is passed to the model as bx-ai's AiMessage image parts, in the shape that provider expects; only OpenAI-style providers have been tried so far.

With --connect the files and pictures travel in the attachments of the request to /__bxagents/events, see Run control. Chat platforms do not take attachments yet.

Recording a chat

--record saves what the screen shows as an asciicast .cast file, for demos and bug reports. --record alone writes chat-YYYYMMDD-HHMMSS.cast in the current folder, and --record=demo.cast names the file. Inside the chat, /record starts a recording (/record demo.cast names it) and /record stop finishes it. A red ● rec shows on the hint line while it is on, and the file is finished when you leave.

bxAgents chat --record=demo.cast
asciinema play demo.cast             # replay it in a terminal
agg demo.cast demo.gif               # turn it into a GIF (agg is a separate tool)

The file holds the screen's output, so it shows what you typed in the message box and everything the agent printed, including tool arguments. Keystrokes themselves are not recorded. A recording started with /record begins at that moment, so earlier lines are not in it. It needs the terminal screen: --no-tui and non-interactive runs record nothing.

The answer is shown as it streams and printed as formatted Markdown (headings, lists, tables, code blocks) when it is complete. Code blocks are coloured by language: BoxLang, CFML, Java, JavaScript, TypeScript, Python, Go, Rust, Kotlin, SQL, JSON, YAML, TOML, XML/HTML, CSS, shell, diff and Markdown. In the default mode each tool call is shown with its arguments and how long it took, and the model's thinking is shown while it works but never kept. A run that stops for human approval asks you in place: approve once, approve for the conversation, or reject. Over HTTP the screen is the same: tool lines, thinking, Esc, steering and approvals all work, through the server's run-control routes. A server built by an older bxAgents has no run control; then you get the answer only, with a notice.

Three modes, one chat:

ModeWhat it talks toUse it when
defaultThe generated agent factory, loaded in an isolated BoxLang process using .build/runtime/boxlang.json and .build/runtime as its homeYou just want to talk to the agent, without a server.
--serverA throwaway boxlang-miniserver it boots and tears downYou need real application semantics - interceptors, the scheduler, gateways.
--connect=<url>A server that is already runningYou have a serve open in another terminal, or want to talk to a deployment.
  • Requires a prior build - except with --connect, which talks to a server someone else is running and so needs nothing built locally.
  • Default: starts a BoxLang CLI child process in .build, using .build/runtime/boxlang.json as its config and .build/runtime as BOXLANG_HOME, then loads GeneratedAgentFactory.bx directly (no ColdBox/WireBox container involved) and calls buildAgent() once per session. It uses the same factory serve's HTTP routes use, so the agent itself never diverges. What does differ is everything ColdBox brings: no models/, no scheduler, no interceptors, no gateway registry. When that matters, use --server.
  • --server: boots a real miniserver (needs boxlang-miniserver on PATH, like serve) on an ephemeral loopback port and drives the REPL over HTTP against the project's always-on /__bxagents route, shutting it down on exit. --port pins the port instead of taking a free one.
  • --connect: drives the same REPL against a running server, starting and stopping nothing. The URL is the server root (http://host:port), not the agent path - chat appends that itself.
  • --server and --connect are mutually exclusive: one says "start a server for me", the other "don't". Passing both fails immediately rather than silently honoring one.
  • Both HTTP modes stream the reply: the answer appears token by token as the agent produces it, over the route's /events (SSE) sub-route, which also carries the tool calls and the pause for approval. Esc calls /cancel, a message typed while the agent works calls /steer, and an approval is answered with /resume. The plain REPL (--no-tui) uses /stream, and falls back to /invoke and the whole reply at the end if the stream cannot be opened (an older server without a /stream sub-route, or a proxy that won't pass text/event-stream).
  • Both HTTP modes carry the server's threadId across turns, so a session is one conversation rather than a series of unrelated first messages.
  • In the screen, a turn that pauses for a human-in-the-loop decision asks you in place. In the plain REPL it says so instead of appearing to answer with silence, and points at the /gateways/interactions/ endpoint where the decision is submitted.
  • If the route is gated behind agentApi.tokenEnvVar or issued tokens, pass --token=<token> (or set BXAGENTS_TOKEN). Without a valid one these modes get a clear 401 error rather than a confusing timeout.
  • Type /exit to leave (exit and quit work in the plain REPL).
  • Needs a real interactive terminal. Piped or non-interactive, it falls back to the plain REPL, which needs one too (MiniConsole shells out to stty for raw mode). Use invoke for scripting.

invoke

A single, non-interactive turn against the built agent: submit one message, print the response, exit. Exists for scripting/CI, where chat's TTY requirement is a hard blocker.

bxAgents invoke --message="What's the weather in Boston?" [--json]
bxAgents invoke --message="..." --server [--port=<port>]
  • Requires a prior build.
  • Default (no --server): loads GeneratedAgentFactory.bx directly in the already-started BoxLang process (no ColdBox container, no HTTP) and calls the agent once. No serve/gateway prerequisite at all. Unlike chat, it does not start a separate BoxLang process with the project's runtime config and home.
  • --server: launches a real, throwaway boxlang-miniserver process (same as serve, so it needs the binary on PATH), sends the message as a real HTTP request to the project's always-on /__bxagents route, then shuts the server back down. Exercises the actual served path (ColdBox routing, interceptors, gateways) rather than the in-process shortcut. Needs no gateways/* entry of any kind - the reserved route is emitted on every build, so a freshly scaffolded project that exposes nothing publicly still works. --port defaults to a free ephemeral port so it never collides with an already-running serve.
  • --json prints {"response": "..."} instead of the plain-text response.

package

Package a built project into a .bxa.

bxAgents package [--version=1.0.0]
  • Requires a prior build - reads .build/manifest.json; fails clearly if it's missing.
  • --version defaults to 1.0.0.
  • Writes dist/{agentName}-{version}.bxa (the app, lib, public, runtime, boxlang_modules folders and miniserver.json of .build), a sibling .sha256, and a redacted manifest.json copy. See Deployment & Secrets.

deploy

Ship a built/packaged project to a real deployment target via the pluggable deploy/ convention.

bxAgents deploy --name=production
# or, the flag-only shorthand (local only):
bxAgents deploy --destination=/path/to/somewhere [--target=local]
  • --name=<entry> dispatches to whatever target the named deploy/<entry>.bx/.json entry declares (local, ssh, ftp, sftp, docker, or digitalocean).
  • The flag-only form (--target=local --destination=..., or no --target at all) works with no deploy/ folder present - only local supports it; every other target requires a named entry, since it needs more configuration than a couple of flags can carry.
  • local/ssh/ftp/sftp require a prior package; docker/digitalocean require a prior build (they build straight from .build; the Docker recipe is unverified).
  • ftp/sftp use the bx-ftp module, which BxAgents bundles.

hash-password

Turn a plaintext password into the passwordHash value a webui entry's users block accepts.

bxAgents hash-password --password="<your-password>"
  • --password is required.
  • Prints the hash to stdout - pbkdf2$<iterations>$<salt>$<derivedKey>, PBKDF2-HMAC-SHA256, salted per call. Safe to commit: it's one-way, and hashing the same password twice yields two different (both valid) hashes.
  • Kept deliberately identical to the hasher the generated web UI itself uses to verify a sign-in - a hash produced here always verifies there.

token

The access tokens of a deployed agent, kept in the project's shared chat database (chat.db in the data home, or the file named by BXAGENTS_DB). The agent accepts them when its agentApi has tokens: true.

bxAgents token create --name=laptop [--scope=chat|admin] [--expires=90d]
bxAgents token list [--json]
bxAgents token revoke --name=laptop
  • create prints the token once, with how to use it; only a hash of it is stored. --name is required (letters, digits, ., -, _). --scope is chat (talk to the agent, the default) or admin. --expires is a length (90d, 12h, 30m, 2w) or a date; without it the token does not expire.
  • list shows each token's name, scope, status (active, expired or revoked), when it was made, last used and expires. Never the token itself.
  • revoke stops a token working at once. The name stays taken, so it cannot be reused by accident.
  • Run it where the database is: on the server, or in the project before you pack it. On a deployed server, point BXAGENTS_DB at the file the app uses.

embed

The embeds of a deployed agent (the agent on another website, for anonymous visitors), kept in the project's shared chat database like the access tokens. See Embeds.

bxAgents embed create --name="Docs helper" --origin=https://docs.example.com[,https://other.example.com] [--tools=docs_search,...]
bxAgents embed list [--json]
bxAgents embed show --id=emb_...
bxAgents embed disable --id=emb_...
bxAgents embed rotate --id=emb_...
  • create needs --name and at least one --origin (comma separated; each exactly scheme, host and optional port, no path, no wildcard). Optional: --agent, --profile, --title, --welcome, --placeholder, --color, --position (bottom-right or bottom-left), --theme (light, dark or auto), --per-minute (default 10), --daily (default 200) and --max-chars (default 2000). It prints the id, which is not a secret.
  • The tools are not checked against the agent here; the web app's Embeds page does that. A name the agent does not have is never run.
  • disable turns the embed off: visitors are answered as if it did not exist. rotate gives it a new signing key and every open visitor session stops working. The signing key is never printed.
  • Run it where the database is, like token.

users

The sign-in accounts of the web page, as the project's shared chat database keeps them, and who among them is an admin.

bxAgents users list [--json]
bxAgents users admin --name=ada
bxAgents users member --name=ada
  • list shows each account's username, role (admin or member), whether it is active, and its display name. Never a password.
  • admin makes an account an admin; member makes an admin a regular account again. The last admin cannot be demoted.
  • The roster itself comes from the users of the web gateway at every boot. This verb only changes the admin flag, which the database keeps from then on. See Admins and members.
  • Run it where the database is, like token.

notes

The notes an agent keeps, read from the project's shared chat database (chat.db in the data home, or the file named by BXAGENTS_DB). Limits come from the notes block of Agent.yml.

bxAgents notes list [--scope=user|agent] [--user=NAME] [--json]
bxAgents notes add --text="Prefers short answers" [--scope=user|agent] [--user=NAME]
bxAgents notes edit --id=<id> --text="New text" [--scope=user|agent]
bxAgents notes remove --id=<id> [--scope=user|agent]
bxAgents notes stats [--user=NAME] [--json]
bxAgents notes export [--file=notes.json]
bxAgents notes import --file=notes.json
  • --scope is user (the default) or agent; list without it shows both. --user is whose user notes: local by default, the one user an open server has. Agent notes belong to the agent's name.
  • stats shows how full each scope is and the rough size they add to the prompt (about four characters to a token; an estimate, not a count).
  • export writes the notes as JSON, to --file or to the screen. import adds the notes of such a file; a note already there is not added twice and one that does not fit the limit is reported (the command then exits 1).
  • Run it where the database is: in the project, or on a server with BXAGENTS_DB set.

vault

The secrets an agent uses at run time, sealed in the project's shared chat database (chat.db in the data home, or the file named by BXAGENTS_DB). See the vault.

bxAgents vault list [--scope=agent|user|all] [--user=NAME] [--json]
bxAgents vault add --name=GMAIL_TOKEN [--user=NAME] [--description=TEXT] [--hosts=a.com,*.b.com] [--stdin]
bxAgents vault edit --name=GMAIL_TOKEN [--user=NAME] [--description=TEXT] [--hosts=...] [--value] [--stdin]
bxAgents vault remove --name=GMAIL_TOKEN [--user=NAME] [--yes]
bxAgents vault status [--json]
bxAgents vault audit [--limit=N] [--json]
bxAgents vault key
  • A value is never a flag. add and edit ask for it hidden at a terminal, or read it from a pipe with --stdin (op read ... | bxAgents vault add --name=X --stdin). Nothing here prints a value, and one cannot be shown again after it is saved.
  • Without --user a secret is the agent's (shared). With --user=NAME it is that person's own.
  • edit changes only what is given; --value (or --stdin) replaces the value.
  • status says where the key comes from and warns when it is the key file beside the database. audit lists who added, used, was refused and removed what, without values.
  • key prints a new random key to put in BXAGENTS_VAULT_KEY. It does not touch the database.

data, backup and restore

Where the agent keeps everything, and backups of it. See data and volumes.

bxAgents data [--json]
bxAgents backup [--to=FILE]
bxAgents restore FILE [--home=DIR] [--force]
  • data prints the data home and where it came from, the size of the database and each folder, and the volumes with their modes. It makes nothing.
  • backup zips the chat database (copied whole, so it is safe while a server runs), files/ and skills/. Without --to the zip goes in the home's backups/ folder. Volumes are not included.
  • restore puts a backup back and keeps what was there as <name>.before-restore. It stops when the database looks to be in use unless --force is given. --home restores into another data home.

connect

Connect the built-in connectors (GitHub, Stripe, Notion, Atlassian, Cloudflare, Supabase, Git) and sign in to the services of a project that ask each person to sign in (an mcpServers entry with an oauth key, see connect).

bxAgents connect
bxAgents connect mail [--port=8765] [--no-open] [--timeout=300]
bxAgents connect mail --remove
bxAgents connect [--user=NAME] [--json]
bxAgents connect github --token-env=GITHUB_TOKEN --confirm   # a script: no hidden box
bxAgents connect github --stdin --confirm                     # token piped in
bxAgents connect github tools off delete_file                 # also: tools on NAME, tools off all, tools readonly
bxAgents connect github off                                   # disconnect
bxAgents connect github options repository=/path/to/repo      # connectors that have options

bxAgents connect mail: the address, the wait, then connected

  • Without a name it lists the connectors and services and whether you are connected (--json for a script).
  • A connector that takes a token asks for it in a hidden box. Medium and high risk connectors show what they can do and need a yes, or --confirm. The token is checked with the service before it is sealed.
  • With a name it prints an address and opens your browser, waits for the redirect on 127.0.0.1 (a free port, or --port), and finishes the sign in. --no-open only prints. --timeout is the seconds to wait, 300 by default.
  • --remove forgets your sign in. --user is whose: local by default, the one user an open server has.
  • Tokens are sealed in the project's chat database. Run it where the database is: in the project, or on a server with BXAGENTS_DB set.

connectors

The catalog of known connectors that ships with BX Agents: the remote MCP servers and local programs an agent can use, written as one YAML file each. This verb only reads those files; it never connects to anything. Signing in to one is connect.

bxAgents connectors
bxAgents connectors show supabase
bxAgents connectors check [--dir=DIR]
ID           NAME                              HOW IN              RISK    VERIFIED
github       GitHub                            token               high    2026-11-14
notion       Notion                            sign in, token      medium  2026-11-14
git          Git                               no sign in          medium  2026-11-14
  • Without a word it lists every connector with how a person gets in (a sign in, a token or neither), its risk and the day it was checked. --json prints the full entries for a script.
  • show <id> prints one connector: its address or command, risk, each way in with the environment variable a token goes in, and its options.
  • check reads every file and names each mistake with its file and field. It exits 1 when one is wrong, so a script or CI can use it. --dir checks a folder of files instead of the shipped catalog, which is how a contributor checks a new file before a pull request.

logs

The agent's logs, kept in the logs/ folder of the data home. See logs.

bxAgents logs [area] [--tail=N] [--level=warn] [--grep=TEXT] [--json]
bxAgents logs <area> --follow [--tail=N] [--level=warn] [--grep=TEXT]
bxAgents logs --ui [area]
bxAgents logs [area] [--follow | --ui] --connect=URL [--token=TOKEN] [--api-path=/where]
  • Without an area it lists the logs and their size. The areas are agent, gateways, routines, heartbeat and api.
  • With one it prints the last lines: --tail is how many (default 100, up to 1000), --level the least serious level to show, and --grep a word a line must contain.
  • --follow prints the last lines (20 unless --tail says), then each new line as it is written, with the same filters, until Ctrl+C. It is flushed line by line, so it can be piped (bxAgents logs gateways --follow | grep slack), and it says when the file was rotated.
  • --ui opens a full-screen viewer: a tab per log (Left and Right, or Tab), l for the level (all, warn, error), / to search (Enter keeps it, Esc drops it), the arrows, Page Up, Page Down and Home to scroll back (the view stays put while new lines arrive) and End to follow the newest again, q to leave. New lines show as they are written. Without a terminal (a pipe, CI) it follows instead.
  • --connect reads a served agent over its API instead of this project's files: GET /logs, and GET /logs/stream for --follow. It needs an admin token (--token, or BXAGENTS_TOKEN), and --api-path when the agent serves its API elsewhere. With --ui it reads the log again every 2 seconds.
  • In the terminal chat, /logs lists the logs and /logs <area> [--tail=N] [--level=warn] [--grep=text] prints the last lines (30 unless --tail says); over --connect it takes an admin token.
  • In the web app an admin has the same logs on the Logs page, with a Live switch that follows new lines.
  • Secrets are never in a log, and neither is what a person said.

models

The models of a built project, and whether they answer.

bxAgents models list [--json]
bxAgents models test [--profile=NAME | --all] [--json]
default       openai/gpt-5                    context 128,000  images yes  key set
fast          openai/gpt-5-mini               context 400,000  images no  key set
planner       claude/claude-opus-4            context ?  images ?  key MISSING
  • list shows the default model and every profile, with what the project says about each (contextWindow and vision, ? when it does not) and whether the profile's key is set.
  • test sends each model one tiny question through bx-ai and reports ok with the time, or FAILED with the provider's own message. It tests the default model, one profile with --profile, or all of them with --all, and exits 1 when any does not answer, so it can gate a deploy. It spends a few tokens per model.
  • It uses the models the project was last built with: run bxAgents build first.

routines

The scheduled routines of a project, as the local operator (admin scope, so --all lists every owner's). It works on the project's chat database and data home, and needs routines.enabled: true.

bxAgents routines list [--all] [--json]
bxAgents routines show <name>
bxAgents routines add --name=<name> --schedule="0 9 * * 1-5" --prompt="..." [--destination=routine|gateway:<name>] [--chat=<id>]
bxAgents routines edit <name> [--schedule=...] [--prompt=...] [--destination=...] [--chat=...]
bxAgents routines pause|resume|run <name>
bxAgents routines delete <name> --yes
bxAgents routines reports <name>
bxAgents routines report <name> <file>
bxAgents routines clean <name> [--older-than=30d | --all] [--yes]
  • A schedule is five cron fields or every 30m. list shows it in words and the next run.
  • run marks a routine due. It starts at the next minute of a served app, and the command says so.
  • delete asks for --yes and keeps the routine's reports. clean only lists what it would remove unless you add --yes.

sessions

The conversations in the project's shared chat database (chat.db in the data home, or the file named by BXAGENTS_DB), the same list chat and the web page show.

bxAgents sessions list [--user=NAME] [--json]
bxAgents sessions rename --session=<number or id> --name="New name" [--user=NAME]
bxAgents sessions fork --session=<number or id> [--name="Other approach"] [--user=NAME]
bxAgents sessions delete --session=<number or id> [--user=NAME]
bxAgents sessions export --session=<number or id> [--file=chat.json] [--md] [--force] [--user=NAME]
bxAgents sessions import --file=chat.json [--name="New name"] [--user=NAME]
  • A conversation is picked by its number in list, or by its id or the start of it. --user is whose conversations: local by default, the one user an open server has.
  • list, rename and the list part of delete only touch the database. The messages of a conversation live in the agent's memory, so fork (which copies them) needs a built project, and so does delete to forget them too. They reach only messages a memory that outlives the process keeps (file, jdbc): the default cache memory is gone when the chat ends.
  • Run it where the database is: in the project, or on a server with BXAGENTS_DB set.
  • export writes one conversation to a JSON file named after its title (--file to choose, --md for a readable Markdown transcript instead) and never replaces a file unless you add --force. The file holds the conversation's details and its messages as the agent's memory holds them. It contains everything that was said, so keep it where you would keep the conversation.
  • import reads such a file and adds it to the user's list as a new conversation (a new id, never replacing one), with --name to retitle it. A file it does not recognise is refused before anything is written: it must be an exported conversation of a version this BxAgents reads, with at most 20,000 messages whose roles are user, assistant, system or tool. If it was exported from another agent, the message says so.
  • Both read and write the agent's memory, so they need a built project and a memory that outlives the process (file or jdbc; see the memory setting). With cache the memory is empty once the program has stopped, and export says so.

stats

What the project's model calls used, from the record the app keeps in the shared chat database (chat.db in the data home, or the file named by BXAGENTS_DB).

bxAgents stats [--days=30] [--by=model|provider|day|user] [--user=NAME] [--json]
bxAgents stats --enable
Last 30 days: 128 calls, 412,300 tokens (351,200 in, 61,100 out)

By model              calls          in         out       total
gpt-5                    90     280,000      45,000     325,000
gpt-5-mini               38      71,200      16,100      87,300

Counts only the calls whose provider reported usage.
  • It is off unless you turn it on. Add usage: true to the project's own Agent.yml (see usage) and rebuild. Until then stats says how to turn it on, and --enable writes that line for you, then reminds you to run bxAgents build and restart a running server.
  • Only counts are kept: the time, who asked, the provider, the model and the tokens in and out. Nothing that was said is stored, and nothing leaves your database.
  • A call is counted when its provider reports usage. The mock provider and a few streaming calls do not, so they leave no row, and the totals are of the calls that did.
  • --by groups the rows by model (the default), provider, day or user, with the biggest first (newest first for day). --days is how far back to look, counting today (1 to 3650). --user limits it to one user's calls. --json prints the report for a script.
  • It only reads the database, so it needs no build. Run it where the database is: in the project, or on a server with BXAGENTS_DB set.
  • Cost is not worked out. Prices change too often to ship a table.

inspect

A report of how the agent is composed: the agents and subagents with their models, tools, skills and MCP servers, what the project is exposed through, its schedule, and the environment variables it needs. It reads your project's source, the same discovery, resolve and validate phases build and doctor run, so it works before you have ever run build and it generates nothing.

bxAgents inspect                        # the report
bxAgents inspect --section=tools,env    # only some sections
bxAgents inspect --json                 # the whole report as JSON, for scripts
bxAgents inspect --md                   # Markdown, to paste into a pull request
bxAgents inspect --md=AGENT.md          # write the Markdown to a file in the project
bxAgents inspect --environment=production
● advanced-agent   Agent.bx Β· development
  /home/me/advanced-agent

  3 agents Β· 3 tools Β· 1 skill Β· 2 gateways

── Agents ──────────────────────────────────────────────────────────────────────
● advanced-agent  fast β†’ mock/mock-model
  instructions: instructions.md Β· 2 tools Β· 1 skill Β· 2 subagents
β”œβ”€β— ResearchBot  mock/mock-model
β”‚   instructions: instructions.md Β· 1 tool
└─● WriterBot  mock/mock-model
    instructions: instructions.md

── Tools ───────────────────────────────────────────────────────────────────────
  advanced-agent
    getStockQuote    Get the latest stock quote for a ticker …  tools/Finance.bx
    convertCurrency  Convert an amount from one currency to a…  tools/Finance.bx

The report has these sections, in this order. --section takes any of the names in the first column, comma separated.

SectionShows
agentsThe root agent and its subagents as a tree: model (the default, or the profile it uses and what that resolves to), where the instructions come from, and a count of tools, skills, MCP servers, plus memory and the prompt-injection guard when set.
toolsPer agent: each @AITool function in tools/ with its description and file, then the module tools it lists (now@bxai) and which modules have toolOptions.
skillsThe skills each agent has.
mcpThe MCP servers each agent uses (URLs are shown without a user name or query string, and with the environment variables they need) and the MCP servers the project hosts.
connectorsThe connectors the agent offers: all of the catalog by default, narrowed by its connectors key, with how a person gets in, the risk, and what an admin overrode. Nothing is attached until a person connects one.
gatewaysEvery gateways/ entry: its kind (agent, mcp, webui with its auth mode, or a chat platform) and path.
scheduleEach schedules/*.bx scheduler with its tasks: name, cron (or the frequency method), and the agent it runs (default for the root agent).
aiThe default model, the other providers, the named profiles with where each key comes from, and the capability defaults.
interceptors, modules, deployInterceptors with their scope, declared modules, and deploy/ entries with their target.
envEvery environment variable the project reads: gateway credentials, MCP tokens, each model provider's API key, agentApi.tokenEnvVar.
checksWhat build would reject. Errors and warnings are listed here; inspect still exits 0, use doctor for a pass or fail.
buildWhether .build/manifest.json exists, and its manifest version, generator and file count.
  • A section with nothing in it is left out. Name it with --section and it says none.
  • Environment variables are shown by name, never by value. β–² means the variable is not set right now, βœ” that it is; the text after it says where it is used. This is the same check doctor makes of gateway variables, widened to the whole project.
  • A class-based Agent.bx whose model or instructions are set in code is shown as model set in code or instructions in code; inspect reads what is declared, it does not run the agent.
  • Color is used only at an interactive terminal. NO_COLOR, TERM=dumb and --no-color turn it off, a pipe or a file gets plain text, and TERM=dumb or --ascii also swaps the box-drawing characters for plain ones. Lines are fitted to COLUMNS (80 when it is not exported).
  • --json is the report itself, not the manifest. The manifest is a plain file at .build/manifest.json, described in The Manifest.
  • --md=FILE is the only thing inspect ever writes. A relative file is created inside the project.
  • A folder with no Agent.yml or Agent.bx is an error.

extensions

List the extensions the terminal chat would load for this project: the project's extensions/, your own ~/.bxagents/extensions/, and the extensions/ of installed modules. It loads them the way chat does, so an extension that fails to load shows up here with the reason. It never needs a built project.

bxAgents extensions [--json]
  • One line per extension: its name, which layer it came from, whether it loaded, then the commands and schedulers it added and anything that went wrong.
  • --json prints { extensions, problems } for scripting.

Subcommands install, list, update and remove are described in Installing extensions, link and unlink in Working on one:

bxAgents extensions install <source> [--name=<name>] [--force] [--yes] [--system]
bxAgents extensions install                    # restore from extensions.lock.json
bxAgents extensions list [--installed] [--json]
bxAgents extensions update [name...] [--yes]
bxAgents extensions remove <name> [--force] [--system]
bxAgents extensions link <folder-or-.bx> [--name=<name>] [--force]   # for you, in ~/.bxagents/extensions
bxAgents extensions unlink <name>

clean

Remove a project's .build/ and dist/ output.

bxAgents clean [--force]
  • Only ever removes .build and dist - source conventions (Agent.yml, tools/, etc.) are never touched.
  • Refuses to run unless the directory looks like a BxAgents project (an Agent.yml, an Agent.bx or a .build/manifest.json). dist/ is a common build-output name across the wider ecosystem, so this stops a clean in the wrong directory from deleting something unrelated. --force skips the check when you genuinely mean it.
  • Prints the absolute path of each directory before removing it.
  • Reports "Nothing to clean" if neither directory exists.

doctor

bxAgents doctor output: BoxLang and bx-ai versions OK, agent definition found, project structure validates cleanly, ending with 0 problems and 0 warnings

Diagnose the runtime and your project - read-only, never builds or writes anything.

bxAgents doctor [--json]
  • Reports the running BoxLang version, and warns if it is older than this module's own declared minimum.
  • Confirms bx-ai is loaded (always required).
  • Runs the exact same discovery/resolve/validate phases build runs, without generating anything - every validation error/warning build would hit shows up here first.
  • Checks every *EnvVar-suffixed config value across gateways/* (bot tokens, webhook secrets, IMAP credentials, web UI account passwords, API keys) against the real environment right now, and warns about any that aren't set. Nothing else checks this - build only checks that an env var name was declared, never that it's actually populated, so a missing one otherwise fails silently at runtime (a gateway that never sends, a web UI account that can't sign in).
  • Checks the key variable of every provider the models use: the default model, each subagent, each profile (its apiKeyEnv, else the provider's usual variable, such as OPENAI_API_KEY) and each capability default. A key that is not set in the environment is a warning that names who needs it. Doctor never reads the project's .env, so a key kept only there is reported as not set even though it works when the app is served. mock needs no key, and bxAgents test runs every profile on mock.
  • Checks that every MCP server the agent starts as a program on this machine (a command: entry, such as the catalog's git) is on the PATH; a missing one is a warning.
  • Does not check for qb, cbsecurity, cbauth or cbmailservices: they ship inside BxAgents and are copied into every built app.
  • --json prints the raw findings as a JSON array ([{ status, message }, ...]) instead of the human-readable report - useful for scripting.
  • Exits 1 if any check failed, 0 otherwise - warnings alone don't fail it.
Edit this page Download Markdown Last updated Nov 26, 2026, 8:45:51 AM Report an issue