CLI Reference
Global Usage
Section titled “Global Usage”claudex [OPTIONS] [COMMAND]| Option | Description |
|---|---|
--config <PATH> | Override config file path |
--version | Print version |
--help | Print help |
When run without a command, Claudex launches the TUI dashboard if profiles are configured, or shows a welcome message if no profiles exist.
Commands
Section titled “Commands”Run Claude Code with a specific provider profile.
claudex run <PROFILE> [PROMPT] [OPTIONS] [-- ARGS...]| Argument / Option | Description |
|---|---|
PROFILE | Profile name, or auto for smart routing |
PROMPT | Optional prompt for non-interactive (one-shot) execution |
-m, --model MODEL | Override the default model for this session |
--hyperlinks | Force enable OSC 8 terminal hyperlinks |
--print | Print the response and exit (non-interactive mode) |
--dangerously-skip-permissions | Skip all permission prompts (use with --print for CI/CD) |
ARGS... | Additional arguments passed to claude (after --) |
# Use Grok (interactive)claudex run grok
# Use Grok with a specific modelclaudex run grok -m grok-3-mini-beta
# Smart routingclaudex run auto
# Force terminal hyperlinksclaudex run grok --hyperlinks
# Non-interactive one-shot executionclaudex run grok "Explain this codebase" --print
# CI/CD pipeline usage (no prompts, no permissions)claudex run grok "Fix lint errors" --print --dangerously-skip-permissions
# Pass extra args to claudeclaudex run grok -- --verboseprofile
Section titled “profile”Manage provider profiles.
profile list
Section titled “profile list”claudex profile listList all configured profiles with their status, provider type, and model.
profile add
Section titled “profile add”claudex profile addInteractive wizard to add a new profile. Guides through provider selection, API key entry (with optional keyring storage), model selection, and connectivity testing.
profile show
Section titled “profile show”claudex profile show <NAME>Show details for a specific profile including all configuration fields.
profile remove
Section titled “profile remove”claudex profile remove <NAME>Remove a profile from the configuration.
profile test
Section titled “profile test”claudex profile test <NAME|all>Test connectivity for a specific profile or all profiles. Sends a lightweight request to the provider’s /models endpoint.
Manage OAuth subscription authentication for provider profiles.
auth login
Section titled “auth login”claudex auth login <PROVIDER> [OPTIONS]| Option | Description |
|---|---|
--profile <NAME> | Associate with a specific profile |
--enterprise-url <URL> | Custom enterprise server URL (for self-hosted GitLab, etc.) |
--headless | Use headless (device code) flow, skip browser launch |
Log in to a provider using OAuth. Supported providers: claude, openai, google, qwen, kimi, github, gitlab.
# Log in to OpenAI (reads from Codex CLI)claudex auth login openai --profile codex-sub
# Log in to Claude (reads from ~/.claude)claudex auth login claude
# Log in to Googleclaudex auth login google --profile gemini-sub
# Log in to GitLab with enterprise URLclaudex auth login gitlab --enterprise-url https://gitlab.mycompany.com
# Headless mode (no browser, device code only)claudex auth login github --headlessauth status
Section titled “auth status”claudex auth status [PROVIDER]Show the current authentication status. Without a provider argument, shows status for all configured OAuth profiles.
# Check all OAuth profilesclaudex auth status
# Check a specific providerclaudex auth status openaiauth refresh
Section titled “auth refresh”claudex auth refresh <PROVIDER>Manually refresh the OAuth token for a provider. Tokens are also refreshed automatically by the proxy when they expire.
auth logout
Section titled “auth logout”claudex auth logout <PROVIDER>Remove stored OAuth tokens for a provider from the system keyring.
Manage the translation proxy server.
proxy start
Section titled “proxy start”claudex proxy start [OPTIONS]| Flag | Description |
|---|---|
-p, --port PORT | Override proxy port (default: from config) |
-d, --daemon | Run as background daemon |
proxy stop
Section titled “proxy stop”claudex proxy stopStop the proxy daemon (sends SIGTERM via PID file).
proxy status
Section titled “proxy status”claudex proxy statusShow whether the proxy is running and on which port.
dashboard
Section titled “dashboard”claudex dashboardLaunch the TUI dashboard for real-time monitoring and quick-launch.
config
Section titled “config”Manage configuration files.
config show
Section titled “config show”claudex config showDisplay the loaded config file path, search order, and current configuration values.
config path
Section titled “config path”claudex config pathPrint only the resolved config file path.
config init
Section titled “config init”claudex config initCreate a new config file in the current directory from the built-in template.
config recreate
Section titled “config recreate”claudex config recreateRecreate the config file from config.example.toml, overwriting the existing config.
config edit
Section titled “config edit”claudex config editOpen the config file in your $EDITOR (or $VISUAL).
config validate
Section titled “config validate”claudex config validateValidate config syntax, profile references (backup_providers, router rules), and OAuth provider settings. Reports errors and warnings.
config get
Section titled “config get”claudex config get <KEY>Get a specific configuration value by key path (e.g., proxy_port, profiles.0.name).
config set
Section titled “config set”claudex config set <KEY> <VALUE>Set a specific configuration value by key path.
config export
Section titled “config export”claudex config exportExport the current merged configuration to stdout in TOML format.
Manage configuration sets (installable bundles of rules, skills, and MCP servers).
sets add
Section titled “sets add”claudex sets add <PATH>Install a configuration set from a local directory containing a manifest.json (or manifest.yaml).
sets remove
Section titled “sets remove”claudex sets remove <NAME>Remove an installed configuration set by name.
sets list
Section titled “sets list”claudex sets listList all installed configuration sets with their version, description, and component summary.
sets update
Section titled “sets update”claudex sets update <NAME> <PATH>Update an existing configuration set from a new manifest path.
sets show
Section titled “sets show”claudex sets show <NAME>Show detailed information about an installed configuration set, including all components.
update
Section titled “update”claudex update [OPTIONS]| Flag | Description |
|---|---|
--check | Only check for updates, don’t install |
Without --check, downloads and installs the latest version from GitHub Releases.