Cette page est affichée en anglais. Une traduction française est en cours.
CLI ToolsMay 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

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan spécifique à la cible et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Needs Confirmation · 62/100Policy : confirmer
Cible
Gemini CLI
Type
Cli
Installation
Manual
Confiance
Confiance : Established
Point d'entrée
docker run --rm -p 8080:8080 -e OPENAI_API_KEY=... enterpilot/gomodel
Commande CLI universelle
npx tokrepo install 4353ff04-4c64-5259-837b-f146278a6c38
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