Skip to main content

Installation

Verify the installation:

Authentication

Before using the CLI, set up your API key:

Global Options

These options are available on all commands:

Commands

openmodex chat

Interactive chat with streaming output.
In interactive mode, type your messages and press Enter to send. The assistant response streams in real-time. Type exit or press Ctrl+C to quit.

openmodex models

List, inspect, and compare available models.

openmodex completions

Create text completions.

openmodex embeddings

Create text embeddings.

openmodex config

Manage CLI configuration stored in ~/.openmodex/config.json.

openmodex api-keys

Manage API keys from the command line.

openmodex auth

Manage authentication state.

Examples

Pipe input from another command

Use JSON output for scripting

Switch between models quickly