Metadata-Version: 2.4
Name: omni-reason-client
Version: 1.0.2
Summary: Omni-Reason hosted API client with optional local model, data and benchmark commands
License-Expression: Apache-2.0
Project-URL: Homepage, https://omni-reason.com/
Project-URL: Documentation, https://platform.omni-reason.com/docs
Project-URL: Support, https://platform.omni-reason.com/request-access
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Omni-Reason client

Use Omni-Reason from your terminal or agent: sign in to Platform, submit a video
task, follow progress and download the result. The lightweight client requires
Python 3.11 or newer and has no third-party runtime dependencies.

## Install and run

Create a Python environment and install the client:

```sh
python3 -m venv .omni-venv
source .omni-venv/bin/activate
python -m pip install omni-reason-client
omni-reason --version
omni-reason login
omni-reason doctor
omni-reason example robot --output robot-result.mp4
```

The activation command above is for macOS/Linux. On Windows PowerShell, use
`.omni-venv\Scripts\Activate.ps1`. Approve the login code in your browser.
The example command downloads the official small input, submits its instruction
and saves your result. Hosted access is invitation-only, free and non-commercial.
[Request access](https://platform.omni-reason.com/request-access) before signing
up. Package installation does not grant an account or generation allowance.

The same release can also be installed from its official wheel file with
`python -m pip install /path/to/omni_reason_client-1.0.2-py3-none-any.whl`.

## Commands

`login`, `whoami`, `doctor`, `example`, `tv2v`, `jobs` and `logout` use Platform.
Use `omni-reason --help` or a command's `--help` for arguments. `--json` provides
structured output for scripts; place it before the hosted command.

| Command | Purpose |
| --- | --- |
| `login`, `whoami`, `logout` | Connect with browser approval, inspect your account, or revoke the current credential |
| `doctor` | Check account permissions, allowance and generation availability without creating a task |
| `example robot`, `example colorization` | Download a verified official example, generate and save the result |
| `tv2v` | Submit your own video, instruction and optional image or video reference |
| `jobs get`, `jobs watch` | Inspect a known task or wait for it to finish |
| `jobs download`, `jobs cancel` | Download a completed result or cancel a queued task |

```sh
omni-reason tv2v "Highlight the moving robot." --input input.mp4 --output result.mp4
omni-reason --json jobs get JOB_ID
```

Use `--start` and `--input-seconds` to select an input segment, and
`--output-seconds match` or a duration to control the output. `--reference`
accepts a supported image or video; video references also have
`--reference-start` and `--reference-seconds`. See the live documentation for
current duration, combined-capacity and account limits. `--dry-run` checks
local parameters without submitting; the server performs media validation.

The client writes an `.omni.json` receipt next to the chosen output path.
Keep it and repeat the same command to recover an interrupted submission.
`--no-wait` returns after submission; `jobs watch` and `jobs download` resume
later. Accepted jobs continue when the terminal closes. An existing output is
never overwritten; choose a new output path to intentionally start another task.

Successful status queries and cancellations exit with code 0. Waiting for a
failed or canceled task exits with code 2, as do input, authentication and
connection errors. A failed `doctor` readiness check also exits with code 2.

## Optional local components

The client discovers optional commands from separately installed packages:

| Commands | Package | Guide |
| --- | --- | --- |
| `model` | `omni-reason` | [Model](https://huggingface.co/Omni-Reason/Omni-Reason-1) |
| `data` | `omni-reason-tools` | [Data](https://huggingface.co/datasets/Omni-Reason/Omni-Reason-Data) |
| `benchmark` | `omni-reason-tools` | [Benchmark](https://huggingface.co/datasets/Omni-Reason/Omni-Reason-Bench) |

Install the components you need into the same Python environment and follow
their guides. Local inference uses your own hardware and separately obtained
model weights. Data access and component licenses apply independently of a
Platform account. Installing the client alone downloads no weights or PyTorch.
Server deployment and training use their separate component workflows.

For unattended hosted calls, provide `OMNI_REASON_API_KEY` through a protected
environment and select the intended origin with `--server`. Browser login
credentials are stored privately on your machine. Use `logout` or Console to
revoke a credential. Never put keys in source code or shared command logs.

## License and support

This client is licensed under Apache-2.0; the license text is included in the
package. Optional components, model weights and datasets retain their own
terms. The client license does not change the hosted service's access terms.
See the [documentation](https://platform.omni-reason.com/docs) for API usage,
authentication, task limits and troubleshooting. Contact:
[hokind@andrew.cmu.edu](mailto:hokind@andrew.cmu.edu).
