Tkflyc AI CLI — AI skill for Claude Code
Run Claude Code, Codex, Antigravity and any OpenAI-compatible API as MCP tools with background jobs — registry architecture, circuit breaker, honest return values.
How to install Tkflyc AI CLI
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open moerasermax/tkflyc-ai-cli and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tkflyc AI CLI does
Run Claude Code, Codex, Antigravity and any OpenAI-compatible API as MCP tools with background jobs — registry architecture, circuit breaker, honest return values.
Alternatives in AI
- Ralph For Claude Code — by Frank Bria - An autonomous AI development framework that enables Claude Code to work iteratively on project 8k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Vllm Mlx — High-performance OpenAI and Anthropic compatible LLM inference server for Apple Silicon 1.5k ★
README
ai-cli-mcp
[](https://github.com/moerasermax/tkflyc-ai-cli/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@tkflyc/ai-cli-mcp) [](LICENSE)
Run local AI CLIs — Claude, Codex, Antigravity (`agy`) — and **any third-party OpenAI-compatible API** as MCP tools, with background jobs. Self-maintained from source, built on a registry architecture: adding an agent means adding one file.
Requires Node `^20.19.0 || >=22.12.0`.
完整中文文件(環境變數、設定檔、每個工具的細節)見 **[README.zh-TW.md](README.zh-TW.md)**. The Chinese document is the exhaustive reference; this page covers the design and the parts you need to get running.
Quick start
From npm — nothing to build:
claude mcp add ai-cli -s user -- npx -y @tkflyc/ai-cli-mcp
From source — if you intend to change it:
git clone https://github.com/moerasermax/tkflyc-ai-cli
cd tkflyc-ai-cli
npm install # triggers build via the prepare script and produces dist/
claude mcp add ai-cli -s user -- node "$PWD/dist/server.js"
`dist/` is not version-controlled, so the source install has to build before first use. `npm install` runs it through the `prepare` script, so a separate `npm run build` is normally unnecessary.
What it does
Each supported CLI becomes a tool you can call from an MCP client. Jobs run in the background: `run` returns a PID immediately, and `list_processes`, `peek`, `wait` and `get_result` observe it while it works. Three entry points — the MCP server, the `ai-cli` command line, and the detached file-backed runner — are equivalent in behavior; they differ only in where job state lives.
Architecture
src/
├─ agents/ one file per AI — this is the extension point
│ ├─ types.ts AgentDefinition, the core contract
│ ├─ registry.ts
Related Skills
Terseai
Claude Code & Cursor token usage monitor and cost tracker for macOS & Windows. Live token/cost/burn monitoring
LinkedIn Automation AI Agent
Run your LinkedIn on autopilot: one post a day, useful comments, connection notes with a real message, and pro
Answer Contract
Four rules that stop your AI agent from padding, rambling, and shipping one mediocre answer: Implicit-Need Fil
Klaudimero
Self-hosted AI assistant service and native iOS/macOS app powered by Claude Code — streaming chat, scheduled j
Agent Setup
Build your own AI executive assistant — powered by Claude Code or Codex CLI. Open-source framework with persis
CLIProxyAPI
Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Qwen Code, iFlow as an OpenAI/Gemini/Claude/Codex co
Related Agents
Codex CLI
Codex CLI → any OpenAI-compatible endpoint
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings
Error Recovery Agent
Specialized agent for classifying, triaging, and recovering from errors in SkillOS task executions. Implements