# omp-dashscope

Alibaba DashScope (ModelScope) provider for [Oh My Pi](https://github.com/oh-my-pi) — routes Qwen3 / GLM-5 / Kimi models through the OpenAI-compatible coding endpoint.

## Models

| ID | Name | Context | Output | Thinking |
|---|---|---|---|---|
| `qwen3.5-plus` | Qwen 3.5 Plus | 960K | 64K | ✅ |
| `qwen3-max-2026-01-23` | Qwen3 Max (2026-01-23) | 252K | 32K | ✅ |
| `qwen3-coder-plus` | Qwen3 Coder Plus | 975K | 64K | ❌ |
| `qwen3-coder-next` | Qwen3 Coder Next | 200K | 64K | ❌ |
| `glm-5` | GLM-5 | 200K | 16K | ✅ |
| `glm-4.7` | GLM-4.7 | 166K | 16K | ✅ |
| `minimax-m2.5` | MiniMax M2.5 | 196K | 64K | ✅ |
| `kimi-k2.5` | Kimi K2.5 | 252K | 32K | ✅ |

## Installation

### From local path (development)

```bash
omp plugin link /path/to/omp-dashscope
```

### From npm (when published)

```bash
omp plugin install omp-dashscope
```

Restart OMP after install/link.

### Verify Installation

After installation, verify it's working:

```bash
# List available models
omp model list

# Check if dashscope models appear:
# dashscope/qwen3.5-plus
# dashscope/qwen3-max-2026-01-23
# etc.
```

Inside OMP, `/dashscope-debug` should show non-zero `DashScope models (all)`.

## Configuration

### Interactive setup

Inside OMP:

```
/login
```

Select `Alibaba DashScope` and paste your API key.

### Environment variable

Optional: set `DASHSCOPE_API_KEY` in your environment to use env-based auth without `/login`:

```bash
export DASHSCOPE_API_KEY=sk-sp-...
```

Get your API key from the [Model Studio console](https://modelstudio.console.alibabacloud.com).

## Usage

After installing, use `/model` or `Ctrl+L` in OMP to select a `dashscope/...` model. Use `Ctrl+T` to toggle thinking for models that support it.

## License

MIT
