--- name: cli-keys description: Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration. --- ## Overview Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration. ## Quick install ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `keys` **Example:** ```bash omniroute keys ``` ### `keys add [apiKey]` **Flags:** - `--stdin` **Example:** ```bash omniroute keys add [apiKey] ``` ### `keys list` **Flags:** - `--json` **Example:** ```bash omniroute keys list ``` ### `keys remove ` **Flags:** - `--yes` **Example:** ```bash omniroute keys remove ``` ### `keys regenerate ` **Flags:** - `--yes` **Example:** ```bash omniroute keys regenerate ``` ### `keys revoke ` **Flags:** - `--yes` **Example:** ```bash omniroute keys revoke ``` ### `keys reveal ` **Example:** ```bash omniroute keys reveal ``` ### `keys usage ` **Flags:** - `--limit ` **Example:** ```bash omniroute keys usage ``` ### `keys policy` **Example:** ```bash omniroute keys policy ``` ### `keys show ` **Example:** ```bash omniroute keys show ``` ### `keys set ` **Flags:** - `--rate-limit ` - `--max-cost ` - `--allowed-models ` **Example:** ```bash omniroute keys set ``` ### `keys expiration` **Example:** ```bash omniroute keys expiration ``` ### `keys list` **Flags:** - `--days ` - `--json` **Example:** ```bash omniroute keys list ``` ### `keys rotate ` **Flags:** - `--grace-period ` - `--yes` **Example:** ```bash omniroute keys rotate ``` ### `oauth` **Example:** ```bash omniroute oauth ``` ### `oauth providers` **Example:** ```bash omniroute oauth providers ``` ### `oauth start` **Flags:** - `--no-browser` - `--import-from-system` - `--social ` - `--timeout ` **Example:** ```bash omniroute oauth start ``` ### `oauth status` **Flags:** - `--provider ` **Example:** ```bash omniroute oauth status ``` ### `oauth revoke` **Flags:** - `--connection-id ` - `--yes` **Example:** ```bash omniroute oauth revoke ```