Osano AIのロゴ

Osano AI

組織
osanoai

Gemini, Codex, Claude, and OpenCode all in a single MCP tool for use by any coding agent.

公開者osanoai
リポジトリmulticli
言語TypeScript
フォーク
18
スター
74
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Osano AIは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには74件のスターと18件のフォークがあります。

Multi-CLI MCP

npm version Tests Scan GitHub release Node TypeScript

An MCP server that lets Claude, Antigravity, Codex, and OpenCode call each other as tools.

Claude:      "Hey Antigravity, what do you think about this code?"
Antigravity: "It's messy. Let me ask Codex for a second opinion."
Codex:       "You're both wrong. Here's the fix."
OpenCode:    "I checked with three providers. They all agree with Codex."

One-Line Install (macOS / Linux)

bash
curl -fsSL https://raw.githubusercontent.com/osanoai/multicli/main/install.sh | bash

Detects which AI CLIs you have installed and configures Multi-CLI for them automatically.

  • Claude Code is configured to use a per-user local HTTP service on 127.0.0.1
  • Antigravity CLI, Codex CLI, and OpenCode keep using local config by default
  • The installer may update client config files on your behalf

What It Does

Multi-CLI sits between your AI clients and bridges them via the Model Context Protocol. Install it once, and whichever AI you're talking to gains the ability to call the others.

  • Claude can ask Antigravity, Codex, or OpenCode for help
  • Antigravity can delegate to Claude, Codex, or OpenCode
  • Codex can consult Claude, Antigravity, or OpenCode
  • OpenCode can call Claude, Antigravity, or Codex (across 75+ providers)
  • Each client's own tools are hidden (no talking to yourself, that's weird)
  • Auto-detects which CLIs you have installed — only shows what's available

The Meta Part

This tool was built by the very AIs it connects.

Claude, Codex, Gemini, and OpenCode wrote the code. Claude, Codex, Gemini, and OpenCode maintain it. Every night, a CI job queries the latest stable release of the static-catalog CLIs for current model lists, diffs the results against what's in the repo, and automatically publishes a new version if anything changed. Antigravity models are discovered live through agy models because that command depends on local sign-in and account access.

The stdio install paths use @latest, so those clients pick up new releases automatically. Claude Code's managed HTTP service intentionally runs from a stable installed runtime instead of a transient npx cache; rerun the installer or multicli service refresh --configure-claude after upgrading.

Most MCP tools go stale within weeks. This one is self-maintaining by design.


Prerequisites

You need Node.js >= 20 and at least one of these CLIs installed:

