{"id":51454459,"url":"https://github.com/wallacelw/oh-my-coding-maas-gateway","last_synced_at":"2026-07-06T00:00:14.832Z","repository":{"id":366281019,"uuid":"1275671306","full_name":"wallacelw/oh-my-coding-maas-gateway","owner":"wallacelw","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.","archived":false,"fork":false,"pushed_at":"2026-06-29T03:25:14.000Z","size":585,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T04:22:46.866Z","etag":null,"topics":["claude-code","codex","gateway","huawei-maas","litellm","observability","opencode","proxy"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wallacelw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-21T02:08:53.000Z","updated_at":"2026-06-29T03:25:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wallacelw/oh-my-coding-maas-gateway","commit_stats":null,"previous_names":["wallacelw/oh-my-litellm-opencode","wallacelw/oh-my-coding-maas-gateway"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wallacelw/oh-my-coding-maas-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallacelw%2Foh-my-coding-maas-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallacelw%2Foh-my-coding-maas-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallacelw%2Foh-my-coding-maas-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallacelw%2Foh-my-coding-maas-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wallacelw","download_url":"https://codeload.github.com/wallacelw/oh-my-coding-maas-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallacelw%2Foh-my-coding-maas-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35172975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","codex","gateway","huawei-maas","litellm","observability","opencode","proxy"],"created_at":"2026-07-06T00:00:14.093Z","updated_at":"2026-07-06T00:00:14.804Z","avatar_url":"https://github.com/wallacelw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oh-my-coding-maas-gateway\n\nLiteLLM proxy routing Huawei MaaS models to opencode, Codex CLI, Claude\nCode CLI, and Pi agent — with virtual keys, multi-key load balancing,\ndual-format endpoints, and Prometheus + Grafana observability.\n\n---\n\n## What Is This?\n\nA self-hosted gateway that sits between your coding tools and Huawei ModelArts\nMaaS, giving you load balancing, virtual keys, budget tracking, and\nobservability — all through a single local proxy.\n\n```\n  Tools               LiteLLM (:4000)                  Huawei MaaS\n  ─────               ───────────────                  ────────────\n\n  opencode    ──→ /v1/chat/completions ──→ openai/ provider    ──→ MaaS OpenAI endpoint\n  Codex CLI   ──→ /v1/responses        ──→ openai/ provider    ──→ MaaS OpenAI endpoint\n  Claude Code ──→ /v1/messages         ──→ anthropic/ provider ──→ MaaS Anthropic endpoint\n  Pi agent    ──→ /v1/chat/completions ──→ openai/ provider    ──→ MaaS OpenAI endpoint\n\n  LiteLLM: load-balances across N MaaS keys · PostgreSQL (:5432)\n  Observability: LiteLLM ──/metrics──→ Prometheus (:9090) ──→ Grafana (:3000)\n```\n\n**6 models:** glm-5.2, glm-5.1, glm-5, deepseek-v4-pro, deepseek-v4-flash,\ndeepseek-v3.2\n\n---\n\n## Install\n\nThe bootstrap script is the only installation method. It handles\neverything — prerequisites, Docker stack, coding tools, virtual keys,\nvalidation, and optional companion skill.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/wallacelw/oh-my-coding-maas-gateway/main/scripts/bootstrap.sh | bash\n```\n\nBootstrap will prompt for your Huawei MaaS API key, show an interactive\nmenu to select which coding tools to install, auto-install prerequisites,\ndeploy the proxy + observability stack, configure each tool with its own\nvirtual key, run validation, and offer to install the companion skill.\n\nEstimated time: ~5 min fresh, ~2 min upgrade. For flags and non-interactive\nusage, see [INSTALLATION.md](./INSTALLATION.md).\n\n### After install\n\n```bash\nopencode          # or:  codex  or:  claude --bare  or:  pi\n```\n\nMonitor at `http://localhost:3000` (Grafana) or `http://localhost:4000/ui`\n(LiteLLM Admin).\n\n---\n\n## Upgrade\n\nSame command — bootstrap detects existing install, compares versions, and\npulls updates. All secrets and data preserved.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/wallacelw/oh-my-coding-maas-gateway/main/scripts/bootstrap.sh | bash\n```\n\nAfter upgrade, restart any running coding tools — plugin/preset changes\nare not hot-reloaded.\n\n---\n\n## Companion Skill\n\nAfter installation, bootstrap offers to install\n[SKILL.md](./SKILL.md) as a skill into each detected coding agent. This\ngives your agents operational guidance — health diagnosis, key/model\nmanagement, debug routing, observability, and recovery.\n\n```bash\n./scripts/05_skill.sh --yes    # install manually anytime\n```\n\n---\n\n## Uninstall\n\n```bash\n./scripts/uninstall.sh --all --dry-run   # preview\n./scripts/uninstall.sh --tool=opencode   # remove one agent\n./scripts/uninstall.sh --all             # remove everything\n```\n\n---\n\n## Documentation\n\n| File | For | Description |\n|------|-----|-------------|\n| **[INSTALLATION.md](./INSTALLATION.md)** | Everyone | Install process, pipeline, flags, env vars, prerequisites, per-tool usage, monitoring, remote access, recovery, upgrade |\n| **[SKILL.md](./SKILL.md)** | Agents | Operational companion: install, upgrade, diagnose, key/model management, recovery |\n| **[REFERENCE.md](./REFERENCE.md)** | Everyone | Architecture, config, env vars, tool integration, repair guide, lifecycle |\n| **[CHANGELOG.md](./CHANGELOG.md)** | Everyone | Version history |\n| **[AGENTS.md](./AGENTS.md)** | Contributors | Development rules, validation, commit conventions |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallacelw%2Foh-my-coding-maas-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwallacelw%2Foh-my-coding-maas-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallacelw%2Foh-my-coding-maas-gateway/lists"}