One Mipham

Mipham Code

Multi-model open-core intelligent coding terminal. AI-assisted code generation, security auditing, MCP protocol integration, and extensible skills system — unified in a single CLI.

International: mipham.ai/mipham-code  |  China mainland: onemipham.com/mipham-code

Install

npm downloads

Four ways to install — choose your platform.

⚠️ Upgrading from 0.85.0 or earlier? Don't use mipham update

On 0.84.0 and earlier the install step carried a 10-minute timeout, while the package is 84 MB / 6,601 files and can take longer than that on a slow link. The timer then kills npm mid-install, leaving neither the old version nor the new one: no mipham on the machine at all — including the very mipham update you would retry with (same for /upgrade).

0.85.0 fixed that timer path (snapshot before, verify by running the launcher after, roll back on failure), but its rollback ran inside the CLI process — the terminal delivers Ctrl-C to the whole foreground process group, so the CLI and npm died together and the rollback never ran: a half-written tree with nobody left to roll it back. That is why 0.85.0 is not a safe version to self-upgrade from either.

Upgrade with either command below instead — npm runs directly in your own terminal, with no timeout, so it cannot be cut off no matter how slow your link is:

npm install -g @miphamai/cli

Re-running the install script above is equally safe. From 0.85.1 on, mipham update is safe to use — no timeout, it snapshots first, verifies by actually running the launcher, and rolls back on failure; pressing Ctrl-C during the install no longer breaks it either (Ctrl-C is ignored while the install runs — to interrupt, kill the process from another terminal).

npm (Recommended)

npm install -g @miphamai/cli

curl (macOS / Linux)

curl -fsSL https://mipham.ai/install.sh | bash

PowerShell (Windows)

irm https://mipham.ai/install.ps1 | iex

Direct Download

macOS / Linux / Windows binaries from GitHub Releases (v0.85.13)

macOS App (.dmg)

Native app bundle from GitHub Releases (mipham-code-*.dmg)

JetBrains IDEs

Install from the JetBrains Marketplace (or download the plugin zip from GitHub Releases).

VS Code

Install the Mipham Code extension from the Visual Studio Marketplace.

Requires Bun 1.2+ or Node.js 22+. After install, run mipham to start.

Quick Configuration

Set up your API key after installation. Supports 12 providers — Anthropic, OpenAI, DeepSeek, Kimi, Google Gemini, Doubao, Tencent Hunyuan, Qwen, MiniMax (CN), MiniMax (Global), Ollama, and MiphamAI.

1. Set Environment Variable

Example with DeepSeek (add to ~/.zshrc for persistence):

export DEEPSEEK_API_KEY="sk-your-key"

2. Config File ~/.mipham/config.yml

Optional — mipham runs on built-in defaults, and the setup wizard writes this file for you. Write it by hand to pin a default or override a provider. 5 of the 12 built-in providers shown, plus one custom provider:

# Default model (used at startup)
defaultProvider: deepseek
defaultModel: deepseek-v4-pro

providers:
  # Built-in providers: `id` + `apiKey` is all you need. The extra fields
  # below are optional overrides. Omit `models:` to keep every built-in
  # model — listing models here replaces the built-in list wholesale.
  - id: deepseek
    name: DeepSeek
    protocol: openai-compatible
    baseUrl: https://api.deepseek.com/v1
    apiKey: ${DEEPSEEK_API_KEY}

  - id: doubao
    name: Doubao (ByteDance)
    protocol: openai-compatible
    baseUrl: https://ark.cn-beijing.volces.com/api/v3
    apiKey: ${DOUBAO_API_KEY}

  - id: qwen
    name: Qwen (Alibaba)
    protocol: openai-compatible
    baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
    apiKey: ${QWEN_API_KEY}

  - id: anthropic
    name: Anthropic Claude
    protocol: anthropic
    apiKey: ${ANTHROPIC_API_KEY}

  - id: openai
    name: OpenAI
    protocol: openai-compatible
    baseUrl: https://api.openai.com/v1
    apiKey: ${OPENAI_API_KEY}

  # Custom provider (not built in): declare your own models. Every field
  # under a model is required.
  - id: my-gateway
    name: My Gateway
    protocol: openai-compatible
    baseUrl: https://gateway.example.com/v1
    apiKey: ${MY_GATEWAY_API_KEY}
    models:
      - id: my-model-pro
        name: My Model Pro
        providerId: my-gateway
        contextWindow: 200000
        maxOutput: 64000
        vision: true
        status: active

apiKey supports ${ENV_VAR} (recommended) or plain key string.

