cligate

Private AI assistant, AI agent, and unified model proxy for Claude Code, Codex CLI, Gemini CLI & OpenClaw. Skills, MCP, tools, channels, tasks,model routing, accounts, keys, logs, dashboard.

121
Stars
18
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/codeking-ai/cligate

快速入门

使用 cligate 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

CliGate

CliGate Dashboard

AGPL-3.0 License Node.js Version npm Version GitHub stars

English | 中文

CliGate is a local AI control plane built around two core capabilities:

  • Assistant: a resident private assistant that stays available in the background, understands user tasks, remembers context, uses tools, schedules work, operates channels, and can execute actions through MCP, skills, desktop automation, shell/file tools, or delegated runtimes.
  • Model Proxy: one local API and model-routing layer for Claude Code, Codex CLI, Gemini CLI, OpenClaw, and API-compatible clients, with unified accounts, API keys, model mapping, logs, usage, and cost visibility.

It keeps both layers local-first on localhost: the assistant acts like a personal operator for real tasks, while the proxy owns provider access, routing, credentials, unified model names, and observability.

Why CliGate

  • One local dashboard for a resident private assistant and unified model routing
  • Assistant tasks with memory, approvals, follow-ups, scheduled work, channels, and tool execution
  • Account pools, API keys, local runtimes, app routing, and model mapping in one proxy layer
  • Channels for Telegram, Feishu, and DingTalk workflows
  • Local-first deployment without a hosted relay

What It Includes

Assistant

  • Dashboard chat and Assistant Tasks for personal task execution
  • A persistent assistant agent with task records, memory, policies, approvals, and resumable executions
  • Tool execution through skills, MCP, shell/file tools, scheduled tasks, channels, and optional desktop automation
  • Optional delegation to Codex / Claude Code runtime sessions when a task needs an external coding agent
  • Telegram, Feishu, and DingTalk channel workflows

Model Proxy

  • Anthropic Messages, OpenAI Chat Completions, OpenAI Responses, Codex, and Gemini-compatible endpoints
  • One-click configuration for Claude Code, Codex CLI, Gemini CLI, and OpenClaw
  • ChatGPT, Claude, and Antigravity account pools
  • API key pools for OpenAI, Azure OpenAI, Anthropic, Gemini, Vertex AI, MiniMax, Moonshot, ZhipuAI, DeepSeek, Qwen, and OpenRouter
  • Routing priority, app-level bindings, provider model mapping, and free-model routing
  • Optional local model routing through Ollama-style runtimes

Observability and operations

  • Usage and pricing views
  • Request logs and live log streaming
  • API explorer
  • Tool installer and CLI config helpers
  • Resources catalog for free/trial model providers

Quick Start

1. Start CliGate

npx cligate@latest start

Or install globally:

npm install -g cligate
cligate start

Or use a desktop release package:

  1. Download the installer or app package for your platform from Releases.
  2. Install or open the package, then launch CliGate.
  3. CliGate will start the local service and open the desktop window automatically.

Default dashboard:

http://localhost:8081

2. Add at least one working credential

Use the dashboard:

  • Accounts for ChatGPT / Claude / Antigravity
  • API Keys for provider keys
  • Local Models for on-device runtimes

3. Choose your first path

For Assistant use, open Chat or Assistant Tasks and tell the private assistant what you want done.

For Model Proxy use, point a CLI tool or API-compatible client to CliGate.

Claude Code:

export ANTHROPIC_BASE_URL=http://localhost:8081
export ANTHROPIC_API_KEY=any-key
claude

Codex CLI:

# ~/.codex/config.toml
chatgpt_base_url = "http://localhost:8081/backend-api/"
openai_base_url = "http://localhost:8081"

Gemini CLI and OpenClaw can also be configured from the dashboard.

User Paths

Assistant users

Use Chat, Assistant Tasks, Conversation Records, Scheduled, Skills, MCP, and channels to ask the resident assistant to execute real tasks, remember context, use tools, send follow-ups, and keep working in the background.

Model Proxy users

Start the service, add one credential, run one-click config, and send your first proxied request from Claude Code, Codex CLI, Gemini CLI, OpenClaw, or an API-compatible client.

Dashboard operators

Use the dashboard to manage accounts, API keys, routing priority, model mapping, local runtimes, pricing, request logs, usage, channel settings, skills, MCP, and desktop-agent settings.

Documentation

Start here if you want the shortest path to the right document:

After the server starts, a lightweight product guide is also available at:

  • http://localhost:8081/manual/
  • http://localhost:8081/resources/

Local Architecture

Assistant Surfaces
  Web Chat / Assistant Tasks / Telegram / Feishu / DingTalk / Scheduled Tasks
           |
           v
Private Assistant and Tools
  Memory / Policies / Skills / MCP / Desktop Agent / Shell + File Tools / Optional Codex + Claude Code Delegation
           |
           v
CliGate Local Control Plane (localhost:8081)
           |
           +--> Model Proxy
           |    - Protocol translation
           |    - Account and API key routing
           |    - App-level bindings and model mapping
           |    - Local model routing
           |
           v
Upstream Providers and Local Runtimes
  OpenAI / Anthropic / Gemini / Vertex AI / Kilo / Ollama / others

API Surface

EndpointUse
POST /v1/messagesAnthropic Messages proxy
POST /v1/chat/completionsOpenAI Chat Completions proxy
POST /v1/responsesOpenAI Responses proxy
POST /backend-api/codex/responsesCodex internal compatibility
POST /v1beta/models/*Gemini CLI proxy
GET /api/agent-runtimes/providersRuntime provider catalog
GET /api/agent-channels/conversationsChannel conversation records
GET /api/assistant/tasksAssistant task records
GET /api/assistant/mcp/serversMCP server management
GET /api/assistant/skillsAssistant skill management
GET /api/desktop-agent/statusDesktop-agent status
GET /api/local-runtimesLocal runtime status
GET /api/resourcesResource catalog
GET /healthHealth and version

See docs/API.md for more detail.

Community

If you plan to contribute, read CONTRIBUTING.md before opening a pull request.

License

This project is licensed under AGPL-3.0.

Disclaimer

CliGate is an independent open-source project and is not affiliated with Anthropic, OpenAI, Google, or other upstream providers.

常见问题

What is cligate?

cligate is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by codeking-ai. Private AI assistant, AI agent, and unified model proxy for Claude Code, Codex CLI, Gemini CLI & OpenClaw. Skills, MCP, tools, channels, tasks,model routing, accounts, keys, logs, dashboard. It has 121 GitHub stars.

Is cligate safe to use?

cligate returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install cligate?

Clone the repository with "git clone https://github.com/codeking-ai/cligate" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is cligate written in?

cligate is primarily written in JavaScript. It is open-source under codeking-ai on GitHub, so you can review or fork the full source.

Are there alternatives to cligate?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cligate against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情