<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victor García</title>
    <description>The latest articles on DEV Community by Victor García (@victor_garca_a9d07ddc486).</description>
    <link>https://dev.to/victor_garca_a9d07ddc486</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4089983%2Fa7b83fd8-3ec2-4bae-8e28-730f65f45172.jpg</url>
      <title>DEV Community: Victor García</title>
      <link>https://dev.to/victor_garca_a9d07ddc486</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/victor_garca_a9d07ddc486"/>
    <language>en</language>
    <item>
      <title>When you need an Agent Gateway, not just another LLM proxy</title>
      <dc:creator>Victor García</dc:creator>
      <pubDate>Sun, 23 Aug 2026 04:11:23 +0000</pubDate>
      <link>https://dev.to/victor_garca_a9d07ddc486/when-you-need-an-agent-gateway-not-just-another-llm-proxy-3nff</link>
      <guid>https://dev.to/victor_garca_a9d07ddc486/when-you-need-an-agent-gateway-not-just-another-llm-proxy-3nff</guid>
      <description>&lt;h1&gt;
  
  
  When you need an Agent Gateway, not just another LLM proxy
&lt;/h1&gt;

&lt;p&gt;If your problem is "one OpenAI-compatible endpoint for 50 providers," a proxy like &lt;strong&gt;LiteLLM&lt;/strong&gt; is usually the right default. Huge catalog, huge community, good enough ops for most teams.&lt;/p&gt;

&lt;p&gt;If your problem is "agents that call tools (MCP) with the same identity, audit, budgets, and policy as model calls," a thinner &lt;strong&gt;Agent Gateway&lt;/strong&gt; starts to matter — one control plane so auth doesn't drift between chat completions and tool traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest fit table (no fake benches)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Need&lt;/th&gt;
&lt;th&gt;Usually start with&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Broadest provider catalog, ecosystem glue&lt;/td&gt;
&lt;td&gt;LiteLLM&lt;/td&gt;
&lt;td&gt;Depth beats novelty&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosted control plane, zero ops&lt;/td&gt;
&lt;td&gt;Portkey / Helicone-class&lt;/td&gt;
&lt;td&gt;Ops off your plate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-host, low overhead Go proxy&lt;/td&gt;
&lt;td&gt;Bifrost / similar&lt;/td&gt;
&lt;td&gt;Latency + governance focus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-host LLM &lt;strong&gt;+ MCP&lt;/strong&gt; same policy/identity&lt;/td&gt;
&lt;td&gt;Agent Gateway (e.g. TrustGate)&lt;/td&gt;
&lt;td&gt;One plane for models + tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;K8s/service-mesh native&lt;/td&gt;
&lt;td&gt;Envoy AI Gateway / Kong&lt;/td&gt;
&lt;td&gt;Fits existing mesh&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What "Agent Gateway" should mean
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI-compatible path for apps you already have&lt;/li&gt;
&lt;li&gt;MCP / tool gateway on the same identity + audit trail&lt;/li&gt;
&lt;li&gt;Fail-closed budgets / rate limits before the vendor 429s you&lt;/li&gt;
&lt;li&gt;Self-hostable so prompts stay in your perimeter&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Consumers + registries (the MCP aggregation plane)
&lt;/h2&gt;

&lt;p&gt;In practice the useful model is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Registries&lt;/strong&gt; hold upstream MCP servers and model providers (keys stay server-side).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consumers&lt;/strong&gt; get their own credentials into the gateway (per app / team / agent).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;tools/list&lt;/code&gt; is filtered per consumer&lt;/strong&gt; so agents never see tools they cannot call.&lt;/li&gt;
&lt;li&gt;The same consumer identity covers chat completions and &lt;code&gt;tools/call&lt;/code&gt;, so spend and audit line up.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is the wedge: not "another 100 providers," but one aggregation plane for models + tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try TrustGate (OSS, Apache-2.0)
&lt;/h2&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/NeuralTrust/TrustGate" rel="noopener noreferrer"&gt;https://github.com/NeuralTrust/TrustGate&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built in Go by NeuralTrust. Quickstart and "Why TrustGate" live in the README — including where it is &lt;em&gt;not&lt;/em&gt; the right pick vs LiteLLM/Helicone/Portkey.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: TrustGate / NeuralTrust DevRel.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>mcp</category>
      <category>go</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Agent Gateway in 60 Seconds: Governed LLM Traffic with TrustGate</title>
      <dc:creator>Victor García</dc:creator>
      <pubDate>Sat, 22 Aug 2026 17:20:35 +0000</pubDate>
      <link>https://dev.to/victor_garca_a9d07ddc486/agent-gateway-in-60-seconds-governed-llm-traffic-with-trustgate-2dac</link>
      <guid>https://dev.to/victor_garca_a9d07ddc486/agent-gateway-in-60-seconds-governed-llm-traffic-with-trustgate-2dac</guid>
      <description>&lt;h1&gt;
  
  
  Agent Gateway in 60 Seconds: Governed LLM Traffic with TrustGate
&lt;/h1&gt;

&lt;p&gt;Most teams start with a direct OpenAI (or Anthropic) SDK call. That works until you have three apps, two providers, and a security review asking who can call which model, at what rate, with what audit trail.&lt;/p&gt;

&lt;p&gt;An &lt;strong&gt;AI / Agent Gateway&lt;/strong&gt; sits between your apps (and agents) and every upstream model or tool. One place for routing, policy, and observability — without rewriting clients.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TrustGate&lt;/strong&gt; is NeuralTrust’s open-source, security-first Agent Gateway (Go). It fronts LLM APIs and MCP tool servers behind Admin / Proxy / MCP planes, so you change a base URL and two headers instead of scattering keys and rate limits across services.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get in one binary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plane&lt;/th&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;th&gt;Job&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Admin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;:8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateways, registries, consumers, auth, policies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Proxy&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;:8081&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OpenAI-compatible LLM traffic + plugins&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MCP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;:8082&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Aggregated Model Context Protocol endpoint for agents (e.g. Cursor)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Policies (rate limit, token rate limit, request size, semantic cache, CORS) run in the data path before traffic hits providers.&lt;/p&gt;

&lt;h2&gt;
  
  
  60-second bring-up
&lt;/h2&gt;

&lt;p&gt;Requires Docker (and &lt;code&gt;git&lt;/code&gt;). From a clean machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/NeuralTrust/TrustGate/main/scripts/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or, if you prefer the explicit path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/NeuralTrust/TrustGate.git &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;TrustGate
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
make up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Health checks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl localhost:8080/healthz   &lt;span class="c"&gt;# Admin&lt;/span&gt;
curl localhost:8081/healthz   &lt;span class="c"&gt;# Proxy&lt;/span&gt;
curl localhost:8082/healthz   &lt;span class="c"&gt;# MCP&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  First governed chat completion
&lt;/h2&gt;

&lt;p&gt;With TrustGate up and &lt;code&gt;OPENAI_API_KEY&lt;/code&gt; set, the repo ships a script that creates a demo gateway, registers OpenAI, mints a consumer key, and sends a chat completion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;OPENAI_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sk-..."&lt;/span&gt;
./examples/curl-first-request/first-request.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From an app, keep the OpenAI SDK — point it at the proxy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAI&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8081/my-app&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# /{consumer_slug}
&lt;/span&gt;    &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;unused&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# provider key lives in the gateway registry
&lt;/span&gt;    &lt;span class="n"&gt;default_headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;X-AG-Gateway-Slug&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;demo&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;X-AG-API-Key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CONSUMER_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gpt-4o-mini&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello through TrustGate&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}],&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full example: &lt;a href="https://github.com/NeuralTrust/TrustGate/tree/main/examples/openai-sdk" rel="noopener noreferrer"&gt;&lt;code&gt;examples/openai-sdk/&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus: one MCP endpoint for agents
&lt;/h2&gt;

&lt;p&gt;Agents shouldn’t each hold a private mesh of tool servers. TrustGate’s MCP plane (&lt;code&gt;:8082&lt;/code&gt;) aggregates registered MCP targets behind one endpoint with the same tenancy and policy model. Cursor setup notes live in &lt;a href="https://github.com/NeuralTrust/TrustGate/tree/main/examples/mcp-cursor" rel="noopener noreferrer"&gt;&lt;code&gt;examples/mcp-cursor/&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When TrustGate is the right fit
&lt;/h2&gt;

&lt;p&gt;Choose a gateway when you need &lt;strong&gt;central policy&lt;/strong&gt; (who / what / how fast), &lt;strong&gt;multi-provider routing with fallback&lt;/strong&gt;, and increasingly &lt;strong&gt;MCP aggregation&lt;/strong&gt; for agents — not only request logs.&lt;/p&gt;

&lt;p&gt;If you mainly want a thin multi-provider proxy, LiteLLM is a strong developer default. If you mainly want analytics, Helicone leads with observability. TrustGate’s wedge is &lt;strong&gt;governance and security in the data path&lt;/strong&gt;, including MCP.&lt;/p&gt;

&lt;p&gt;Docs: &lt;a href="https://docs.neuraltrust.ai" rel="noopener noreferrer"&gt;docs.neuraltrust.ai&lt;/a&gt; · Repo: &lt;a href="https://github.com/NeuralTrust/TrustGate" rel="noopener noreferrer"&gt;github.com/NeuralTrust/TrustGate&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If this was useful, the repo is here — stars help others find it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: TrustGate / NeuralTrust DevRel.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
