Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·2 min de lecture

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.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 29/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install 4353ff04-4c64-5259-837b-f146278a6c38 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

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.

🙏

Source et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires