> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vlm.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> Install and configure the VLM Run CLI

## Installation

The CLI ships with the VLM Run Python SDK. `typer`, `rich`, and `openai` are base dependencies. A plain install includes the full CLI, including [`vlmrun gw`](https://docs.vlm.run/cli/gateway).

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
pip install -U vlmrun
```

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
vlmrun --version
```

## Configuration

### Quick Setup

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
vlmrun config init
vlmrun config set --api-key "your-api-key"
```

Configuration is stored at `~/.vlmrun/config.toml`.

### Environment Variables

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
export VLMRUN_API_KEY="your-api-key"
export VLMRUN_BASE_URL="https://api.vlm.run/v1"  # Optional
```

### Managing Config

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
# Show current configuration
vlmrun config show

# Set values
vlmrun config set --api-key "your-api-key"
vlmrun config set --base-url "https://api.vlm.run/v1"

# Unset values
vlmrun config unset --api-key
vlmrun config unset --base-url

# Re-initialize (overwrite existing)
vlmrun config init --force
```

## Global Options

Every command accepts these options:

| Option | Description |
| - | - |
| `--api-key TEXT` | API key (overrides config/env) |
| `--base-url TEXT` | API base URL (overrides config/env) |
| `--debug` | Enable debug mode |
| `-v, --version` | Show version and exit |
| `--help` | Show help and exit |

## Commands

| Command | Description |
| - | - |
| [`chat`](https://docs.vlm.run/cli/chat) | Chat with Orion to process images, videos, and documents |
| [`execute`](https://docs.vlm.run/cli/execute) | Execute agents with files, skills, and structured output |
| [`generate`](https://docs.vlm.run/cli/generate) | Generate structured predictions from files |
| [`executions`](https://docs.vlm.run/cli/executions) | List and retrieve agent execution results |
| [`predictions`](https://docs.vlm.run/cli/predictions) | List and retrieve prediction results |
| [`files`](https://docs.vlm.run/cli/files) | Upload, list, retrieve, and delete files |
| [`skills`](https://docs.vlm.run/cli/skills) | Create, list, lookup, update, and download skills |
| [`hub`](https://docs.vlm.run/cli/hub) | Browse available domains and JSON schemas |
| [`models`](https://docs.vlm.run/cli/models) | List supported models |
| [`gateway`](https://docs.vlm.run/cli/gateway) | Run OpenAI-compatible OCR / VLM models on the VLM Run Gateway (alias `gw`) |
| [`config`](https://docs.vlm.run/cli/config) | Manage CLI configuration |

## Shell Completion

```bash theme={"theme":{"light":"github-light","dark":"dark-plus"}}
# Install completion
vlmrun --install-completion

# Show completion script (to customize)
vlmrun --show-completion
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.