Lexus2016

Claude Flow — AI skill for Claude Code

AI community

Use any AI model with Claude Code CLI — OpenRouter, DeepSeek, OpenAI, Gemini and more.

How to install Claude Flow

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Lexus2016/claude-flow and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Flow does

Use any AI model with Claude Code CLI — OpenRouter, DeepSeek, OpenAI, Gemini and more. Zero dependencies.

Alternatives in AI

  • Opencodex — Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama… 12.3k ★
  • Zen MCP Server — The power of Claude Code + Gemini / OpenAI / Grok / OpenRouter / Ollama / Custom Model working as one 11.3k ★
  • EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★

README

claude-flow

**Bridge any AI model to Claude Code CLI** — route through OpenRouter, DeepSeek, OpenAI, Gemini, or any Anthropic-compatible endpoint.

![Node](https://img.shields.io/badge/node-%3E%3D18.0-green) ![License](https://img.shields.io/badge/license-MIT-blue) ![Zero Dependencies](https://img.shields.io/badge/dependencies-0-success)

Available in: **[English](README.md)** | [Українська](README_UA.md) | [Русский](README_RU.md)


The Problem

Claude Code CLI is hardcoded for Anthropic's API. It sends requests in Anthropic's Messages API format, expects responses in that exact format, and authenticates using Anthropic's method. If you want to use **any other model** — DeepSeek, GPT-4, Gemini, GLM, Llama, Qwen — you hit three walls:

1. Response Format Incompatibility

Every AI provider has its own API format. DeepSeek, OpenAI, and Gemini use the OpenAI-compatible format. Chinese models (GLM, Qwen) have their own APIs. Open-source models (Llama, Mistral) each have unique response structures.

Claude Code expects Anthropic's **specific** streaming events (`content_block_delta`), content block types, `tool_use` structures, `stop_reason` values, and token counting fields. Send it a raw DeepSeek or OpenAI response — it crashes.

**The fix:** Providers like **OpenRouter** and **DeepSeek** offer **Anthropic-compatible proxy endpoints** — they accept requests in Anthropic format, route them to any model, and **translate the response back** into Anthropic format. claude-flow knows exactly which endpoints to use for each provider.

2. Authentication Trap

Claude Code's auth has an **undocumented quirk**: `ANTHROPIC_API_KEY` must be set to an **empty string** (`""`) for proxy providers — not absent, not unset. Specifically an empty string.

  • If ANTHROPIC_API_KEY is absent → Claude Code errors out on startup
  • If ANTHROPIC_API_KEY is non-empty → Claude Code uses it and silently ignores your proxy token
  • If ANTHROPIC_API_KEY is "" → Clau