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

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# CLI quickstart

> Sign in with aiv, select a space, and connect Codex. Use the CLI to verify the Trace from a new task.

On the macOS or Linux host (x64 or arm64) running Codex, use `aiv` to sign in to an existing platform, confirm the target space, and connect Codex. Run a new task, then read back its Trace in that space. To start in your browser, see the [web quickstart](https://aivision.mintlify.site/en/web-quickstart.md). The [Windows x64 client](https://aivision.mintlify.site/en/guides/install-cli.md#install-windows-x64) can query an existing platform. Run `aiv connect` on the supported host.

> [!NOTE]
>
> Run integration commands on the machine running the Agent. First installation defaults to Full and collects supported inputs, outputs, and tool content. To filter content, read [Privacy mode](https://aivision.mintlify.site/en/guides/privacy.md) first and use `--collection-mode privacy`.

## 1. Prepare the platform and client

For an existing platform, [install the aiv CLI](https://aivision.mintlify.site/en/guides/install-cli.md). For a personal trial, use [All-in-One Personal Edition](https://aivision.mintlify.site/en/deployment/all-in-one.md) and install its matching `aiv` on the Agent machine. For other self-hosted setups, [choose a deployment method](https://aivision.mintlify.site/en/deployment/overview.md). Configure your Agent first, then follow its integration instructions for runtime requirements.

**Ready:** `aiv --version` displays a version, your Agent can complete tasks, the platform provides installer and plugin artifacts for the host, and you have the platform URL and account.

## 2. Sign in and select a Space

Use the platform Web URL that you open in a browser (`http://127.0.0.1:5174` for a default local deployment), and replace the email. Run only the tab matching your account state. Enter the password at the interactive prompt.

> [tab] Existing account
>
> ```bash theme={null}
> aiv auth login --endpoint https://vision.example.com --email you@example.com
> ```

> [tab] New account
>
> Enter your name and chosen password when prompted. Use this only when the server allows public registration. Successful registration signs you in and selects your personal Space.
>
> ```bash theme={null}
> aiv auth register --endpoint https://vision.example.com --email you@example.com
> ```

After success, check the account and Spaces:

```bash theme={null}
aiv auth status
aiv space list
```

The first login normally selects the personal Space. Signing in again to the same platform and account can retain the previously selected Space. Check `Current space` in the login output and `aiv space list`; use `aiv space use <space-uuid>` to switch.

## 3. Connect and run a task

```bash theme={null}
aiv connect codex --dry-run
aiv connect codex
```

Restart Codex, review and trust the new hooks, start a new session and complete a familiar small task. For other applications and Web installation, see [Agent integrations](https://aivision.mintlify.site/en/integrations/agents.md).

If installation fails, fix the reported problem and rerun `aiv connect codex` on the same machine, account and Space. Then restart the host and begin a new session. Reinstallation reuses the same Agent product in that Space.

## 4. Inspect real records

Select the Space, Agent and time range in the platform and open a Trace. For CLI checks, configure a query Key first:

> [accordion] Optional: query the same record from the CLI
>
> ```bash theme={null}
> aiv key create --name cli
> aiv query trace list --since 1h --limit 5 --agent-product Codex
> aiv agent status codex
> ```
>
> Administrators and developers can create Keys. Without that permission, use `aiv key import` to import an authorized Key through a hidden prompt.

Only real records confirm the collection path. A successful dry run does not prove that the host ran hooks or exported data. See [troubleshooting](https://aivision.mintlify.site/en/help/no-data.md) if records are missing.

## Completion checklist

* The Space selected in the platform matches the current CLI Space.
* You can find the Trace from your new task, rather than an older record from another machine.
* You can open calls and inspect status, duration, and reported usage. Content filtering is expected in Privacy mode.

Choose one call from this task and record its name, status, and duration. Check any captured input or output. Your first result is an observation that can be verified against this record; continue with the [Trace guide](https://aivision.mintlify.site/en/guides/traces.md).

For scripted queries or bulk export, continue with [CLI queries](https://aivision.mintlify.site/en/guides/cli.md).


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