Skip to content

Reference

Command Reference ​

Every subcommand, flag and environment variable. oasis-agent --help prints the same list with defaults resolved for your machine.

Subcommands ​

CommandNeeds an endpointPurpose
(none)YesRun a turn: interactive REPL, one-shot, or background agent
serveYesSpeak the control protocol
connect <path>NoRelay stdin/stdout to a socket the agent is serving
checkNoRun conformance checks
auditNoProduce an audit report
sessionsNoList saved conversations
agentsNoList background agents
versionNoPrint the version
licenseNoPrint the licence this binary is used under
install [target]NoInstall a version and point the launcher at it
updateNoUpdate to the newest published version
uninstallNoRemove the installation, after listing what will go
doctorNoReport on the installation
setupNoRun first-run setup again

Commands marked "needs an endpoint: No" work on a binary that has never been pointed at a server. That is deliberate: choosing a conversation to resume, or assessing a machine, must not require a model.

serve ​

FlagPurpose
--stdioSpeak the protocol on stdin/stdout
--unix <path>Listen on a unix socket instead, created 0600. Conflicts with --stdio
--allow-host-mutationsAnswer the four host-reshaping methods: config.set, checks.run, audit.run, update.apply

check ​

FlagDefaultPurpose
--module <id>allOnly checks in this module, e.g. preempt-rt
--check <id>allOne check by id, e.g. l3.rt.preempt-rt-active
--subject <s>deviceOne of repo, artefact, device, endpoint
--target <t>this machine / cwdA hostname, a path, an address
--catalogue <dir>—Descriptor TOML layered over the built-in catalogue
--format <f>jsonOutput format. JSON is the only one
--list-modules—List the check modules this build has, then exit

audit ​

FlagDefaultPurpose
--profile <p>allall, or one module name
--subject <s>deviceOne of repo, artefact, device, endpoint
--target <t>this machine / cwdA hostname, a path, an address
--catalogue <dir>—Descriptor TOML layered over the built-in catalogue
--list-profiles—List the profiles this build can run, then exit

sessions ​

FlagDefaultPurpose
--hereoffOnly conversations from this directory
--limit <n>20How many to print

agents ​

FlagPurpose
--allInclude finished and failed agents
--cwd <dir>Only agents dispatched under this directory
--stop <id>Stop one by id
--jsonPrint as a JSON array and exit

version ​

FlagPurpose
-v, --verboseAlso print the commit and build date

Line 1 of the output is the bare version string. That is the contract scripts parse.

license ​

Prints the licence agreement in full. It takes no flags, and it returns before the config file is read, so the terms are readable on a machine that has never been configured.

install ​

bash
oasis-agent install latest      # newest published version
oasis-agent install 0.4.2       # a specific version

stable is not accepted. There is no promotion tier and no channel to choose.

uninstall ​

Lists what it will remove and asks first. A launcher you wrote yourself is never touched.

FlagPurpose
-y, --yesSkip the confirmation. Required when stdin is not a terminal
--dry-runPrint what would be removed, then stop
--keep-auditKeep ~/.oasis/audit.jsonl. On a customer device the record of every write the agent made may need to outlive the install

Mode selection ​

FlagMode
(none, stdin is a terminal)Interactive REPL
--replInteractive REPL, forced
-p, --print [prompt]One-shot. Omit the value to read from stdin
--bg, --backgroundDispatch as a detached background agent
-r, --resume [id]Resume a saved conversation
--log-file + --response-fifoHarness mode: driven by an embedding program

serve is the sixth mode; it is a subcommand rather than a flag.

Endpoint and model ​

FlagEnvironmentDefault
--base-url <url>OASIS_BASE_URLrequired
--model <name>OASIS_MODELqwen
--api-key <key>OASIS_API_KEYnone
--thinking-profile <p>OASIS_THINKING_PROFILEoff. One of off, creative, coding
--no-probe—Skip the startup context probe

Sandbox and permissions ​

