Skip to content

CLI quickstart

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Set up and run your first cloud agent via the Oz CLI in less than 5 minutes.

This guide walks you through the essentials to get up and running with the Oz CLI in less than 5 minutes: installing the CLI, authenticating, running your first local agent, and optionally connecting MCP servers to give the agent access to external tools.

Watch this short demo of the Oz CLI workflow:

If you already have the Warp desktop app installed, the CLI is included and available in Warp.

If not, see Installing the CLI for installation options for all platforms.

For local development and first-time setup, authenticate interactively using the oz login command.

For example, on macOS:

Terminal window
oz login

This command prints a sign-in URL in your terminal. Open the URL in your browser to login to Warp. Your credentials will be stored securely for future CLI use.

Interactive login works on both local and remote machines, and does not require API keys.

From any directory, run:

Terminal window
oz agent run --prompt "summarize this directory"

This uses the default agent profile, loads any available MCP servers, and executes the run locally. The output appears directly in your terminal.

What happens:

  • The agent runs locally in your current working directory.
  • The session is tracked on Warp’s backend for observability and collaboration.
  • The agent autonomously executes commands and streams output to your terminal.

Cloud agents run in a remote environment with your repositories cloned and dependencies installed, making them useful for tasks that need full codebase access.

If you haven’t already created an environment, run /create-environment in Warp or follow the Cloud Agents Quickstart. Then run the following command:

Terminal window
oz agent run-cloud --environment <ENV_ID> --prompt "Scan this repo for outdated dependencies"

Replace <ENV_ID> with your environment ID, which you can find by running oz environment list on the Oz CLI.

You can connect MCP servers to give the agent access to external tools like GitHub or Linear. Pass MCP configuration inline or from a file using the --mcp flag:

Terminal window
oz agent run --mcp '{"github": {"url": "https://api.githubcopilot.com/mcp/"}}' --prompt "Open a pull request that fixes TODOs in this repo"

See MCP Servers for all supported formats, including UUID references and multi-server configurations.

Once you’ve successfully set up and run your agent, explore other configurations and workflows with the Oz CLI:

Continue reading the Oz CLI reference to learn how to install the CLI on different platforms, authenticate in different environments, and configure agents for real-world workflows.