Melious
CLI

Melious CLI

How you use Melious from a terminal — prompts, code review, image generation, and handing off to coding tools like OpenCode and Claude Code. One key, one config, one place to see what you spent.

This page takes you from "nothing installed" to a first response in under a minute. Everything else in the section links out from the end.

Install

curl -fsSL https://cdn.melious.ai/install.sh | bash
irm https://cdn.melious.ai/install.ps1 | iex
curl -fsSL https://cdn.melious.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Installs to ~/.melious/bin/ and adds it to your PATH. No sudo, no admin prompt — we keep it out of system directories so uninstall is a one-liner. Check it landed:

melious version

Authenticate

Log in

melious auth login

The CLI offers to open melious.ai/account/api/keys, then prompts you to paste a key that starts with sk-mel-. It calls the API to verify before saving, so you find out you typo'd right away — not on your first real request.

Send a first prompt

melious run "Name three Hanseatic cities."

Streams by default. If you get Hamburg, Lübeck, and Bremen back, routing is happy.

Hand off to a coding tool

melious launch

This generates the right config for your default tool, sets the environment, and starts it. OpenCode is the default — the Claude Code handoff works too, and we'll tell you when it'll cost more than you might expect.

Running bare melious

With no subcommand, you get an interactive menu — status, models, config, launchers, updates. Good entry point if you haven't memorized the commands yet:

melious

Updates

Auto-checks once a day in the background. To update now:

melious update

Append --check to see whether a new version exists without installing it.

Uninstall

melious uninstall

You get a menu of what to remove: the binary, credentials, config, generated tool configs, the update cache, or the whole ~/.melious/ directory. Use --yes to skip the prompts and take everything.

What's in this section

  • Configuration — auth, config file layout, and every key with its default
  • Chat and promptsmelious run, interactive mode, file context, piping, sessions
  • Code reviewmelious diff against working tree, staged changes, branches, or a single commit
  • Image generationmelious image and inline terminal preview
  • Coding tools — launching OpenCode, Claude Code, or Vibe with Melious already wired up
  • Managing tools — install, update, diagnose, and PATH fixes
  • Command reference — every command, flag, env var, and file path on one page

On this page