Back to Discover

unified-ai-system

connector

happy520ai

Terminal-first AI gateway with nine governed MCP tools for Codex, Cursor, Cline; no-key local path.

View on GitHub
0 starsSynced Aug 2, 2026

Install to Claude Code

/plugin marketplace add happy520ai/unified-ai-system

README

Unified AI System

A terminal-first, self-hosted AI and MCP gateway for models, agents, knowledge, and tools.

English | 简体中文 | Project Site

CI Container HOL Plugin Scanner Release Official MCP Registry: active License Open in GitHub Codespaces

Run and govern models, agents, knowledge, and tools through one open gateway. The first verified request needs no account or API key; real providers remain explicit opt-in and human authority stays inside the execution path. Rough natural-language requests can be structured locally before any model is called, while the original request remains visible and unchanged.

Unified AI System credential-free terminal demo

Try it in 60 seconds · Why it is different · Use the CLI · Connect Codex, Cursor, or Cline

Try It in 60 Seconds

With Docker installed, run the complete gateway path without cloning the repository:

docker run --rm ghcr.io/happy520ai/unified-ai-system/ai-gateway-service:0.4.0 pnpm gateway demo

The container starts an isolated gateway, proves health and readiness, sends one deterministic fake-provider request, prints the result, and removes itself. The expected output confirms execution: fake, real calls disabled, and process cleanup. No account, API key, or browser UI is involved.

If that verified path is useful, star the repository and choose a terminal or MCP path below.

What You Get

CapabilityCurrent public preview
AI gatewayChat, streaming, local natural-language prompt enhancement, diagnostics, explicit provider selection, and routing foundations.
Governed agentsStructured planning and workforce modules with approval, permission, and evidence surfaces.
Knowledge and contextRetrieval, context shaping, reusable knowledge, and memory-oriented modules.
Terminal and APICLI commands for prompt enhancement, demo, startup, status, chat, and diagnostics, plus direct HTTP and shared SDK access.
Codex and MCPA tested stdio MCP server with governed health, prompt enhancement, fake chat, knowledge, workflow, and workforce tools.
Extension layerShared contracts, SDKs, context modules, provider adapters, and tools.
Local-first runtimeCredential-free startup plus an anonymously pullable multi-architecture container.

Why It Is Different

  • A control plane, not another chat skin. Models, agents, knowledge, tools, permissions, and evidence belong in one governed execution path.
  • Useful before cloud configuration. A fresh clone and the public container can prove the complete local path without provider credentials.
  • Human authority is architectural. Real execution is explicit, observable, interruptible, and designed to remain accountable.

Read the longer project vision and the public roadmap.

If this is the kind of open AI infrastructure you want to exist, star the repository and join the Codex MCP launch discussion.

Operate From The Terminal

The source checkout includes a real terminal interface rather than only a scripted screenshot:

# Terminal 1
pnpm gateway serve

# Terminal 2
pnpm gateway status
pnpm gateway enhance "Build a small API for my team" --profile coding
pnpm gateway chat "Build a small API for my team" --enhance --profile coding
pnpm gateway chat "Hello from Unified AI System"
pnpm gateway doctor

enhance previews a structured prompt locally through the gateway without calling a model. chat --enhance explicitly applies that transformation to the final user message; plain chat remains unchanged. demo, status, enhance, chat, doctor, and version support --json. The chat command refuses to send when a real provider may be active unless the operator adds --allow-real-provider explicitly for that request. Read the prompt enhancement guide and CLI reference for commands, profiles, exit codes, and safety behavior.

Connect Codex, Cursor, And Cline

Choose the smallest integration that fits. Use the plugin for the complete Codex bundle, direct MCP for the runtime alone, or the skill when you only want the reviewed operating workflow.

Codex Plugin

Docker is the only runtime dependency for the published integration. Add this repository as a Codex marketplace source:

codex plugin marketplace add happy520ai/unified-ai-system --ref master

Restart the ChatGPT desktop app, open Plugins from ChatGPT Work or Codex, choose the Unified AI System marketplace, and install the plugin. The bundle adds a focused gateway skill and starts its credential-free MCP runtime in an isolated container. Use codex plugin marketplace list to inspect the source.

The plugin is gated by the HOL Plugin Scanner with a required score of at least 80 and no high or critical findings. Its public configuration and scan policy live in .codex-plugin/plugin.json and .plugin-scanner.toml. The bundled MCP command pins the reviewed 0.4.0 multi-platform OCI digest, disables container networking, and drops Linux capabilities; see the image content review.

Agent Skill

To add only the reviewed operating workflow to the current project, use the cross-agent skills CLI:

npx skills add happy520ai/unified-ai-system --skill unified-ai-gateway --agent codex --copy --yes

The command clones the public repository and copies the exact skill into .agents/skills/unified-ai-gateway. It does not run Docker, register an MCP server, or access a provider. The path was verified with skills 1.5.21 in an empty directory. Review the skill source or open its skills.sh listing before installation.

A hardened catalog variant is also published in Agentic Awesome Skills after its source validation and security review passed.

Direct Codex MCP

Run the gateway as a local MCP server with one anonymous container command:

codex mcp add unified-ai-system -- docker run --rm -i ghcr.io/happy520ai/unified-ai-system/mcp-server:0.4.0

Restart Codex, then use /mcp to inspect the pinned 0.4.0 image's nine tools for gateway health, readiness, provider-free prompt enhancement, fake-provider chat, knowledge, workflows, and workforce status. The source checkout exposes the same tool set through its project-level Codex configuration.