FlagEnvironmentDefault
--cwd <dir>OASIS_CWDcurrent directory
--mode <mode>OASIS_MODEmanual. One of plan, manual, accept-edits, auto, dangerous
--plan—Shorthand for --mode plan
--skip-permissions—Approve every waivable request. Does not waive hard-stop tools
--actor <string>OASIS_ACTORnone. Stamped on every write in the audit trail

Context and compaction ​

FlagEnvironmentDefault
--context-window <n>OASIS_CONTEXT_WINDOWprobed from the endpoint, else the context_window config key, else 120 000
--max-prompt-tokens <n>—context-window − response-reserve
--response-reserve <n>—8 192

Tools and extensions ​

FlagEnvironmentPurpose
--mcp-config <path>OASIS_MCP_CONFIGLoad MCP servers at startup
--mcp-login—Run the interactive OAuth login for every configured HTTP server, then exit. Requires --mcp-config
--no-memory—No Memory tool and no memory briefing
--vision-capable—Required for ViewImage to do anything
--no-delegation-nudge—Suppress the hint to hand bulk reading to a subagent
--ethercat-acquire-bus <if>—Restrict EtherCAT acquisition to these interfaces. Repeatable

Harness mode ​

For embedding the agent in another program. See Harness Mode.

FlagPurpose
--log-file <path>Write the run's event stream to <path> as newline-delimited JSON. Requires --response-fifo
--response-fifo <path>Named pipe the agent reads permission verdicts from. Requires --log-file
--persistentServe every turn from one process instead of one per turn. Requires both flags above
--history-file <path>Conversation history to resume from, as an OpenAI-format JSON array

Session persistence ​

FlagPurpose
--no-sessionDo not save this conversation
-r, --resume [id]Resume a saved conversation. A unique prefix of the id is enough

Terminal ​

FlagEnvironmentPurpose
--no-colorNO_COLORDisable ANSI colour
--no-historyOASIS_AGENT_NO_HISTORY=1Disable persistent input history
--no-diffs—Show file edits as plain results
--no-collapse—Show every tool result in full

Configuration and diagnostics ​

FlagPurpose
--config <path>Explicit config file path
--show-configPrint the resolved configuration and which layer supplied each value, then exit
--cwd-hintName the working directory in the system prompt

Environment variables ​

VariableEquivalent flag
OASIS_BASE_URL--base-url
OASIS_MODEL--model
OASIS_API_KEY--api-key
OASIS_CWD--cwd
OASIS_MODE--mode
OASIS_ACTOR--actor
OASIS_CONTEXT_WINDOW--context-window
OASIS_THINKING_PROFILE--thinking-profile
OASIS_MCP_CONFIG--mcp-config
NO_COLOR--no-color
OASIS_AGENT_NO_HISTORY--no-history

Update and capability variables ​

These have no flag. They override the matching config-file key, for CI and containers where writing a config file is awkward. See Configuration.

VariableEffect
OASIS_DISABLE_AUTOUPDATERSet to any value to turn off the background auto-update and the startup check. Same effect as auto_update: false
OASIS_RELEASE_HOSTRelease store to resolve versions from. Overrides release_host
OASIS_NO_CAPABILITIESDo not grant the EtherCAT capabilities during an install. Same effect as grant_capabilities: false
OASIS_DEBUGSet to any value to print the server probe result to stderr at startup

Path variables ​

VariableOverrides
OASIS_ROOTThe installation root, ~/.oasis
OASIS_INSTALL_DIRThe launcher directory, ~/.local/bin
OASIS_AUDIT_FILEThe audit log, ~/.oasis/audit.jsonl
OASIS_MEMORY_DIRThe memory store
OASIS_MCP_TOKEN_STOREThe MCP token cache

Exit codes ​

CodeMeaning
0Success. For check and audit, nothing failed, including checks that could not be measured
1The run failed: configuration error, unreachable endpoint, unrecoverable turn error
2For check and audit: something failed the assessment
130Cancelled (Ctrl+C or SIGINT)

A background agent that stopped because it needs approval exits with a distinct code and is listed as blocked by oasis-agent agents.

Slash commands ​

Available inside the interactive REPL. See Interactive REPL.

/help, /expand, /cost, /plan, /jobs, /background, /agents, /status, /config, /restart, /update, /exit

software-defined automation