CLI ToolsMay 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

This asset can be read and installed directly by agents

TokRepo exposes the CLI command, metadata JSON, install plan, and raw content links so agents can judge fit, risk, and next actions.

Needs Confirmation · 62/100Policy: confirm
Target
Gemini CLI
Kind
Cli
Install
Manual
Trust
Trust: Established
Entrypoint
docker run --rm -p 8080:8080 -e OPENAI_API_KEY=... enterpilot/gomodel
CLI install command
npx tokrepo install 4353ff04-4c64-5259-837b-f146278a6c38 --target codex
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