--- name: cli-setup description: Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands.
Overview
Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands.
Quick install
npm install -g AIRoute # or: npx AIRoute
AIRoute --version
Subcommands
autostart
Example:
AIRoute autostart
autostart enable
Example:
AIRoute autostart enable
autostart disable
Example:
AIRoute autostart disable
autostart toggle
Example:
AIRoute autostart toggle
autostart status
Example:
AIRoute autostart status
config
Show or update CLI tool configuration
Example:
AIRoute config
config list
List all CLI tools and config status
Flags:
--json
Example:
AIRoute config list
config get <tool>
Show current config for a tool
Flags:
--json
Example:
AIRoute config get <tool>
config set <tool>
Write config for a tool
Flags:
--model <model>--non-interactive--yes
Example:
AIRoute config set <tool>
config validate <tool>
Validate config format without writing
Flags:
--model <model>--json
Example:
AIRoute config validate <tool>
config opencode
Generate OpenCode config (alias for
Flags:
--model <model>--non-interactive--yes
Example:
AIRoute config opencode
config lang
Example:
AIRoute config lang
config get
Flags:
--json
Example:
AIRoute config get
config set <code>
Flags:
--force
Example:
AIRoute config set <code>
config list
Flags:
--json
Example:
AIRoute config list
env
Show and manage environment variables
Example:
AIRoute env
env show
Show current environment variables
Flags:
--json
Example:
AIRoute env show
env get <key>
Get a single environment variable
Example:
AIRoute env get <key>
env set <key> <value>
Set an environment variable (current session only)
Example:
AIRoute env set <key> <value>
setup
Flags:
--password <value>--add-provider--provider <id>--provider-name <name>--api-key <value>--default-model <model>--provider-base-url <url>--test-provider--non-interactive--list
Example:
AIRoute setup
update
Flags:
--check--apply--changelog--dry-run--no-backup--yes
Example:
AIRoute update