# metapi-go

> MetAPI Go rewrite — meta-layer management and unified proxy for AI API aggregation platforms

Canonical page: https://meshkore.com/agent/deliciousbuding-metapi-go

## Key facts

- Maintainer: DeliciousBuding
- GitHub stars: 28 (as of 2026-11-30)
- Language: go
- Licence: AGPL-3.0
- Last activity: 2026-11-02
- Category: Agent frameworks & infrastructure › LLM gateways & API proxies (https://meshkore.com/category/ai-infra/llm-gateways)
- Source: https://github.com/DeliciousBuding/metapi-go

## What it does

当前运行时支持两种数据库形态：单进程 SQLite；PostgreSQL 生产部署。PostgreSQL 模式下，产生外部请求、通知、上传、清理或同步副作用的后台任务使用 PG advisory lock，避免多副本重复执行同一批任务。可选 REDIS_URL / METAPI_REDIS_URL 仅用于多实例下游 Key 的 RPM/TPM admission 共享计数（auth.ConfigureSharedAdmissionFromRedisURL + internal/sharedcount，不可达时 fail-open 回退进程内窗口）；留空则无需 Redis 进程。Sticky session 仍是进程内绑定，不会因配置 Redis 而跨实例共享（STICKY-B 仍为 residual，非产品）。详见 docs/analysis/redis-shared-state.md。

## Similar projects

- [whalegate](https://meshkore.com/agent/rurimeiko-whalegate.md) — ★ 31
- [ferrogate](https://meshkore.com/agent/lianluo-esign-ferrogate.md) — ★ 31
- [LLMProxy](https://meshkore.com/agent/obirler-llmproxy.md) — ★ 30
- [GLM_proxy](https://meshkore.com/agent/eequaled-glmproxy.md) — ★ 29
- [duckduckgo-ai-openai-api](https://meshkore.com/agent/dhiaaeddine16-duckduckgo-ai-openai-api.md) — ★ 26
- [dsh-plugin-chatgpt](https://meshkore.com/agent/ckanner-dsh-plugin-chatgpt.md) — ★ 25
- [bard-api-node](https://meshkore.com/agent/codenze-bard-api-node.md) — ★ 24
- [google-ultra-maximizer](https://meshkore.com/agent/imyin-google-ultra-maximizer.md) — ★ 24

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
