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.
SaferSkills independently audited cligate (Agent Skill) and scored it 45/100 (orange). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 1 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
A base64 string of 128+ characters appears in a documentation file. Encoded prompt injection hides the hostile instruction in base64 — invisible to keyword filters — and relies on the agent's ability to decode it at runtime. There is no normal authoring reason to embed a multi-hundred-byte base64 blob in skill docs.
*.sig, SIGNATURES) outside the documentation.Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
CliGate Dashboard
[English](./README.md) | [中文](./README_CN.md)
CliGate is a local AI control plane built around two core capabilities:
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.
npx cligate@latest startOr install globally:
npm install -g cligate
cligate startOr use a desktop release package:
CliGate.Default dashboard:
http://localhost:8081
Use the dashboard:
Accounts for ChatGPT / Claude / AntigravityAPI Keys for provider keysLocal Models for on-device runtimesFor 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
claudeCodex 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.
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.
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.
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.
| Dashboard | Chat |
|---|---|
| Dashboard | Chat |
| Routing and Settings | Channels |
|---|---|
| Settings | Channels |
| Usage and Costs |
|---|
| Usage and Costs |
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/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| Endpoint | Use |
|---|---|
POST /v1/messages | Anthropic Messages proxy |
POST /v1/chat/completions | OpenAI Chat Completions proxy |
POST /v1/responses | OpenAI Responses proxy |
POST /backend-api/codex/responses | Codex internal compatibility |
POST /v1beta/models/* | Gemini CLI proxy |
GET /api/agent-runtimes/providers | Runtime provider catalog |
GET /api/agent-channels/conversations | Channel conversation records |
GET /api/assistant/tasks | Assistant task records |
GET /api/assistant/mcp/servers | MCP server management |
GET /api/assistant/skills | Assistant skill management |
GET /api/desktop-agent/status | Desktop-agent status |
GET /api/local-runtimes | Local runtime status |
GET /api/resources | Resource catalog |
GET /health | Health and version |
See docs/API.md for more detail.
For Chinese-speaking users, you can also add the maintainer directly on personal WeChat:
<img src="./images/wechat.jpg" alt="CliGate WeChat" width="220">
Please include a short note such as CliGate when sending the request.
If you plan to contribute, read CONTRIBUTING.md before opening a pull request.
This project is licensed under AGPL-3.0.
CliGate is an independent open-source project and is not affiliated with Anthropic, OpenAI, Google, or other upstream providers.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.