Oh My Coding Maas Gateway
Description
LiteLLM proxy gateway to Huawei ModelArts MaaS for coding agents. Supports opencode, Codex CLI, and Claude Code CLI with dual-format API deployments (OpenAI Chat Completions + Anthropic Messages), load balancing, virtual key management, and Prometheus + Grafana observability.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
oh-my-coding-maas-gateway
LiteLLM proxy routing Huawei MaaS models to opencode, Codex CLI, Claude Code CLI, and Pi agent — with virtual keys, multi-key load balancing, dual-format endpoints, and Prometheus + Grafana observability.
What Is This?
A self-hosted gateway that sits between your coding tools and Huawei ModelArts MaaS, giving you load balancing, virtual keys, budget tracking, and observability — all through a single local proxy.
Tools LiteLLM (:4000) Huawei MaaS
───── ─────────────── ────────────
opencode ──→ /v1/chat/completions ──→ openai/ provider ──→ MaaS OpenAI endpoint
Codex CLI ──→ /v1/responses ──→ openai/ provider ──→ MaaS OpenAI endpoint
Claude Code ──→ /v1/messages ──→ anthropic/ provider ──→ MaaS Anthropic endpoint
Pi agent ──→ /v1/chat/completions ──→ openai/ provider ──→ MaaS OpenAI endpoint
LiteLLM: load-balances across N MaaS keys · PostgreSQL (:5432)
Observability: LiteLLM ──/metrics──→ Prometheus (:9090) ──→ Grafana (:3000)
**4 models:** glm-5.2, glm-5.1, deepseek-v4-pro, deepseek-v4-flash
Install
The bootstrap script is the only installation method. It handles everything — prerequisites, Docker stack, coding tools, virtual keys, validation, and optional companion skill.
curl -fsSL https://raw.githubusercontent.com/wallacelw/oh-my-coding-maas-gateway/main/scripts/bootstrap.sh | bash
Bootstrap will prompt for your Huawei MaaS API key, show an interactive menu to select which coding tools to install, auto-install prerequisites, deploy the proxy + observability stack, configure each tool with its own virtual key, run validation, and offer to install the companion skill.
Estimated time: ~5 min fresh, ~2 min upgrade. For flags and non-interactive usage, see [INSTALLATION.md](./INSTALLATION.md).
After install
opencode # or: codex or: claude --bare or: pi
M
Related Skills
prompts.chat
| f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open sourc
Communication Internal Comms
Write internal communications like status reports, newsletters, and FAQs
Communication mcp-server-slack
Slack workspace integration.
Communication Google Workspace Groups Settings
Manage Google Groups settings
Communication Open Saas
A 100% free modern JS SaaS boilerplate (React, NodeJS, Prisma). Full-featured: Auth (email, google, github, sl
slack
| Communication | Slack integration via HTTP/OAuth MCP |
Communication