Melious
CLI

Command Reference

Complete reference for all Melious CLI commands, flags, and configuration

Command Reference

All Commands

Authentication

CommandDescription
melious auth loginSet up authentication (interactive)
melious auth statusShow authentication status
melious auth logoutRemove credentials

Configuration

CommandDescription
melious config showShow full configuration
melious config get <key>Read a config value
melious config set <key> <value>Set a config value
melious config editOpen config in editor
melious config resetReset to defaults

Models

CommandDescription
melious modelsList available models
melious models info <model-id>Show model details

Flags for melious models:

FlagTypeDefaultDescription
--categorystringFilter: chat, embedding, image, tts, stt
--sortstringnameSort by: name, context

See the full model catalog at Models or browse melious.ai/hub.

Run

CommandDescription
melious run [prompt]Send a prompt to the API
melious run -iInteractive chat mode

See Chat & Prompts for all flags and examples.

Diff

CommandDescription
melious diffReview unstaged changes
melious diff --stagedReview staged changes
melious diff <ref>Review a branch comparison or commit

See Code Review for all flags and examples.

Image

CommandDescription
melious image [prompt]Generate an image from a text prompt

See Image Generation for all flags and examples.

Launch

CommandDescription
melious launch [tool]Start a coding tool with Melious

See Coding Tools for all flags, tool details, and examples.

Tools

CommandDescription
melious toolsShow status of supported tools
melious tools install [tool]Install a coding tool (--all for all)
melious tools checkCheck tools and prerequisites
melious tools update [tool]Update installed tool(s)
melious tools info <tool>Show tool details
melious tools model <tool> [model]Get or set per-tool model override
melious tools diagnose [tool]Run diagnostics and offer fixes
melious tools fix-pathAdd tool directories to PATH

See Managing Tools for details.

Usage

CommandDescription
melious usageShow usage summary
melious usage historyShow recent usage history
melious usage keysShow per-API-key breakdown
melious usage envShow environmental impact

See Usage & Impact for details.

Utility

CommandDescription
melious pingTest API connection (shows latency and model count)
melious versionShow version (--verbose for build details)
melious updateUpdate the CLI (--check to only check)
melious uninstallRemove melious from your system (--yes to skip prompts)
melious setupRe-run the full setup wizard
melious completion <shell>Generate shell completions

Global Flags

These flags work with every command:

FlagTypeDefaultDescription
--api-keystringAPI key for this invocation
--jsonboolfalseJSON output (where supported)
--no-colorboolfalseDisable colored output
--verboseboolfalseVerbose output
--quietboolfalseMinimal output

Environment Variables

VariableDescription
MELIOUS_API_KEYAPI key (takes precedence over credentials file)
NO_COLORDisable colored output (no-color.org)
VISUALPreferred editor for config edit
EDITORFallback editor for config edit

Set by Launchers

These are set automatically when you use melious launch:

VariableSet byDescription
OPENCODE_CONFIGOpenCodePath to generated OpenCode config
ANTHROPIC_BASE_URLClaude CodeMelious API base URL
ANTHROPIC_AUTH_TOKENClaude CodeAPI key as Bearer token
ANTHROPIC_MODELClaude CodeMain model
ANTHROPIC_SMALL_FAST_MODELClaude CodeLightweight model
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICClaude CodeDisables telemetry
API_TIMEOUT_MSClaude CodeRequest timeout (3000000ms)
VIBE_HOMEVibePath to Vibe config directory

Routing Presets

PresetDescription
balancedDefault. Balanced cost, speed, and quality
speedPrioritize low latency
pricePrioritize lowest cost
ecoPrioritize renewable energy and low carbon

Applied via --preset flag or defaults.preset config. Internally adds a suffix to the model ID (e.g., model:speed).


Shell Completions

Generate completion scripts for your shell:

# Add to ~/.bashrc for persistent completions
melious completion bash >> ~/.bashrc
source ~/.bashrc
# Enable completions if not already
echo "autoload -U compinit; compinit" >> ~/.zshrc

# Install completion
melious completion zsh > "${fpath[1]}/_melious"
source ~/.zshrc
melious completion fish > ~/.config/fish/completions/melious.fish
# Add to $PROFILE for persistent completions
melious completion powershell >> $PROFILE

Completions are context-aware — model names, preset names, and tool names are completed dynamically.


File Locations

PathContents
~/.melious/Melious CLI data directory
~/.melious/bin/meliousCLI binary
~/.melious/config.jsonConfiguration
~/.melious/credentials.jsonAPI key and auth data
~/.melious/tool-configs/Per-tool generated configs
~/.melious/update-state.jsonCached update check state

On this page