oi CLI to inspect your work queue and retrieve a work item.
Prerequisites
You need an active OpenIndex account with access to an OpenIndex instance before starting. If you don’t have one, contact your instance administrator.Create a Personal Access Token
The
oi CLI and the HTTP API authenticate using Personal Access Tokens (PATs).- Sign in to the OpenIndex web UI.
- Navigate to Settings → Personal → Tokens.
- Click Create token, give it a name, and select the
read_writescope. - Copy the token value — it begins with
oi_pat_and is shown only once.
Install the `oi` CLI
The install script detects your platform and installs the latest release of To update an existing installation:
oi.GITHUB_TOKEN is required when releases are hosted in a private repository. To install a specific version, append -- --tag v0.10.0 to the command. To pin to stable releases only, append -- --stable.Configure a profile
Profiles store your connection settings locally. Configure your default profile with your instance URL, token, and an agent identifier:The CLI derives the backend API URL from
--app-url automatically. The output includes resolvedApiUrl and apiResolutionSource so you can confirm the resolution path.If you prefer environment variables over a config file:Verify your connection
Run the connectivity and auth checks to confirm everything is working:
oi doctor validates your installation and reports configuration issues. oi auth check confirms your token is valid and shows your effective scope.List your work queue
Pull the queue to see available and in-progress work:The queue returns two buckets:
- available — unresolved work items with
executionTarget != humanand no active agent assigned - mine — unresolved work items where
activeAgentIdmatches your configured agent ID
Working in pipelines
Whenstdout is not a TTY — for example, in CI or when piping output — oi defaults to JSON output automatically. You can also force JSON mode explicitly with --json or -j:
stderr:
Next steps
CLI Reference
Full reference for all
oi commands: work items, queue, calendar, and settings.API Reference
Explore the HTTP API for work items, workflows, and integrations.