GoModel CLAUDE.md

Project instructions for GoModel, a service that sends requests to different AI providers through one OpenAI-compatible API. They describe its design principles, configuration, routing, provider adapters, and logging.

In plain words
What is it for?
Use them when working on provider integrations, request translation, configuration, routing, response handling, or operational logs.
Why use it?
They help a coding agent change the gateway without breaking its shared request format or production-oriented structure.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/enterpilot/gomodel/claude-md
Clone the repo
git clone --depth 1 https://github.com/ENTERPILOT/GoModel
Per session 783 This file is loaded in full into every session.
When invoked 783 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00783 $0.00783
Opus 5 $0.00392 $0.00392
Sonnet 5 $0.00157 $0.00157
Haiku 4.5 $0.00078 $0.00078

Measured 2d ago against content hash 11137595a351, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

GoModel CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This project is GoModel - a high-performance, lightweight AI gateway that routes requests to multiple AI model providers through an OpenAI-compatible API.

Core Principles

Follow Postel’s Law

Accept user requests generously, adapt them to each provider’s requirements, and return conservative OpenAI-compatible responses.

Examples:

  • Accept max_tokens from users even when a provider expects another field.
  • Translate max_tokens to max_completion_tokens for OpenAI reasoning models when required.
  • Normalize provider responses into an OpenAI-compatible shape.

Follow The Twelve-Factor App

Prefer production-friendly service design:

  • Configuration through environment variables.
  • Stateless request handling.
  • Clear separation between configuration, routing, provider adapters, and runtime behavior.
  • Useful logs for containers and cloud environments.

Reference: https://12factor.net/

Keep It Simple

Keep files small.

Prefer explicit, maintainable code over clever abstractions.

Do not add abstractions until a repeated pattern clearly justifies them.

Use Good Defaults

Defaults should fit most users so well that they rarely need to change them.

When adding configuration:

  • Choose a safe, practical default.
  • Avoid requiring configuration for common use cases.
  • Document when and why users should override the default.

Implementation Guidance

When changing provider behavior:

  • Preserve the OpenAI-compatible public API.
  • Keep provider-specific logic isolated.
  • Avoid leaking provider-specific quirks into user-facing behavior.
  • Never expose API keys, authorization headers, or secrets in errors or logs.

When editing code:

  • Make the smallest change that solves the problem.
  • Use idiomatic Go.
  • Prefer clear names, small interfaces, simple structs, and table-driven tests.
  • Avoid hidden global state, unnecessary reflection, and premature optimization.
  • Add or update tests for behavior changes.

Tests should cover request translation, response normalization, error handling, default configuration, and provider-specific parameter mapping.

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 117 lines · 783 tokens per session scan A 11137595a351

Subscribe to this mod's changes

GoModel CLAUDE.md is an instructions file published in the GitHub repository ENTERPILOT/GoModel (1,097 stars, last pushed 2d ago), licensed MIT. It adds 783 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.