Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 12, 2026·2 min de lectura

GoModel — OpenAI-Compatible AI Gateway

GoModel is a lightweight AI gateway in Go that exposes a unified OpenAI-compatible API across many providers, plus logging/analytics for cost and usage.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 29/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Stage only
Confianza
Confianza: Established
Entrada
Asset
Comando de staging seguro
npx -y tokrepo@latest install 4353ff04-4c64-5259-837b-f146278a6c38 --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

Introducción

GoModel is a lightweight AI gateway in Go that exposes a unified OpenAI-compatible API across many providers, plus logging/analytics for cost and usage.

  • Best for: Teams standardizing LLM access, routing, and cost tracking behind one gateway
  • Works with: Docker; OpenAI-compatible clients/SDKs; provider API keys via env vars (per README)
  • Setup time: 5–20 minutes

Practical Notes

  • GitHub: 865 stars · 69 forks; pushed 2026-05-12 (verified via GitHub API).
  • README shows docker run -p 8080:8080 and a first-call example to /v1/chat/completions.
  • README lists multiple providers (OpenAI, Anthropic, Gemini, DeepSeek, Groq, OpenRouter, Ollama, vLLM, Bedrock, etc.).

Main

Operational checklist for gateways:

  1. Prefer env files in production. README warns against passing secrets via -e on the command line.
  2. Log request IDs. Keep a request-id header in your clients so you can trace failures end-to-end.
  3. Start with one provider + one model. Add routing only after you have stable monitoring and quotas.
  4. Pin “model allowlists.” Expose only the models you approve (per README provider-model configuration patterns).

Treat the gateway as infrastructure: version it, monitor it, and keep credentials scoped and rotated.

FAQ

Q: Is it only for OpenAI? A: No—README says it provides an OpenAI-compatible API across many providers depending on credentials you set.

Q: Do I need to pass all keys? A: No—README says it detects available providers from the credentials you supply (at least one).

Q: How do I avoid leaking secrets? A: Use --env-file instead of -e and keep .env out of git history.

🙏

Fuente y agradecimientos

Source: https://github.com/ENTERPILOT/GoModel > License: MIT > GitHub stars: 865 · forks: 55

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados