Skip to content

CLI Reference

claudex [COMMAND]

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] [-m MODEL] [--print] [--dangerously-skip-permissions] [ARGS...]
ArgumentDescription
PROFILEProfile name, or auto for smart routing
PROMPTOptional prompt for non-interactive (one-shot) execution
-m, --model MODELOverride the default model for this session
--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
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
# 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.

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.

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.

Manage OAuth subscription authentication for provider profiles.

Terminal window
claudex auth login <PROVIDER>

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

For OpenAI, Claudex reads tokens from the Codex CLI config (~/.codex/auth.json). For Claude, it reads from ~/.claude. Other providers use a local callback server or device code flow.

Terminal window
# Log in to OpenAI (reads from Codex CLI)
claudex auth login openai
# Log in to Claude (reads from ~/.claude)
claudex auth login claude
# Log in to Google
claudex auth login google
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.

Manage the translation proxy server.

Terminal window
claudex proxy start [-p PORT] [-d]
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).

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.

Terminal window
claudex config [--init]
FlagDescription
--initCreate a new config file in the current directory

Without --init, shows the loaded config file path and search order.

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

Without --check, downloads and installs the latest version.