SkillsMay 12, 2026·2 min read

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.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 29/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 4353ff04-4c64-5259-837b-f146278a6c38 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

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 & Thanks

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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets