Skip to content

CLI, configuration and updates

Drive Argy Workbench from the command line with argy-workbench: local service, data folder, configuration file, log, browser and MCP tools, choice of the Argy Code binary and updates.

Argy Workbench comes with a command-line interface, argy-workbench. It starts and controls the app's local service, reads or changes its configuration, locates its log and scripts repetitive tasks. This chapter is for developers who prefer the terminal as well as for administrators and IT department teams who prepare and maintain workstations.

Two commands, two products

CommandProductUse
argy-workbenchArgy WorkbenchLocal service, configuration, workspaces, agents and schedules of the desktop app.
argyArgy CodeTerminal agent, platform sign-in (argy auth login), Argy Code updates.

The argy name is reserved for Argy Code. Every command in this chapter starts with argy-workbench.

The app and its local service

Argy Workbench uses a client and service architecture: a local service (the daemon) runs agents, terminals and workspaces, and both the graphical interface and the CLI connect to it as clients.

The service runs with the rights of your user account. Any client authenticated to it can do whatever the service can do: read and change files, run commands. Treat access to the service as access to your session.

First steps

With no argument, argy-workbench starts onboarding (onboard). With the path of an existing folder, the command opens that project in the app.

argy-workbench
argy-workbench ~/projects/my-repo
argy-workbench status

For the details of each command and its options, add --help, for example argy-workbench daemon --help.

Global options

OptionEffect
-o, --format <table|json|yaml>Output format. table by default.
--jsonJSON output, handy for scripts.
-q, --quietReduced output.
--no-headersTables without a header row.
--no-colorOutput without color.
--host <host>Service to reach: TCP address, Unix socket or SSH host. The local service by default.
--home <path>Data folder to use instead of the default one.

Commands

Local service. The onboard, start, status, restart, reload, pair and hooks shortcuts act on the local service. The daemon group repeats these actions (start, stop, restart, reload, status, pair) and adds set-password as well as config get, config set and config unset.

Agents. At the top level: ls, run <prompt>, attach, logs, send, stop, inspect, wait, archive, delete, import and clone <repo>. The agent group gathers agent management.

Other groups.

GroupSubcommands
hostadd, ls, inspect, update, disable, enable, rm
workspacecreate, rename, archive, ls, setup
schedulecreate, update, delete, ls, inspect, logs, pause, resume, run-once
providerdiagnostic, ls, models
Othersproject, terminal, script, heartbeat, permit, usage, plugin, speech, hub

For workspaces as seen from the interface, see Workspaces and parallel development; for providers, see Agent providers.

Data folder

Argy Workbench keeps its configuration, state and log in a data folder of its own, never at the root of Argy Code's data. It is resolved in this order:

  1. the ARGY_WORKBENCH_HOME environment variable, when set;
  2. otherwise, the workbench subfolder of ARGY_DATA_DIR, when that variable is set;
  3. otherwise, the system default location.
SystemDefault location
macOS and Linux$XDG_DATA_HOME/argy/workbench, or ~/.local/share/argy/workbench if unset
Windows%APPDATA%\argy\data\workbench

A relative path, a file system root, a UNC network path or a Windows device path is refused. The --home option points a single command at another folder.

Configuration file

The configuration lives in config.json, at the root of the data folder ($ARGY_WORKBENCH_HOME/config.json). It is validated against a schema: an invalid value is refused rather than saved.

Rather than editing the file by hand, use the configuration commands:

argy-workbench daemon config get
argy-workbench daemon config get daemon.listen
argy-workbench daemon config set daemon.browserTools.enabled false
argy-workbench daemon config unset daemon.browserTools.enabled

config set checks the value against the schema before writing it.

Applying a change

Kind of settingTo apply it
Dynamic settings: MCP servers, browser tools, CORS, profiles, quotasargy-workbench daemon reload
Structural settings: main listen address, password, web interface, storage foldersargy-workbench daemon restart

reload applies dynamic settings without interrupting the service; structural settings require a restart.

Listen address and access to the service

The daemon.listen setting sets the service's listen address. By default it listens locally on 127.0.0.1:6767. The value accepts a comma-separated list of addresses or the path of a Unix socket; the first address is the main one. A Unix socket keeps the service off the network entirely.

As soon as the service listens anywhere other than locally, set a password with argy-workbench daemon set-password: it is strongly recommended. It is stored hashed in config.json, and clients present it in the Authorization: Bearer header.

Against DNS rebinding, the service checks the Host header of every request. Accepted names are set by daemon.hostnames; by default: localhost, *.localhost names and IP addresses.

The service also enforces a strict list of allowed network origins: an unapproved third-party destination is refused.

Browser and MCP tools

Three settings are on by default:

SettingEffect
daemon.mcp.enabledTurns on the service's MCP server.
daemon.mcp.injectIntoAgentsMakes the service's MCP tools available to agents.
daemon.browserTools.enabledMakes the browser tools available to agents.

A false value you have already written in config.json is respected: it is neither migrated nor overwritten.

Browser tools. Agents receive tools prefixed with browser_ to drive the built-in browser: tabs, navigation, page snapshot, screenshot, click, typing, scrolling, script evaluation, among others.

Watch out. Tabs driven by an agent share the Workbench browsing profile, and therefore the sessions already signed in within that browser. An agent can thus act on a site where you are authenticated. If that is not acceptable, turn the browser tools off:

argy-workbench daemon config set daemon.browserTools.enabled false
argy-workbench daemon reload

MCP orchestration tools. They let an agent create other agents, send them an instruction, check their status and activity, list, update, cancel, archive or stop them. Access to them can be restricted per provider profile.

With Argy Code. When Argy Workbench starts Argy Code, it turns off Argy Code's own browser tools and its navigator agent: the Workbench browser tools are used instead.

Service log

The service log is written to the log/ subfolder of the data folder:

$ARGY_WORKBENCH_HOME/log/daemon.log

It is the first file to check when the service does not start or an agent stops without explanation. See also Troubleshooting.

Choosing the Argy Code binary

Argy Workbench starts Argy Code with the argy binary, which you install yourself: see Install Argy Code. The binary used is resolved as follows:

  1. the ARGY_CODE_BIN environment variable, when set: the value global means the argy command found on the PATH, a path means that exact binary;
  2. otherwise, the argy command found on the PATH.

ARGY_CODE_BIN helps when several installations coexist on the workstation or when Argy Code is installed outside the PATH. Set it in the environment Argy Workbench starts with.

export ARGY_CODE_BIN=/opt/argy/bin/argy

Argy Workbench does not change the argy binary you installed. Updating it remains up to you, with argy upgrade.

Updates

ItemHow to update it
Desktop appThe update mechanism is off by default. It only turns on for an official signed package, and only queries the official Argy Workbench release channel. Otherwise, install the package provided by your Argy administrator or your Argy contact.
Local serviceA service managed by the app is updated with the app. It never updates itself from a public package registry.
argy-workbench CLIIt is not distributed on a public package registry: get it from your Argy administrator or your Argy contact.
Argy CodeSeparately from the Workbench, with argy upgrade. See Install Argy Code.

A development, local or unsigned build neither checks for nor downloads any update.

See also