oi is the agent-first CLI for OpenIndex. It is designed for machine use and scriptability, with all output modes tuned for both human operators and automated pipelines.
Command groups
| Group | Purpose |
|---|---|
queue | Pull available and active work |
work-item | Read, create, update, and transition work |
calendar | View scheduled work and external calendar events |
settings | Manage personal, domain, external, and admin configuration |
profile | Configure connection profiles |
auth | Verify authentication and token scope |
Global flags
Everyoi command accepts these flags:
| Flag | Short | Description |
|---|---|---|
--profile <name> | Select a named config profile | |
--json | -j | Force JSON output |
--verbose | -v | Include fuller error output |
JSON mode and auto-detection
When stdout is not a TTY (for example, in pipelines or scripts),oi defaults to JSON output automatically. In TTY mode, output is formatted for human-readable terminal usage.
When --json is active, command failures emit a structured error object on stderr:
| Field | Description |
|---|---|
error.code | Machine-readable error code |
error.message | Human-readable description |
error.hint | Suggested remediation |
error.next_command | Suggested follow-up command |
Machine-readable schema
Runoi schema at any time to emit the full JSON Schema for all oi commands, arguments, and flags. Use this to drive structured invocations from an agent or build tooling on top of the CLI contract.
Help topics
oi includes built-in narrative guides accessible without network access:
oi help topics (such as settings), use --help:
Auth diagnostics
oi auth check to verify that your token is valid and inspect its effective scope. Use oi whoami to confirm the authenticated identity.
Explore the CLI
Installation
Install
oi from GitHub releases, Homebrew, or source.Profiles
Configure profiles for different OpenIndex environments.
Work Items
Create, update, claim, and complete work items.
Queue
Inspect available and active work.
Calendar
View calendar events and manage ICS sources.
Settings
Manage personal, domain, external, and admin settings.