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 launchThis launches your default tool. To launch a specific tool:
melious launch opencodeSupported Tools
| Tool | Command | Integration | Recommended |
|---|---|---|---|
| OpenCode | opencode | Config file (JSON) | Yes |
| Claude Code | claude | Environment variables | — |
| Mistral Vibe | vibe | Config directory (TOML) | — |
OpenCode
Open-source terminal coding agent. Efficient token usage, fast, and fully featured.
What melious launch opencode does:
- Generates an
opencode.jsonconfig with Melious registered as a provider - Populates the models list with all available Melious models and their real context lengths
- Sets
OPENCODE_CONFIGandMELIOUS_API_KEYenvironment variables - Launches
opencode
Install:
curl -fsSL https://opencode.ai/install | bashnpm install -g opencode-aiRequires Node.js and npm on Windows.
Or install via the CLI:
melious tools install opencodeClaude 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:
- Sets Anthropic-compatible environment variables:
ANTHROPIC_BASE_URL→https://api.melious.aiANTHROPIC_AUTH_TOKEN→ your API keyANTHROPIC_MODEL→ your main modelANTHROPIC_SMALL_FAST_MODEL→ your lightweight model- Model tier mapping: opus → main, sonnet → secondary, haiku → lightweight
- Disables telemetry (
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1) - Sets a 50-minute timeout (
API_TIMEOUT_MS=3000000) - Launches
claude
Install:
curl -fsSL https://claude.ai/install.sh | bashpowershell -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:
- Generates
config.tomlwith Melious as an OpenAI-compatible provider - Creates a
.envfile with your API key - Sets
VIBE_HOMEto the config directory - Launches
vibe
Install:
curl -LsSf https://mistral.ai/vibe/install.sh | bashuv tool install mistral-vibeRequires uv on Windows.
Parameters
| Flag | Type | Default | Description |
|---|---|---|---|
--model | string | from config | Override main model |
--secondary | string | from config | Override secondary model |
--lightweight | string | from config | Override lightweight model |
--preset | string | from config | Routing preset (balanced, speed, price, eco) |
--no-install | bool | false | Don't prompt to install if tool is missing |
Pass-Through Arguments
Pass extra arguments to the underlying tool with --:
melious launch opencode -- --debugPer-Tool Model Overrides
Set a different model for a specific tool:
melious tools model opencode deepseek-v3.2This 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