The dedicated MCP image starts its own isolated gateway and removes it when the session ends. It fails closed if a gateway may call a real provider. See the MCP server guide, the active official Registry entry, and its source metadata in server.json.

First task to try in Codex:

Use gateway_prompt_enhance to turn "build a small API for my team" into a coding prompt. Show the preserved original request, detected language, enhanced prompt, and proof that no provider was called.

Follow the 60-second Codex MCP quickstart for three safe tasks, expected evidence, diagnostics, and removal.

Codex And Cursor Configs

With Node.js, pnpm, and Docker available, add-mcp can write the pinned container command into both project-level client configs:

pnpm dlx add-mcp@2.0.0 "docker run --rm -i ghcr.io/happy520ai/unified-ai-system/mcp-server:0.4.0" --name unified-ai-system -a codex -a cursor -y

This exact command was verified with add-mcp 2.0.0 in an empty directory. It created .codex/config.toml and .cursor/mcp.json without provider credentials. Remove an -a option when configuring only one client, review the generated file, and restart that client. Other add-mcp targets are not claimed here as verified.

Cline MCP

Cline can install the same published server without cloning the repository:

cline mcp install unified-ai-system --yes --json -- docker run --rm -i ghcr.io/happy520ai/unified-ai-system/mcp-server:0.4.0

The command was verified with Cline CLI 3.0.48 in an isolated configuration. See the agent-readable installation guide for expected JSON, a safe verification task, and removal steps.

Run The Gateway

Run the public container:

docker run --rm --publish 3100:3100 \
  ghcr.io/happy520ai/unified-ai-system/ai-gateway-service:0.4.0

Call it directly from another terminal:

curl --request POST http://127.0.0.1:3100/chat \
  --header "content-type: application/json" \
  --data "{\"prompt\":\"Hello from Unified AI System\"}"

The default runtime uses a deterministic local fake provider. Terminal and API workflows are the public product surface; no browser UI is required or exposed by default.

Run From Source

Requirements:

  • Node.js 22 recommended; Node.js 20 or newer supported.
  • pnpm 9.15.4 or newer.
  • Git.
git clone https://github.com/happy520ai/unified-ai-system.git
cd unified-ai-system
corepack enable
corepack prepare pnpm@9.15.4 --activate
pnpm install --frozen-lockfile
pnpm verify:public-clone
pnpm gateway demo
pnpm gateway serve

The Codespaces button prepares Node.js 22, pnpm 9.15.4, and the workspace dependencies in a browser terminal. Its container configuration pins the gateway to fake-provider mode; run pnpm gateway demo after setup completes.

Useful local endpoints:

Architecture

flowchart LR
    H["Human intent"] --> W["Terminal, API, and MCP"]
    W --> G["Governance and approval"]
    G --> R["AI Gateway"]
    R --> M["Model routing"]
    R --> A["Agents and workforce"]
    R --> K["Knowledge and context"]
    R --> T["Tools and automation"]
    M --> L["Local fake provider"]
    M -. "explicit opt-in" .-> P["External providers"]
    A --> E["Evidence and observability"]
    K --> E
    T --> E
    E --> H

The system is currently a modular monolith: one deployable gateway with clear internal ownership boundaries and reusable workspace packages. See the architecture guide for details.

Honest Boundaries

QuestionVerified answer
Can anyone clone and inspect the project?Yes. The repository is public under Apache-2.0.
Can a clean clone run without an API key?Yes. Health and fake-provider chat are verified.
Is the container publicly pullable?Yes. The master image is available from GHCR.
Is there a hosted public API?No. Users run a local or self-hosted instance.
Is a browser UI bundled?No. The retired Workbench was removed; CLI, API, SDK, and MCP are the supported surfaces.
Can users connect real providers?Yes. They supply credentials and explicitly enable execution.
Is this production-certified, L5, or established AGI?No such claim is made. Those claims require operational and independent evidence beyond local tests.

Real provider calls are disabled by default. Begin with .env.example and the provider guide, and never commit credentials.

Verify The Project

pnpm check
pnpm test
pnpm check:public
pnpm verify:public-clone
pnpm verify:mcp

Every push to master runs Linux CI and a real container startup smoke test. The container path checks health, setup readiness, the terminal-only public surface, fake-provider chat, the MCP handshake, tool discovery, and managed process cleanup before the multi-architecture image is published.

Build With Us

The project is early enough for focused contributions to shape its foundations. Current entry points include:

You can also help shape the next terminal-first CLI commands.

Read CONTRIBUTING.md, join Discussions, or send a focused pull request. Security reports belong in SECURITY.md.

Repository Map

apps/
  agent-console/          Terminal CLI and operator interaction
  ai-gateway-service/     Main gateway runtime and HTTP API
packages/
  mcp-server/             Codex-ready stdio MCP server
  ...                     Contracts, SDKs, configuration, and engines
docs/                     Public user and architecture documentation
tools/                    Maintained repository and runtime checks

Historical phase documents and generated evidence stay off master. The pre-cleanup engineering history remains available on the archive branch.

Project Links

If this direction is useful, star the repository so more builders can find it, then tell us what the next trustworthy capability should be.

Licensed under Apache-2.0.

Rendered live from happy520ai/unified-ai-system's GitHub README — not stored, always reflects the source repo.

1 Install Method

NameDescriptionCategorySource
oci packageInstall via oci (stdio transport)mcp-serverghcr.io/happy520ai/unified-ai-system/mcp-server:0.4.0

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.