Skip to content
openlaunch
Esc
↑↓navigate↵open⌘Jpreview
On this page

ol command-line client

Install ol on your PATH, connect an agent API credential, discover granted functions and follow device action results.

ol is the installed Node command-line client for the same API used by MCP and the console. It prints JSON for agents and scripts. It requires Node 24+, npm, curl and Python 3 on macOS or Linux.

Install once

curl -fsSL https://www.openlaunch.dev/install-cli.sh | bash

The installer checks the SDK archive against the deployed SHA-256 manifest and installs ol, openlaunch-agent and openlaunch-device in ~/.local/bin. It adds that directory to zsh, bash, sh or fish configuration without sudo. Open a new terminal and restart your agent application so it inherits the updated PATH. An agent running as another user needs its own installation and credentials. A sandbox may require its own PATH configuration.

ol --version
ol --help

~/.local/bin/ol works immediately in the current terminal. Rerun the installer to update to the checked deployment. It preserves existing shell configuration and refuses to overwrite unrelated executables. Inspect the script and download manifest first if desired.

Connect an agent

ol login --agentid signs in through AgentID in your browser: the CLI opens the console sign-in page, AgentID verifies the agent’s identity, and a one-time code returns to a local loopback callback for a PKCE exchange. The PKCE verifier and the bearer credential never appear in URLs or logs; the code is delivered only to that exact local callback. The saved credential is identity-bound, expires after 24 hours, and is stored in ~/.config/openlaunch/agent.json with private file permissions. It carries an all-functions policy pointing at your live membership, so owner-set exclusions, role changes and revocation apply immediately.

To operate in a specific workspace, run ol login --agentid --workspace WORKSPACE_ID (get the ID from workspace_list over MCP, the workspaces API, or the console). Joining a workspace does not auto-select it. --no-open prints the sign-in URL instead of launching a browser, which suits remote or headless terminals where you can open the URL elsewhere.

Alternatively, ol login prompts for a pasted ol_agent_ credential from Connections → API. Login verifies it through read-only function discovery and saves it in the same private file. It creates no tokens or grants. Device setup tokens and owner sessions cannot log in to ol. Keep this private file out of source control, shared folders and agent prompts.

For a custom service origin, use ol login --url https://your-service.example (combine it with --agentid as needed). OPENLAUNCH_AGENT_TOKEN from a secret store overrides saved login; OPENLAUNCH_URL and OPENLAUNCH_WORKSPACE are optional overrides. OAuth-aware MCP hosts continue to manage their own OAuth connection.

An empty list means this connection currently has no visible granted functions. Being online does not give an agent access to a selected-functions connection. ChatGPT through Executor uses Executor’s OAuth grant; the CLI uses its own credential.

Workspace and management commands

With an AgentID login (ol login --agentid), ol also exposes the compact management surface. Without it, these commands explain what is missing:

ol status                        # Current login, workspace, role and access
ol workspace list                # Workspaces this identity belongs to
ol workspace join                # Accept a one-time invitation (hidden prompt)
ol agents list                   # List workspace agent members
ol agents invite NAME [--role operator|administrator] [--ttl SECONDS]
ol agents revoke AGENT_ID
ol access                        # This connection's effective access policy
ol access policies               # List workspace access policies
ol access set POLICY_JSON        # Replace one principal's policy (mode, exclusions, role, expiry)
ol onboarding                    # Setup readiness and next steps
ol setup token [NAME] [--ttl SECONDS]
ol connections list | create NAME [--ttl SECONDS] [--access read|act] | revoke CONNECTION_ID
ol devices revoke DEVICE_ID

ol workspace join requires an AgentID login and prompts privately for the ol_inv_ invitation code (or reads OPENLAUNCH_INVITATION_CODE from the environment); after joining, run ol login --agentid --workspace WORKSPACE_ID to target the new workspace. Management commands require the owner or a delegated administrator; only the owner can grant the administrator role. Secrets are prompted for or read from environment variables — never passed as visible arguments in normal use, and never written to logs.

Invoke and follow a result

Use a device ID and function from the live discovery output. For an approved health check:

ol call DEVICE_ID device.health
ol actions watch ACTION_ID

The call returns an action receipt and idempotency key. Copy its action ID into watch. A new action gets a fresh key; after an uncertain request failure, retry identical arguments with the reported --key. Expiry defaults to 30 seconds; --ttl accepts 1–300 seconds.

For a custom function, pass its exact JSON object arguments:

ol functions list --device DEVICE_ID
ol call DEVICE_ID custom.sensor.read '{"channel":1}'
ol actions get ACTION_ID
ol actions cancel ACTION_ID

The sensor call is an example: it works only if your adapter implements and advertises that schema and the owner grants it. Cancellation succeeds only before dispatch. watch prints status changes until a terminal result or timeout. queued and received are pending; unknown requires inspecting the device before issuing more work. A receipt cannot prove physical hardware behavior on its own.

Disconnect

ol logout

Logout removes this computer’s saved credential. Revoke the API connection in Connections to stop its server access and remove its grants. An environment-supplied token remains active until separately cleared or revoked.

See the end-to-end API guide, endpoint reference and agent MCP setup.

Was this page helpful?