CLIInstall
Claude Codenpm install -g @anthropic-ai/claude-code
Antigravity CLIInstall Antigravity so agy is on your PATH
Codex CLInpm install -g @openai/codex
OpenCode`curl -fsSL https://opencode.ai/install

Multi-CLI is most useful with two or more CLIs installed. With only one, the install still works, but there may be nothing to bridge yet.


Manual Installation

Prefer to install per-client yourself? Each command is one line.

Claude Code

Recommended for Claude Code stability:

bash
npm install -g @osanoai/multicli
multicli service install --configure-claude

This installs a per-user background service that listens only on 127.0.0.1, configures Claude Code to use Multi-CLI over HTTP, and keeps the underlying server alive even if Claude drops a stdio subprocess.

The managed service installs as a per-user login/background service:

  • macOS: launchd LaunchAgent
  • Ubuntu/Debian: systemd --user
  • Windows: Scheduled Task at user logon

Security model:

  • Listens only on 127.0.0.1
  • Uses Authorization: Bearer <token> for every HTTP MCP request
  • Stores generated service artifacts in a user-owned service directory

Operational notes:

  • multicli service install refuses transient npx runtimes; use a global install or a stable local checkout
  • Generated service state includes an env file you can edit if your local AI CLIs require additional credentials or PATH entries
  • On Linux, the default systemd --user service follows your login session; enable linger yourself only if you intentionally want it to stay up after logout

Legacy stdio installation is still available:

bash
claude mcp add --scope user Multi-CLI -- npx -y @osanoai/multicli@latest

Add to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS:

json
{
  "mcpServers": {
    "Multi-CLI": {
      "command": "npx",
      "args": ["-y", "@osanoai/multicli@latest"]
    }
  }
}

Restart Claude Desktop completely after saving.


Antigravity CLI

bash
mkdir -p ~/.gemini/config
node -e 'const fs=require("fs"),p=process.env.HOME+"/.gemini/config/mcp_config.json";let c={};if(fs.existsSync(p)){c=JSON.parse(fs.readFileSync(p,"utf8")||"{}")}c.mcpServers={...(c.mcpServers||{}),"Multi-CLI":{command:"npx",args:["-y","@osanoai/multicli@latest"]}};fs.writeFileSync(p,JSON.stringify(c,null,2)+"\n")'
json
{
  "mcpServers": {
    "Multi-CLI": {
      "command": "npx",
      "args": ["-y", "@osanoai/multicli@latest"]
    }
  }
}

Codex CLI

bash
codex mcp add Multi-CLI -- npx -y @osanoai/multicli@latest
bash
codex --mcp-config mcp.json

Where mcp.json contains:

json
{
  "mcpServers": {
    "Multi-CLI": {
      "command": "npx",
      "args": ["-y", "@osanoai/multicli@latest"]
    }
  }
}

OpenCode

OpenCode's mcp add command is interactive, so add Multi-CLI to ~/.config/opencode/opencode.json directly:

json
{
  "mcp": {
    "Multi-CLI": {
      "type": "local",
      "command": ["npx", "-y", "@osanoai/multicli@latest"]
    }
  }
}

If the file already exists, merge the "Multi-CLI" entry into the existing "mcp" object.


Any Other MCP Client

Multi-CLI supports both stdio and Streamable HTTP.

For stdio-capable clients, point them at:

npx -y @osanoai/multicli@latest

For a managed local HTTP service, install Multi-CLI globally and run:

bash
multicli service install

The service listens on 127.0.0.1 only and exposes /mcp plus /health.


Available Tools

Once connected, your AI client gains access to tools for the other CLIs (never its own):

ToolDescription
List-Antigravity-ModelsList available Antigravity models from agy models
Ask-AntigravityAsk Antigravity a question or give it a task
Fetch-Antigravity-ChunkRetrieve chunked responses from Antigravity changeMode
Antigravity-HelpGet Antigravity CLI help info
List-Gemini-ModelsDeprecated alias for List-Antigravity-Models
Ask-GeminiDeprecated alias for Ask-Antigravity; executes through agy
Fetch-ChunkDeprecated alias for Fetch-Antigravity-Chunk
Gemini-HelpDeprecated alias for Antigravity-Help
List-Codex-ModelsList available Codex models
Ask-CodexAsk-Codex a question or give it a task
Codex-HelpGet Codex CLI help info
List-Claude-ModelsList available Claude models
Ask-ClaudeAsk-Claude a question or give it a task
Claude-HelpGet Claude Code CLI help info
List-OpenCode-ModelsList available OpenCode models from all configured providers
Ask-OpenCodeAsk-OpenCode a question or give it a task
OpenCode-HelpGet OpenCode CLI help info

Task-Capable Ask Tools

The Ask-* tools still work as normal synchronous MCP tools, but they now also advertise optional task-based execution for MCP clients that support tasks.

  • Task-capable clients can run long Ask-* calls using MCP tasks to avoid long blocking tool requests
  • Older clients keep using the same Ask-* tools synchronously with no config changes
  • List-*, *-Help, and Fetch-Chunk remain normal synchronous tools

Usage Examples

Once installed, just talk naturally to your AI:

"Ask-Antigravity what it thinks about this architecture"
"Have Codex review this function for performance issues"
"Get Claude's opinion on this error message"
"Use OpenCode to get a second opinion from Llama"

Or get a second opinion on anything:

"I want three perspectives on how to refactor this module —
 ask Antigravity and Codex what they'd do differently"

How It Works

┌─────────────┐     MCP (stdio)      ┌──────────────┐     CLI calls    ┌─────────────┐
│  Your AI    │ ◄──────────────────► │  Multi-CLI   │ ───────────────► │ Other AIs   │
│  Client     │                      │   server     │                  │ (CLI tools) │
└─────────────┘                      └──────────────┘                  └─────────────┘

1. Your AI client connects to Multi-CLI via MCP
2. Multi-CLI detects which CLIs are installed on your system
3. It registers tools for the OTHER clients (hides tools for the calling client)
4. When a tool is called, Multi-CLI executes the corresponding CLI command
5. Results flow back through MCP to your AI client

For Claude Code, Multi-CLI can also run as a local background HTTP service:

┌─────────────┐     MCP (HTTP)       ┌──────────────┐     CLI calls    ┌─────────────┐
│ Claude Code │ ◄──────────────────► │  Multi-CLI   │ ───────────────► │ Other AIs   │
│   Client    │    127.0.0.1 only    │   service    │                  │ (CLI tools) │
└─────────────┘                      └──────────────┘                  └─────────────┘

Troubleshooting

"No usable AI CLIs detected" Make sure at least one other CLI is installed and on your PATH:

bash
which agy && which codex && which claude && which opencode

No tools showing up? If only your own CLI is installed, Multi-CLI hides it (no self-calls). Install a different CLI to enable cross-model collaboration.

MCP server not responding?

  1. Check that Node.js >= 20 is installed
  2. Run npx -y @osanoai/multicli@latest directly to see if the stdio server starts
  3. Restart your AI client completely

Claude Code disconnecting after successful calls? Use the managed background service instead of the legacy stdio integration:

bash
npm install -g @osanoai/multicli
multicli service install --configure-claude
multicli service doctor

Helpful service commands:

  • multicli service status
  • multicli service doctor
  • multicli service logs
  • multicli service refresh
  • multicli service uninstall

Need to tune timeouts or cleanup behavior? Multi-CLI supports these optional environment variables:

  • MULTICLI_TRANSPORT (stdio or http)
  • MULTICLI_ASK_TIMEOUT_MS
  • MULTICLI_HELP_TIMEOUT_MS
  • MULTICLI_CLI_DETECT_TIMEOUT_MS
  • MULTICLI_KILL_GRACE_MS
  • MULTICLI_HTTP_HOST (defaults to 127.0.0.1)
  • MULTICLI_HTTP_PORT (defaults to 37420)
  • MULTICLI_HTTP_PATH (defaults to /mcp)
  • MULTICLI_HTTP_AUTH_TOKEN (required for direct HTTP mode)
  • MULTICLI_HTTP_SESSION_IDLE_MS
  • MULTICLI_LOG_PATH (defaults to ~/.multicli/logs/multicli.log)
  • MULTICLI_LOG_LEVEL (error, info, or debug; defaults to debug for the file log)
  • MULTICLI_STDERR_LOG_LEVEL (silent, error, info, or debug; defaults to error)
  • MULTICLI_SERVICE_ROOT_DIR
  • MULTICLI_SERVICE_LOG_PATH
  • MULTICLI_SERVICE_ENV_PATH
  • MULTICLI_SERVICE_MANIFEST_PATH

The server writes structured JSON-line logs to a single file destination, rotates them automatically for long-running service mode, and includes full prompt bodies for Ask-* requests so disconnects and crashes can be reconstructed after the fact.


Development

bash
git clone https://github.com/osanoai/multicli.git
cd multicli
npm install
npm run build
npm run dev

インストール

TypingMind
{
  "mcpServers": {
    "multicli": {
      "command": "npx",
      "args": [
        "-y",
        "multicli"
      ]
    }
  }
}

Osano AIのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Osano AIに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Osano AIをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Osano AIのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "multicli": {
      "command": "npx",
      "args": [
        "-y",
        "multicli"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてOsano AIのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Osano AIのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Osano AIを使ってこのタスクを手伝ってもらえますか?
Osano AI
はい、読みました。
Osano AIで調べた結果をお伝えします。

よくある質問

Osano AI MCPサーバーは何に使いますか?

Osano AIは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでOsano AI MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでOsano AIを利用できます。

TypingMindでOsano AI MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Osano AIを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Osano AI MCPをTypingMindに接続するにはどうすればよいですか?

Osano AIはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでOsano AI MCPのどのようなツールを利用できますか?

Osano AIはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Osano AI MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Osano AIで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