Skip to content

CLI Reference

claudex [OPTIONS] [COMMAND]
OptionDescription
--config <PATH>Override config file path
--versionPrint version
--helpPrint help

When run without a command, Claudex launches the TUI dashboard if profiles are configured, or shows a welcome message if no profiles exist.

Run Claude Code with a specific provider profile.

Terminal window
claudex run <PROFILE> [PROMPT] [OPTIONS] [-- ARGS...]
Argument / OptionDescription
PROFILEProfile name, or auto for smart routing
PROMPTOptional prompt for non-interactive (one-shot) execution
-m, --model MODELOverride the default model for this session
--hyperlinksForce enable OSC 8 terminal hyperlinks
--printPrint the response and exit (non-interactive mode)
--dangerously-skip-permissionsSkip all permission prompts (use with --print for CI/CD)
ARGS...Additional arguments passed to claude (after --)
Terminal window
# Use Grok (interactive)
claudex run grok
# Use Grok with a specific model
claudex run grok -m grok-3-mini-beta
# Smart routing
claudex run auto
# Force terminal hyperlinks
claudex run grok --hyperlinks
# Non-interactive one-shot execution
claudex 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 claude
claudex run grok -- --verbose

Manage provider profiles.

Terminal window
claudex profile list

List all configured profiles with their status, provider type, and model.

Terminal window
claudex profile add

Interactive wizard to add a new profile. Guides through provider selection, API key entry (with optional keyring storage), model selection, and connectivity testing.

Terminal window
claudex profile show <NAME>

Show details for a specific profile including all configuration fields.

Terminal window
claudex profile remove <NAME>

Remove a profile from the configuration.

Terminal window
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.

Terminal window
claudex auth login <PROVIDER> [OPTIONS]
OptionDescription
--profile <NAME>Associate with a specific profile
--enterprise-url <URL>Custom enterprise server URL (for self-hosted GitLab, etc.)
--headlessUse headless (device code) flow, skip browser launch

Log in to a provider using OAuth. Supported providers: claude, openai, google, qwen, kimi, github, gitlab.

Terminal window
# 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 Google
claudex auth login google --profile gemini-sub
# Log in to GitLab with enterprise URL
claudex auth login gitlab --enterprise-url https://gitlab.mycompany.com
# Headless mode (no browser, device code only)
claudex auth login github --headless
Terminal window
claudex auth status [PROVIDER]

Show the current authentication status. Without a provider argument, shows status for all configured OAuth profiles.

Terminal window
# Check all OAuth profiles
claudex auth status
# Check a specific provider
claudex auth status openai
Terminal window
claudex auth refresh <PROVIDER>

Manually refresh the OAuth token for a provider. Tokens are also refreshed automatically by the proxy when they expire.

Terminal window
claudex auth logout <PROVIDER>

Remove stored OAuth tokens for a provider from the system keyring.

Manage the translation proxy server.

Terminal window
claudex proxy start [OPTIONS]
FlagDescription
-p, --port PORTOverride proxy port (default: from config)
-d, --daemonRun as background daemon
Terminal window
claudex proxy stop

Stop the proxy daemon (sends SIGTERM via PID file).

Terminal window
claudex proxy status

Show whether the proxy is running and on which port.

Terminal window
claudex dashboard

Launch the TUI dashboard for real-time monitoring and quick-launch.

Manage configuration files.

Terminal window
claudex config show

Display the loaded config file path, search order, and current configuration values.

Terminal window
claudex config path

Print only the resolved config file path.

Terminal window
claudex config init

Create a new config file in the current directory from the built-in template.

Terminal window
claudex config recreate

Recreate the config file from config.example.toml, overwriting the existing config.

Terminal window
claudex config edit

Open the config file in your $EDITOR (or $VISUAL).

Terminal window
claudex config validate

Validate config syntax, profile references (backup_providers, router rules), and OAuth provider settings. Reports errors and warnings.

Terminal window
claudex config get <KEY>

Get a specific configuration value by key path (e.g., proxy_port, profiles.0.name).

Terminal window
claudex config set <KEY> <VALUE>

Set a specific configuration value by key path.

Terminal window
claudex config export

Export the current merged configuration to stdout in TOML format.

Manage configuration sets (installable bundles of rules, skills, and MCP servers).

Terminal window
claudex sets add <PATH>

Install a configuration set from a local directory containing a manifest.json (or manifest.yaml).

Terminal window
claudex sets remove <NAME>

Remove an installed configuration set by name.

Terminal window
claudex sets list

List all installed configuration sets with their version, description, and component summary.

Terminal window
claudex sets update <NAME> <PATH>

Update an existing configuration set from a new manifest path.

Terminal window
claudex sets show <NAME>

Show detailed information about an installed configuration set, including all components.

Terminal window
claudex update [OPTIONS]
FlagDescription
--checkOnly check for updates, don’t install

Without --check, downloads and installs the latest version from GitHub Releases.