3. Launch

mipham

Press Ctrl+P to switch providers and models anytime.

Features

12 AI Providers

Anthropic Claude · OpenAI GPT · DeepSeek · Kimi · Google Gemini · Doubao · Tencent Hunyuan · Qwen · MiniMax (CN) · MiniMax (Global) · Ollama · MiphamAI

138 Slash Commands

Full Claude Code parity — /commit, /pr, /simplify, /lint, /loop init, /browse-plugins. Interactive command picker, zero re-learning.

Plugin Marketplace

/install-plugin, /browse-plugins — install from npm or local. Community registry with NotebookLM MCP integration.

LoopKit Vault

/loop init scaffolds complete project structure — .mipham/ config, hooks, agents, 9-domain skills, .mcp.json, and more.

MCP Protocol

Full JSON-RPC 2.0 stdio transport + .mcp.json config. Connect to NotebookLM, filesystem, GitHub, and custom MCP servers.

28 Skills + Marketplace

22 standard + 6 Mipham-exclusive built-in skills. Community marketplace — browse, install, remove with one command.

Self-Update

From 0.85.1, mipham update checks npm, snapshots the install, upgrades, verifies by actually running the launcher, and rolls back on failure — API keys preserved. On 0.85.0 and earlier, upgrade via the npm command above instead (see the note in Install).

Security Hardened

Path sandbox · SSRF protection · Bash blacklist · Permission gating · Parameter validation · command injection prevention · chmod 600 config

Cross-Platform

macOS · Linux · Windows. npm / curl / PowerShell / direct download — four install methods. Bun + Node.js runtime.

Public Benchmarks

Two public benchmarks, one 10-task run each (k=1). The scores below are the official scores reported by each benchmark's harness, not computed by us. What was run, known limitations and reproduction commands are in benchmarks/README.md; the per-task cross-checks and score sources are in benchmarks/results/README.md.

Terminal-Bench

terminal-bench@2.0 · 10 tasks · k=1

Completed tasks 4 / 8: harbor created 10 trials; 8 reached an agent result (4 done, 4 deadline_exceeded) and 2 produced no result file.

Official score Mean: 0.000: all 8 rewards are 0.0.

Raw per-task readings (scores are not in this file): benchmarks/results/phase1-terminal-bench.json

SWE-bench Verified

swebench-verified@1.0 · 10 tasks (10 distinct repositories) · k=1

Completed tasks 9 / 10: harbor created 10 trials; 9 reached an agent result, and the 10th was interrupted by a network failure during agent install — not a wrong answer.

Official score Mean: 0.900: the denominator is 10 (harbor's 9 trials plus 1 errored trial, counted as 0), and all 9 rewards are 1.0.

Raw per-task readings (scores are not in this file): benchmarks/results/phase2-swebench-verified.json

AI Providers

ProviderProtocolModels
Anthropic ClaudeNative SDKOpus 4.8 · Sonnet 4.6 · Haiku 4.5 · Fable 5
OpenAIOpenAI CompatGPT-5.5 · GPT-5.4 · GPT-5.3 Codex · GPT-6 Astra
DeepSeekOpenAI CompatV4 Pro (1M ctx) · V4 Flash (1M ctx)
Kimi (Moonshot)OpenAI CompatKimi Latest · Moonshot v1 (8K/32K/128K)
Google GeminiOpenAI Compat3.0 Pro · 3.0 Flash · 2.5 Pro
Doubao (ByteDance)OpenAI CompatSeed 2.0 Pro/Code · 1.6 Flash
Tencent HunyuanOpenAI Compat2.0 Think · T1 Vision · Hy3 Preview
Qwen (Alibaba)OpenAI CompatQwen Max · Qwen Plus
MiniMax (CN)OpenAI CompatM2.7 · M2 · Text 01
MiniMax (Global)OpenAI CompatM2.7 · M2 · Text 01
Ollama (Local)OpenAI CompatAny local model (auto-discovered)
MiphamAIOpenAI Compatom-V5-Flash · Pro · Visual · Apex

Architecture

Bun + React/Ink CLI · Next.js 15 Web · TypeScript Strict · pnpm Monorepo · 138 commands · 3879 tests

Provider Layer: Anthropic Native SDK + OpenAI Compat × 11 unified interface · SSE streaming · Tool orchestration

Security: Path sandbox · SSRF protection · Bash blacklist · Permission gating · Parameter validation

Get Started

One command to install, interactive setup wizard on first launch.

npm install -g @miphamai/cli && mipham