# cita-777/metapi

把你在各处注册的 New API / One API / OneHub / DoneHub / Veloera / AnyRouter / Sub2API 等站点， 汇聚成 一个 API Key、一个入口，自动发现模型、智能路由、成本最优

Repository: https://github.com/cita-777/metapi
Canonical: https://ross.abutalabs.com/products/metapi
Homepage: http://metapi.cita777.me/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-07-26T19:03:56+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 78, longevity 13
- inputs: {"age_days": 187, "days_push": 38, "days_rel": 149, "gap_med": 3.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3240, forks 512 (observed 2026-08-28T04:07:50.366719+00:00)

## What it is
Metapi is a self-hosted meta-aggregation gateway that unifies multiple AI relay/proxy sites (New API, One API, OneHub, DoneHub, Veloera, etc.) behind a single API key and endpoint. It automatically discovers models across upstreams, provides intelligent routing with cost optimization, and includes a web dashboard for account, token, and availability management.

## Use cases
- aggregate multiple AI relay site API keys into one endpoint
- route LLM requests to the cheapest available upstream
- automatically discover models across many New API / One API sites
- manage balances and tokens for multiple AI proxy accounts in one dashboard
- monitor availability of upstream AI relay stations
- give all my tools a single OpenAI-compatible API endpoint
- connect Codex, Claude, or Gemini CLI accounts via OAuth

## When to choose
- you juggle accounts on multiple New API / One API style relay sites
- you want one API key and endpoint for all your LLM tools
- you want automatic model discovery and cost-based routing across upstreams
- you want a self-hosted gateway deployable via Docker or desktop app

## When to avoid
- you only use one official LLM provider directly
- you need enterprise-grade gateway features like fine-grained team quotas or SSO
- you cannot host a service and only want a fully managed cloud product

## Facets
- artifact type: application
- maturity: active
- function: api-gateway, proxy, llm-inference, routing, monitoring, self-hosted, web-framework
- domain: artificial-intelligence, large-language-models, developer-tools, self-hosted, apis
- platform: cross-platform, self-hosted
- tags: llm-gateway, api-aggregation, new-api, one-api, meta-aggregation, cost-optimization, model-discovery, typescript, electron-desktop, docker, nodejs, web-server, desktop

## Member repositories
- cita-777/metapi (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:50.366719+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:43:55.431377+00:00, confidence not recorded.
  - readme: https://github.com/cita-777/metapi (fetched 2026-08-28T04:07:50.366719+00:00, sha 64d82b11758a)
  - homepage: http://metapi.cita777.me/ (fetched 2026-08-29T09:37:31.429233+00:00, sha 0994d34f7735)
  - site_page: https://metapi.cita777.me/getting-started (fetched 2026-08-29T09:37:31.438208+00:00, sha 705b51165314)
  - site_page: https://metapi.cita777.me/community/faq-tutorial-guidelines (fetched 2026-08-29T09:37:31.442553+00:00, sha 9bef3058a89b)
  - site_page: https://metapi.cita777.me/faq (fetched 2026-08-29T09:37:31.440542+00:00, sha 400ac98cabe2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
