Melious
CLI

Coding Tools

Launch coding tools like OpenCode, Claude Code, and Vibe through Melious

Coding Tools

The melious launch command configures a coding tool with Melious API routing, model selection, and your API key, then starts it.

melious launch

This launches your default tool. To launch a specific tool:

melious launch opencode

Supported Tools

ToolCommandIntegrationRecommended
OpenCodeopencodeConfig file (JSON)Yes
Claude CodeclaudeEnvironment variables
Mistral VibevibeConfig directory (TOML)

OpenCode

Open-source terminal coding agent. Efficient token usage, fast, and fully featured.

What melious launch opencode does:

  1. Generates an opencode.json config with Melious registered as a provider
  2. Populates the models list with all available Melious models and their real context lengths
  3. Sets OPENCODE_CONFIG and MELIOUS_API_KEY environment variables
  4. Launches opencode

Install:

curl -fsSL https://opencode.ai/install | bash
npm install -g opencode-ai

Requires Node.js and npm on Windows.

Or install via the CLI:

melious tools install opencode

Claude Code

Anthropic's agentic coding tool.

Claude Code uses significantly more tokens with third-party providers. Expect higher costs compared to OpenCode or Vibe.

What melious launch claude-code does:

  1. Sets Anthropic-compatible environment variables:
    • ANTHROPIC_BASE_URLhttps://api.melious.ai
    • ANTHROPIC_AUTH_TOKEN → your API key
    • ANTHROPIC_MODEL → your main model
    • ANTHROPIC_SMALL_FAST_MODEL → your lightweight model
    • Model tier mapping: opus → main, sonnet → secondary, haiku → lightweight
  2. Disables telemetry (CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1)
  3. Sets a 50-minute timeout (API_TIMEOUT_MS=3000000)
  4. Launches claude

Install:

curl -fsSL https://claude.ai/install.sh | bash
powershell -ExecutionPolicy ByPass -c "irm https://claude.ai/install.ps1 | iex"

Mistral Vibe

Mistral's open-source terminal coding agent. Python-based with multi-provider support.

What melious launch vibe does:

  1. Generates config.toml with Melious as an OpenAI-compatible provider
  2. Creates a .env file with your API key
  3. Sets VIBE_HOME to the config directory
  4. Launches vibe

Install:

curl -LsSf https://mistral.ai/vibe/install.sh | bash
uv tool install mistral-vibe

Requires uv on Windows.


Parameters

FlagTypeDefaultDescription
--modelstringfrom configOverride main model
--secondarystringfrom configOverride secondary model
--lightweightstringfrom configOverride lightweight model
--presetstringfrom configRouting preset (balanced, speed, price, eco)
--no-installboolfalseDon't prompt to install if tool is missing

Pass-Through Arguments

Pass extra arguments to the underlying tool with --:

melious launch opencode -- --debug

Per-Tool Model Overrides

Set a different model for a specific tool:

melious tools model opencode deepseek-v3.2

This override persists in your config and is applied every time you launch that tool. See Managing Tools for more details.


Set Default Tool

Change which tool melious launch starts by default:

melious config set defaults.tool opencode

On this page