Skip to main content
The oz agent command is the entry point for running AI coding agents. Use oz agent run to launch an agent in your local terminal session, or oz agent run-cloud to dispatch a headless agent to a cloud environment. You can also list available agent configurations and manage agent profiles from this command group.

Synopsis

Subcommands


oz agent run

Runs a new Oz agent in your current terminal session. You must supply either --prompt or --saved-prompt (or --skill) to specify what the agent should do.
Aliases: oz agent r

Flags

string
The prompt for the agent to carry out. Mutually exclusive with --saved-prompt.Short form: -p
string
The ID of a saved AI prompt to run. Mutually exclusive with --prompt.
string
Use a skill as the base prompt for the agent. Format: skill_name, repo:skill_name, or org/repo:skill_name. Skills are searched in .agents/skills/, .warp/skills/, .claude/skills/, and .codex/skills/ directories. When combined with --prompt, the skill provides the base context and the prompt is the specific task.
string
Override the base model for this run. Use oz model list to see available model IDs.
string
A human-readable name for this agent task.Short form: -n
string
Working directory for the agent. Defaults to the current directory.Short form: -C
string
Cloud environment to use, identified by ID.Short form: -e
string
MCP server to start before executing the agent. Accepts a path to a JSON config file or inline JSON. Repeatable — specify multiple times to include multiple servers.
boolean
Enable computer use capabilities for this agent run. Mutually exclusive with --no-computer-use.
boolean
Disable computer use capabilities for this agent run. Mutually exclusive with --computer-use.
string
Continue an existing cloud conversation by ID.
string
Agent profile ID to configure the terminal session.
boolean
Disable the end-of-run workspace snapshot upload.
string
Maximum time to wait for the end-of-run snapshot upload (e.g. 5m).

Examples


oz agent run-cloud

Dispatches an Oz agent to run headlessly in a cloud environment. The agent runs asynchronously — you do not need to keep your terminal open. Use oz run list and oz run get to check the results.
Aliases: oz agent ra, oz agent run-ambient

Flags

string
The prompt for the agent to carry out. Mutually exclusive with --saved-prompt.Short form: -p
string
The ID of a saved AI prompt to run. Mutually exclusive with --prompt.
string
Use a skill as the base prompt for the agent. Format: repo:skill_name or org/repo:skill_name. The skill is resolved at runtime in the agent’s cloud environment.
string
Override the base model for this run. Use oz model list to see available model IDs.
string
A human-readable name for this agent task.Short form: -n
string
Cloud environment to run the agent in, identified by environment ID.Short form: -e
boolean
Run the agent without a cloud environment. Not recommended for most use cases.
string
MCP server to start before executing the agent. Accepts a path to a JSON config file or inline JSON. Repeatable.
boolean
Enable computer use capabilities for this run.
boolean
Disable computer use capabilities for this run.
boolean
Open the agent’s session in Warp once it becomes available.
string
Continue an existing cloud conversation by ID.
string
Path to a file to attach to the agent query. Repeatable — specify up to 5 times.
string
Where the job should be hosted. Set to warp (or omit) to run on Warp’s infrastructure. Any other value is matched against a self-hosted worker name.
boolean
Disable the end-of-run workspace snapshot upload.

Examples


oz agent list

Lists all available agent configurations, optionally scoped to a specific GitHub repository.

Flags

string
List agent configurations from a specific GitHub repository. Format: owner/repo or https://github.com/owner/repo.Short form: -r

Examples


oz agent profile list

Lists available agent profiles that can be used to configure the terminal session for an agent run.