← Back to Learn/Setting Up Opta CLI
CLIGetting Started

Setting Up Opta CLI

Install and configure the Opta CLI for running AI workflows, agents, and browser automation from the terminal.

Updated 2026-03-01

What is Opta CLI?

The Opta CLI is a TypeScript-based command-line tool for running AI workflows, browser automation, and agent orchestration. It connects to your local LMX server or falls back to configured cloud providers.

Installation

Install via npm globally or per-project. The CLI is available as opta-cli in the npm registry.

npm install -g @opta/cli

Connecting to LMX

By default the CLI looks for a local LMX server at http://localhost:1234. Configure this with the OPTA_LMX_URL environment variable or via the config file.

export OPTA_LMX_URL=http://localhost:1234