Synopsis
Description
operator agent starts the agent and connects you to it from your terminal. No gateway, no messaging channel — just direct access to the agent loop.
There are two modes:
- One-shot mode (with
-m): send a single message, receive one response, and exit. - Interactive mode (without
-m): start a persistent readline session. The agent remembers the conversation within the session. Typeexitorquit, or pressCtrl+Cto end the session.
$TMPDIR/.operator_history) and is limited to 100 entries. If readline is unavailable, the agent falls back to a simple stdin reader.
Session history is keyed by the --session flag. Two invocations with the same session key share the same conversation context.
Options
Send a single message and exit (non-interactive mode). Shorthand:
-m.Session key used to scope conversation history. Use different session keys to maintain separate conversations. Shorthand:
-s.Override the model for this invocation. Accepts the
model_name short alias as defined in model_list in your config.json (e.g. claude-sonnet-4.6, gpt4). If not set, the model defined in agents.defaults.model_name is used.Enable debug-level logging. Shorthand:
-d.Examples
Send a one-shot message:Session keys
Session keys follow a<scope>:<name> convention, though any string is valid. The default is cli:default. Separate conversations can be maintained in parallel by using different keys:
Session history is held in memory during the process lifetime. It is not persisted to disk between
operator agent invocations. For persistent memory across sessions, the agent uses the memory tools to write to the workspace.Related commands
operator onboard— set up config before first useoperator gateway— run the agent as a persistent daemon connected to messaging channelsoperator auth login— authenticate with a provider if you have not set an API keyoperator skills— install skills the agent can use