<?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: Anthony Max</title>
    <description>The latest articles on DEV Community by Anthony Max (@anthonymax).</description>
    <link>https://dev.to/anthonymax</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%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg</url>
      <title>DEV Community: Anthony Max</title>
      <link>https://dev.to/anthonymax</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anthonymax"/>
    <language>en</language>
    <item>
      <title>How to Auto-Approve Pull Requests Safely: Testing It on a Real Repo</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Wed, 25 Nov 2026 16:39:01 +0000</pubDate>
      <link>https://dev.to/anthonymax/how-to-auto-approve-pull-requests-safely-testing-it-on-a-real-repo-3do</link>
      <guid>https://dev.to/anthonymax/how-to-auto-approve-pull-requests-safely-testing-it-on-a-real-repo-3do</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Hello everyone! Today, we can no longer imagine modern application development without artificial intelligence. Every day, thanks to GPT or Claude, we write thousands of lines of code.&lt;/p&gt;

&lt;p&gt;And AI agents can now do more than just write code. They can work on tasks, make changes in a repository and even open pull requests. It feels a bit like a software factory: you give an agent a task, and it comes back with a PR.&lt;/p&gt;

&lt;p&gt;But there is still one step where a person usually has to get involved: someone needs to review and approve that PR. And when agents can create changes much faster, the approval process can become a bottleneck.&lt;/p&gt;

&lt;p&gt;So what should you do? Can we automatically approve simple changes without letting every PR through? In this article, I want to test Qodo's approval workflows on a real repository. We'll look at both sides: a PR that can be automatically approved and a PR that should stay with a human reviewer.&lt;/p&gt;

&lt;p&gt;Well then, let’s begin! 🏎️&lt;/p&gt;




&lt;h2&gt;
  
  
  🔎 The idea is simple
&lt;/h2&gt;

&lt;p&gt;Yes, I may be stating the obvious, but using artificial intelligence to check code can help a reviewer spot things they might otherwise miss.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vb4dqi5qb4g1a7ehjz5.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vb4dqi5qb4g1a7ehjz5.gif" alt="cat" width="498" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes, but you might object to this and say, why would AI need to check what AI has written? Well, an agent can make mistakes too, and the person who gave it the task still needs a way to check the result. Let me give you a simple example: an agent might use &lt;code&gt;class&lt;/code&gt; instead of &lt;code&gt;className&lt;/code&gt; in JSX.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"myClass"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Depending on your project's configuration, a linter may catch this. But not every issue is as simple as a typo, and a reviewer still has to look at the change and decide what to do with it.&lt;/p&gt;

&lt;p&gt;Now let's think about this problem on a larger scale. Whether you work at a company or maintain an open-source project, you may have many PRs coming in from both people and agents. Some are small and routine, while others need a closer look from a person.&lt;/p&gt;

&lt;p&gt;So, in the next chapter, I would like to test a way to handle both!&lt;/p&gt;




&lt;h2&gt;
  
  
  🔗 Integrating AI into the PR review process for a project
&lt;/h2&gt;

&lt;p&gt;Today, it’s as simple as it gets, especially considering how much the industry has evolved recently. There are many companies that provide AI code review services.&lt;/p&gt;

&lt;p&gt;In my recent &lt;a href="https://dev.to/anthonymax/qodo-vs-coderabbit-vs-cubic-which-one-enforces-rules-instead-of-just-suggesting-them-gck"&gt;article&lt;/a&gt;, I already looked at the popular services available for this purpose and explained why I chose Qodo.&lt;/p&gt;

&lt;p&gt;In it, I examined all aspects in detail and compared the services based on what I consider to be the main selection criteria in this field. You can also take a look at it.&lt;/p&gt;

&lt;p&gt;In short, &lt;a href="https://docs.qodo.ai/core-concepts/qodo-platform-core-capabilities" rel="noopener noreferrer"&gt;Qodo&lt;/a&gt; goes beyond ordinary AI code review: it's a Code Governance platform that combines review, standards, cross-repo analysis and agentic workflows in one product.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbky5236g7n8v0bag8i1h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbky5236g7n8v0bag8i1h.webp" alt="Qodo" width="575" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you've set it up for your repository, Qodo can review your PRs. But what happens after that review? Let's find out!&lt;/p&gt;




&lt;h2&gt;
  
  
  💻 Configuring Policy-Driven Approval on a real repository
&lt;/h2&gt;

&lt;p&gt;Installing Qodo is extremely simple and won’t take much time. Just go to &lt;a href="https://github.com/marketplace/qodo-merge-pro" rel="noopener noreferrer"&gt;this&lt;/a&gt; page and connect the app to your repository.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F26od97n4csmlb8tl9sre.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F26od97n4csmlb8tl9sre.png" alt="Github marketplace" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, all that remains is to register on the &lt;a href="https://qodo.ai" rel="noopener noreferrer"&gt;website&lt;/a&gt;. The registration process there is as simple as can be.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozkp01jeetzpzues1j0r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozkp01jeetzpzues1j0r.png" alt="Account" width="800" height="522"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, you can choose a plan or opt for a trial. I won’t be covering that process in this article; let’s move on to the features.&lt;/p&gt;

&lt;p&gt;I set it up on my repository:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frt1ahy3s4qc5h3pgx5q8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frt1ahy3s4qc5h3pgx5q8.png" alt="repo" width="799" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ Policy-Driven Approval feature
&lt;/h3&gt;

&lt;p&gt;If you’ve worked with tools like these, you know that they simply generate a report on what’s in the code and what could be improved. This is helpful for a reviewer, but a significant gap remains: someone still has to approve the pull request so that a maintainer can merge it. And that’s where things get really interesting.&lt;/p&gt;

&lt;p&gt;If you have ever worked on a project or are currently working on one, you’ve probably noticed that the Approve process often repeats itself. As a reviewer, you follow the same verification script, whether you think about it or not.&lt;/p&gt;

&lt;p&gt;So, the main idea is that you can define rules for when a PR can be automatically approved. For example, a small change might be a good candidate, while a change in a sensitive part of the project might still need a person to look at it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmqqyzoxmry76cbaru1y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmqqyzoxmry76cbaru1y.png" alt="Approve" width="798" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It is important to note that an approval is not the same as an auto-merge. Whether a PR can be merged also depends on the repository's settings and other required checks.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  🧪 Test 1: a PR that can be automatically approved
&lt;/h3&gt;

&lt;p&gt;If you’ve done everything correctly, then by navigating to the &lt;strong&gt;Workflows&lt;/strong&gt; tab, you’ll see a list of your workflows (what a surprise). Let’s add our first workflow here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9tita2dg9eyx68ic35x1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9tita2dg9eyx68ic35x1.png" alt="Add" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’ll call it simply "My new workflow", but you can name it whatever you like. Next, I’ll add the conditions under which my pull request will be automatically approved. To do this, I’ll click the &lt;strong&gt;Add condition&lt;/strong&gt; button and set up my own rules for GitHub.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frydqahdjn6ib8loy6pfh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frydqahdjn6ib8loy6pfh.png" alt="Workflow" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once configured, simply click the &lt;strong&gt;Create workflow&lt;/strong&gt; button. Note that there is also an &lt;strong&gt;active&lt;/strong&gt; toggle; if enabled, your workflow will immediately begin running for all subsequent pull requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs31mdroj6wpv7f0xj8te.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs31mdroj6wpv7f0xj8te.png" alt="create" width="369" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that our workflow has been created, we can activate it and check whether Qodo is able to approve it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fibf1onfgaf0gp814wm8c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fibf1onfgaf0gp814wm8c.png" alt="my workflow" width="799" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will create a simple pull request as a test, adding social media links to the website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F73ofus3i2tlxo8l3rjx2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F73ofus3i2tlxo8l3rjx2.png" alt="Pull Request" width="800" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, Qodo, which we added earlier, will start working for me, and if everything is fine with the code, it will let me know that it’s ready for merging.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhubz7o4fgwm5otq7egz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhubz7o4fgwm5otq7egz.png" alt="Report" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1pantyzc7igwpjfg6th4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1pantyzc7igwpjfg6th4.png" alt="Approve" width="800" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And hurray, our code was approved! But that doesn't mean the PR has been merged or that other repository checks can be ignored.&lt;/p&gt;

&lt;h3&gt;
  
  
  🗝️ Test 2: keeping a PR with a human reviewer
&lt;/h3&gt;

&lt;p&gt;Okay, but what if a PR shouldn't be automatically approved? This is just as important as the first test. We don't want to set up a workflow that treats every change in the same way.&lt;/p&gt;

&lt;p&gt;For the second test, I'll configure a Guard for a case that should require a person to review the PR. Then I'll create another test PR that matches that case.&lt;/p&gt;

&lt;p&gt;To begin, let’s create a Guard. To do this, click the &lt;strong&gt;Approval guards&lt;/strong&gt; button:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6gzsexr9p55xsxugwxtx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6gzsexr9p55xsxugwxtx.png" alt="guard" width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s configure Guard. There are only a few settings, so the whole process takes just about five minutes. You can select the scope for your repositories and, if you wish, specify certain users whose contributions should never be subject to &lt;strong&gt;Auto Approve&lt;/strong&gt; by Qodo, even when the code is perfectly fine. This can be particularly useful when dealing with code generated by an AI bot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxwk4ceg1f8l56nahhlum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxwk4ceg1f8l56nahhlum.png" alt="Guard Config" width="675" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If everything is done correctly, the following will appear:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsim1n3jgm02hh6e1vfio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsim1n3jgm02hh6e1vfio.png" alt="result" width="490" height="75"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s try applying these changes to the pull request I created earlier. Qodo has approved it, but what happens if I add further changes in a subsequent commit using my own account?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0xgdd6v1rb5y2advz2td.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0xgdd6v1rb5y2advz2td.png" alt="changes" width="235" height="79"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I added the changes (just changed “twitter” to “x”); there’s no error in them. Since I'd added a Guard for my account after the first approval, the new commit triggered a re-check, and the PR now matched the Guard:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjf6v3y095c7ec5ume3ih.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjf6v3y095c7ec5ume3ih.png" alt="reject approved" width="740" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Qodo withdrew its approval, even though the code is fine, and that’s because I’ve now configured it so that it no longer happens from my account.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqhv0h3ei28vq2ztudjei.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqhv0h3ei28vq2ztudjei.png" alt="config" width="479" height="84"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And in the future, my pull requests will no longer be auto-approved. This is a very useful feature, let's say, when configuring it for code generated by bots, or when a new employee joins the company.&lt;/p&gt;

&lt;p&gt;And that’s not all! If someone commits an incorrect code, the approval will also be removed, for example.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏭 Why this matters for a software factory
&lt;/h2&gt;

&lt;p&gt;I was thinking about how this could work in a software factory, where AI agents work on tasks, write code and open pull requests. That's great, but someone still needs to approve those PRs. Approval workflows and Guards can help make that process more manageable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Handle routine PRs:&lt;/strong&gt; Changes that meet your conditions can be approved automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a person involved:&lt;/strong&gt; Guards can exclude certain contributors from automatic approval, so their PRs need a human reviewer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apply the same rules:&lt;/strong&gt; You define the conditions once and use them across matching pull requests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep your merge checks:&lt;/strong&gt; An approval doesn't replace the other checks and requirements configured for your repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, instead of checking every PR in exactly the same way, you can decide which changes need your attention and which ones can follow the rules you've already set.&lt;/p&gt;




&lt;h2&gt;
  
  
  🖋️ Conclusion
&lt;/h2&gt;

&lt;p&gt;In this article, we tried out Qodo's approval workflows on a real repository. For the first test, I created a simple PR that added social media links to the website, and Qodo approved it based on the workflow conditions.&lt;/p&gt;

&lt;p&gt;But automatic approval isn't something I'd want to use for every PR. I sometimes use AI agents to help me write code, and even when the result looks good at first glance, I still want to check what the agent has actually changed. That's why I also configured an Approval Guard for contributions from a specific user.&lt;/p&gt;

&lt;p&gt;Of course, the result depends on the rules you configure. An approval also doesn't mean that a PR has been merged or that other required checks have passed. So before relying on a workflow, it's worth testing both the cases you want to approve automatically and the ones you want to keep for a human reviewer.&lt;/p&gt;

&lt;p&gt;For me, that's the most interesting part: you can automate some of the routine without giving up control over the changes that you want to review yourself.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔗 Links:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Qodo Site&lt;/strong&gt;: &lt;a href="https://qodo.ai" rel="noopener noreferrer"&gt;https://qodo.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Qodo Docs&lt;/strong&gt;: &lt;a href="https://docs.qodo.ai" rel="noopener noreferrer"&gt;https://docs.qodo.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code Review Academy&lt;/strong&gt;: &lt;a href="https://www.qodo.ai/academy" rel="noopener noreferrer"&gt;https://www.qodo.ai/academy&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code review tools&lt;/strong&gt;: &lt;a href="https://www.qodo.ai/academy/ai-code-review-tools-comparison-and-benchmarks" rel="noopener noreferrer"&gt;https://www.qodo.ai/academy/ai-code-review-tools-comparison-and-benchmarks&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading this article! ❤️&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I'd love to hear your thoughts on this plugin in the comments!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbtxmqls5kzofyy2uwt3m.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbtxmqls5kzofyy2uwt3m.jpg" alt="thanks" width="563" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:55:22 +0000</pubDate>
      <link>https://dev.to/anthonymax/-1mfo</link>
      <guid>https://dev.to/anthonymax/-1mfo</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21" class="crayons-story__hidden-navigation-link"&gt;9 Best Agent Gateways&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
      &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21" class="crayons-article__context-note crayons-article__context-note__feed"&gt;&lt;p&gt;Compares self-hosted and cloud AI routing options&lt;/p&gt;

&lt;/a&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/anthonymax" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" alt="anthonymax profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/anthonymax" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anthony Max
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anthony Max
                &lt;a href="/++"&gt;&lt;img alt="Subscriber" class="subscription-icon" src="https://assets.dev.to/assets/subscription-icon-805dfa7ac7dd660f07ed8d654877270825b07a92a03841aa99a1093bd00431b2.png"&gt;&lt;/a&gt;
                
              
              &lt;div id="story-author-preview-content-5093515" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/anthonymax" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anthony Max&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 24&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21" id="article-link-5093515"&gt;
          9 Best Agent Gateways
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/agents"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;agents&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;104&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/anthonymax/9-best-agent-gateways-1f21#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              6&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            16 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
    </item>
    <item>
      <title>9 Best Agent Gateways</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Tue, 24 Nov 2026 16:15:54 +0000</pubDate>
      <link>https://dev.to/anthonymax/9-best-agent-gateways-1f21</link>
      <guid>https://dev.to/anthonymax/9-best-agent-gateways-1f21</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An agent gateway gives applications and agents one place to connect to model providers and tools. Depending on the project, it can also handle routing, retries, budgets, access controls, caching and request logs.&lt;/li&gt;
&lt;li&gt;The nine gateways here take different approaches: Bifrost, Kong, Agent Router, Apache APISIX, LiteLLM, Amazon Bedrock AgentCore Gateway, Azure API Management AI gateway, Cloudflare AI Gateway and Vercel AI Gateway.&lt;/li&gt;
&lt;li&gt;Bifrost is a strong option for teams that want a self-hosted gateway with model, MCP and agent traffic controls. Its commercial Edge product can also route AI traffic from employee devices.&lt;/li&gt;
&lt;li&gt;Agent support varies. Check each gateway's tool and protocol support, deployment model and feature boundaries before adopting it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few years ago, many teams adopted gateways to centralize provider keys and billing. Those needs have not gone away, but teams now also have to think about model choice, reliability, usage limits and the growing number of tools connected to agents.&lt;/p&gt;

&lt;p&gt;The projects in this list are not interchangeable. Some focus on model routing, while others build AI features on top of a broader API or service-mesh stack. This article compares nine agent gateways, looking at how they handle models, tools, deployment and operational controls.&lt;/p&gt;




&lt;h2&gt;
  
  
  What an agent gateway does
&lt;/h2&gt;

&lt;p&gt;At a basic level, an agent gateway is a shared point for traffic between applications, agents, model providers and tools. It can handle provider-specific formats, routing and retries across services such as OpenAI, Anthropic, AWS Bedrock and Google Vertex AI. Some gateways also manage MCP servers, tool permissions or agent-to-agent traffic.&lt;/p&gt;

&lt;p&gt;Some projects add budgets, access controls, audit trails and caching. Others focus on getting requests to the right model with low operational overhead. The right choice depends on which of those jobs you need the gateway to do.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to choose an agent gateway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Provider coverage.&lt;/strong&gt; Confirm the providers and API formats your application needs today, then check how new providers are added.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reliability and latency.&lt;/strong&gt; Look for retries, fallbacks and load balancing. Treat benchmark numbers as a starting point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment and license.&lt;/strong&gt; Check whether the gateway is self-hosted, managed or both, and distinguish open-source components from paid hosting, support or enterprise features.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operations.&lt;/strong&gt; Consider how the project handles secrets, budgets, access controls, logs and upgrades. A gateway still needs someone to run it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP and agent support.&lt;/strong&gt; If your applications call tools, check whether the gateway routes or governs MCP traffic, and how identity and permissions work.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The nine gateways at a glance
&lt;/h2&gt;

&lt;p&gt;Here is the short version. Bifrost, LiteLLM, Amazon Bedrock AgentCore Gateway, Azure API Management AI gateway, Cloudflare AI Gateway and Vercel AI Gateway focus on model traffic and related controls. Bifrost, Agent Router, Amazon Bedrock AgentCore Gateway and Azure API Management also offer options for agent and tool traffic. These nine gateways differ in agent support, deployment and feature boundaries.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gateway&lt;/th&gt;
&lt;th&gt;Form factor&lt;/th&gt;
&lt;th&gt;Model coverage&lt;/th&gt;
&lt;th&gt;Routing and reliability&lt;/th&gt;
&lt;th&gt;Agent tooling&lt;/th&gt;
&lt;th&gt;Deployment&lt;/th&gt;
&lt;th&gt;A good fit when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bifrost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Standalone Go gateway&lt;/td&gt;
&lt;td&gt;25+ providers, 10,000+ models&lt;/td&gt;
&lt;td&gt;Retries, fallbacks, load balancing&lt;/td&gt;
&lt;td&gt;Native MCP gateway and A2A Agent Gateway&lt;/td&gt;
&lt;td&gt;Self-hosted; Enterprise adds options&lt;/td&gt;
&lt;td&gt;You want one gateway for models and agents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Kong AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;AI features in Kong Gateway&lt;/td&gt;
&lt;td&gt;Major hosted and self-hosted APIs&lt;/td&gt;
&lt;td&gt;Routing, load balancing, plugins&lt;/td&gt;
&lt;td&gt;AI MCP Proxy plugins&lt;/td&gt;
&lt;td&gt;Self-hosted or Konnect&lt;/td&gt;
&lt;td&gt;Kong already runs your APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agent Router&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Envoy Gateway control plane and CLI&lt;/td&gt;
&lt;td&gt;Hosted and self-hosted providers&lt;/td&gt;
&lt;td&gt;Central routing, quotas and failover&lt;/td&gt;
&lt;td&gt;AI and MCP traffic&lt;/td&gt;
&lt;td&gt;Kubernetes or standalone CLI&lt;/td&gt;
&lt;td&gt;Your platform is built on Envoy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Apache APISIX&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;API gateway with AI plugins&lt;/td&gt;
&lt;td&gt;OpenAI, Anthropic, Bedrock and more&lt;/td&gt;
&lt;td&gt;Multi-provider proxy, balancing and retries&lt;/td&gt;
&lt;td&gt;OpenAPI-to-MCP plugin&lt;/td&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;You want an open-source API and AI gateway&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LiteLLM&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Python SDK and proxy&lt;/td&gt;
&lt;td&gt;100+ providers&lt;/td&gt;
&lt;td&gt;Routing, retries, fallbacks&lt;/td&gt;
&lt;td&gt;MCP gateway&lt;/td&gt;
&lt;td&gt;Self-hosted proxy&lt;/td&gt;
&lt;td&gt;Your stack is Python-first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Amazon Bedrock AgentCore Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed AI gateway&lt;/td&gt;
&lt;td&gt;Multiple model providers, APIs and tools&lt;/td&gt;
&lt;td&gt;Model-based routing and unified access&lt;/td&gt;
&lt;td&gt;MCP tools and A2A traffic&lt;/td&gt;
&lt;td&gt;AWS managed service&lt;/td&gt;
&lt;td&gt;You want a managed entry point for agents, tools and models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Azure API Management AI gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;AI features in API Management&lt;/td&gt;
&lt;td&gt;OpenAI, Anthropic, Vertex AI, Bedrock and more&lt;/td&gt;
&lt;td&gt;Load balancing, quotas and policies&lt;/td&gt;
&lt;td&gt;MCP servers and A2A agent APIs&lt;/td&gt;
&lt;td&gt;Azure API Management&lt;/td&gt;
&lt;td&gt;You want AI governance within Azure API Management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cloudflare AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed gateway&lt;/td&gt;
&lt;td&gt;Multiple model providers&lt;/td&gt;
&lt;td&gt;Routing, retries and fallbacks&lt;/td&gt;
&lt;td&gt;Model gateway for agent applications&lt;/td&gt;
&lt;td&gt;Cloudflare&lt;/td&gt;
&lt;td&gt;You want managed routing and observability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Vercel AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed gateway&lt;/td&gt;
&lt;td&gt;Multiple model providers&lt;/td&gt;
&lt;td&gt;Routing and provider fallbacks&lt;/td&gt;
&lt;td&gt;Tool calls via supported models&lt;/td&gt;
&lt;td&gt;Hosted, usable from any cloud&lt;/td&gt;
&lt;td&gt;You want managed model access for apps and coding agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The sections below look at what each project does well, where it fits and what to check before adopting it.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Bifrost: A gateway for models, MCP and agents
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.getmaxim.ai/bifrost" rel="noopener noreferrer"&gt;Bifrost&lt;/a&gt; is an &lt;a href="https://github.com/maximhq/bifrost" rel="noopener noreferrer"&gt;open-source&lt;/a&gt; LLM gateway for enterprise AI, licensed under Apache 2.0 and written in Go. It provides one OpenAI-compatible interface to more than 10,000 models across 25+ providers. With its &lt;a href="https://docs.getbifrost.ai/features/drop-in-replacement" rel="noopener noreferrer"&gt;drop-in setup&lt;/a&gt;, an existing app can usually switch over by changing its base URL. Bifrost ships as a single binary and can run on a VM, in Kubernetes, in a private cloud or on a disconnected network.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bwfj0ulfxjrlqn4se6i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bwfj0ulfxjrlqn4se6i.png" alt="Bifrost" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Performance is one of Bifrost's main selling points. Bifrost adds about &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;11 microseconds of overhead at 5,000 requests per second&lt;/a&gt; on a single t3.xlarge, with a 100% success rate. In an AWS EC2 comparison with 500 concurrent users over 60 seconds, &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;Bifrost handled 424 requests per second while LiteLLM handled 44.84, with P99 latencies of 1.68 seconds and 90.72 seconds, respectively&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For governance, &lt;a href="https://docs.getbifrost.ai/features/governance/virtual-keys" rel="noopener noreferrer"&gt;virtual keys&lt;/a&gt; let teams set budgets and rate limits by key, team, customer or model. The Enterprise tier connects to identity providers such as Okta, Microsoft Entra, Keycloak, Zitadel, Auth0 and Google Workspace, as well as other OIDC providers. It also adds SCIM 2.0 directory sync, detailed role-based access control, data access controls and reusable access profiles.&lt;/p&gt;

&lt;p&gt;Routing supports weighted load balancing, retries with backoff and &lt;a href="https://docs.getbifrost.ai/features/fallbacks" rel="noopener noreferrer"&gt;automatic fallbacks&lt;/a&gt;. &lt;a href="https://docs.getbifrost.ai/features/semantic-caching" rel="noopener noreferrer"&gt;Semantic caching&lt;/a&gt;, backed by Redis, Qdrant, Weaviate or Pinecone, can return stored answers for similar prompts.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2024540241844224013-487" src="https://platform.twitter.com/embed/Tweet.html?id=2024540241844224013"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2024540241844224013-487');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2024540241844224013&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.getbifrost.ai/mcp/overview" rel="noopener noreferrer"&gt;MCP gateway&lt;/a&gt; controls which MCP servers and tools agents can use. Access can be filtered at the client, request and virtual-key levels, with per-user OAuth so each person connects using their own account. Code Mode takes a different approach to large tool sets: instead of loading every tool definition into the model context, the model writes a short script to coordinate the tools it needs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.getmaxim.ai/bifrost/blog/bifrost-mcp-gateway-access-control-cost-governance-and-92-lower-token-costs-at-scale" rel="noopener noreferrer"&gt;Code Mode reduces input token use by up to 92.8%&lt;/a&gt;. In a 508-tool test, Code Mode reduced costs from &lt;a href="https://www.getmaxim.ai/bifrost/blog/bifrost-mcp-gateway-access-control-cost-governance-and-92-lower-token-costs-at-scale" rel="noopener noreferrer"&gt;$377 to $29&lt;/a&gt;, with all tasks passing. The linked MCP gateway write-up has the full results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.getmaxim.ai/edge" rel="noopener noreferrer"&gt;Bifrost Edge&lt;/a&gt; extends those controls to AI tools running on employee devices. Available for macOS, Windows and Linux, it routes traffic from desktop chat apps, browser-based AI, terminal coding agents and their MCP servers through the Bifrost gateway after a one-time SSO sign-in. Edge routes AI traffic only and does not inspect other device activity.&lt;/p&gt;

&lt;p&gt;Gateway virtual keys, budgets and &lt;a href="https://docs.getbifrost.ai/enterprise/guardrails" rel="noopener noreferrer"&gt;guardrails&lt;/a&gt; can then apply to those tools, including content safety, PII and secret detection on requests and responses, as well as integrations with AWS Bedrock Guardrails, Azure Content Safety, Google Model Armor, CrowdStrike AIDR and Check Point Guard. Administrators can &lt;a href="https://docs.getbifrost.ai/edge/app-governance" rel="noopener noreferrer"&gt;allow or block apps&lt;/a&gt; and &lt;a href="https://docs.getbifrost.ai/edge/mcp-governance" rel="noopener noreferrer"&gt;MCP servers&lt;/a&gt; centrally. Rules are enforced on the device. Rollout can use existing device management tools such as Jamf, Intune, Kandji, Omnissa Workspace ONE or JumpCloud.&lt;/p&gt;

&lt;p&gt;For regulated environments, the Enterprise tier adds &lt;a href="https://docs.getbifrost.ai/enterprise/clustering" rel="noopener noreferrer"&gt;clustering&lt;/a&gt;, adaptive load balancing with circuit breakers, signed &lt;a href="https://docs.getbifrost.ai/enterprise/audit-logs" rel="noopener noreferrer"&gt;audit logs&lt;/a&gt;, and integrations with AWS Secrets Manager, GCP Secret Manager and HashiCorp Vault. It also supports in-VPC, on-premises and air-gapped deployments, where prompts and responses can stay within your infrastructure. Bifrost is &lt;a href="https://trust.getmaxim.ai" rel="noopener noreferrer"&gt;SOC 2 Type II, ISO 27001, HIPAA and GDPR compliant&lt;/a&gt;, and &lt;a href="https://www.getmaxim.ai/enterprise" rel="noopener noreferrer"&gt;Fortune 500 companies run it in production&lt;/a&gt; across several industries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;Bifrost fits best when a team wants model, MCP and agent traffic controls in one gateway, especially in a self-hosted, VPC-isolated, on-premises or air-gapped environment.&lt;/p&gt;

&lt;p&gt;Identity-based governance, clustering, adaptive load balancing, guardrail and vault integrations, and in-VPC deployment are part of the paid Enterprise tier, not the open-source core. Edge also requires an Enterprise gateway and is priced per endpoint.&lt;/p&gt;

&lt;p&gt;A limited pilot can help validate the endpoint rollout before expanding it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams that need to manage model, MCP and agent traffic from one gateway, especially when they have strict deployment or governance requirements. Bifrost supports self-hosted, VPC-isolated, on-premises and air-gapped environments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/maximhq/bifrost" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the Bifrost repository ☆&lt;/a&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Kong AI Gateway: AI features in an established API platform
&lt;/h2&gt;

&lt;p&gt;Kong AI Gateway adds AI-specific features to Kong's established API gateway. If your APIs already run on Kong, you can use the same control plane, plugin model and operational setup for model traffic. The AI features include provider routing, token-based rate limits, prompt guard plugins, semantic caching and semantic routing across models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4jtgis3bcp6cwgk4nmm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4jtgis3bcp6cwgk4nmm.png" alt="Kong" width="800" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Kong added MCP support in Gateway 3.12 in October 2025, as noted in its &lt;a href="https://developer.konghq.com/gateway/changelog/#3-12-x" rel="noopener noreferrer"&gt;Gateway changelog&lt;/a&gt;. Its &lt;a href="https://developer.konghq.com/plugins/ai-mcp-proxy/" rel="noopener noreferrer"&gt;AI MCP Proxy plugin&lt;/a&gt; can expose REST APIs as MCP tools or sit in front of an MCP server. Access controls apply both when clients discover tools and when they invoke them. A companion &lt;a href="https://developer.konghq.com/plugins/ai-mcp-oauth2/" rel="noopener noreferrer"&gt;OAuth2 plugin&lt;/a&gt; handles authentication for MCP traffic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;The main trade-offs are licensing and operational scope. Kong's documentation lists the &lt;a href="https://developer.konghq.com/plugins/ai-mcp-proxy/" rel="noopener noreferrer"&gt;MCP plugins&lt;/a&gt; as part of its AI Gateway Enterprise offering, and labels the &lt;a href="https://developer.konghq.com/plugins/ai-mcp-oauth2/" rel="noopener noreferrer"&gt;OAuth2 plugin&lt;/a&gt; as a tech preview. If Kong is not already in your stack, deploying the full API gateway platform just for model traffic may be more than you need.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Organizations that already use Kong and want to manage AI traffic through their existing control plane.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Agent Router: Envoy-based routing for Kubernetes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/theagentrouter/agent-router" rel="noopener noreferrer"&gt;Agent Router&lt;/a&gt;, formerly Envoy AI Gateway, is an Apache 2.0 project for managing access to hosted models, self-hosted inference and MCP servers. It provides an OpenAI-compatible API and is built around Envoy Gateway. The repository has moved to theagentrouter, but project documentation says the API resources, API group, CLI name and image paths remain unchanged.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0rt1me9ipke2kkxn8wa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0rt1me9ipke2kkxn8wa.png" alt="Agent Router" width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;The project describes a two-tier pattern: one gateway handles shared authentication, routing and global limits, while another can manage traffic to self-hosted inference. It also offers a standalone CLI for local use, which makes it possible to try the API before deploying the Kubernetes components.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;The trade-off is its platform focus. Teams already operating Envoy Gateway and Kubernetes have a clear path to evaluate it. For a small application that just needs a lightweight proxy, a simpler gateway may involve less setup. Its documentation and release notes are the best places to check the current status of specific providers and features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Platform teams using Envoy Gateway or Kubernetes that want an open-source control plane for model and tool traffic.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Apache APISIX: Open-source AI plugins in an API gateway
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Apache APISIX is an Apache Software Foundation project licensed under Apache 2.0. Its open-source API gateway includes AI plugins for connecting to model providers, routing requests across instances, balancing traffic, retrying failures and limiting usage by tokens. The &lt;code&gt;ai-proxy&lt;/code&gt; plugin supports documented providers and OpenAI-compatible APIs, while &lt;code&gt;ai-proxy-multi&lt;/code&gt; adds multi-instance load balancing and fallback behavior. The &lt;code&gt;ai-rate-limiting&lt;/code&gt; plugin applies token quotas.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb573quq6kdcyj2p8bcb6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb573quq6kdcyj2p8bcb6.png" alt="Apache APISIX" width="799" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;APISIX also has an &lt;code&gt;openapi-to-mcp&lt;/code&gt; plugin that exposes operations from an OpenAPI document as MCP tools. This is a useful contrast with Kong: APISIX's AI plugins are part of its open-source project, while Kong documents its MCP Proxy plugins as Enterprise features.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;Because APISIX is a full API gateway, teams adopting it for AI traffic also take on its broader gateway configuration and operations. Its plugin model suits teams that want to manage API and model traffic together, with the AI capabilities available in the open-source project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Platform teams that want an open-source API and AI gateway with multi-provider routing, token limits and MCP support.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. LiteLLM: Broad provider support and a Python-first workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;LiteLLM is a common starting point for teams building with language models. It combines an MIT-licensed Python SDK with a self-hosted proxy that supports more than 100 providers, virtual keys, budgets, routing, fallbacks, guardrails and an MCP gateway. Semantic caching supports Qdrant, Valkey and Redis.&lt;/p&gt;

&lt;p&gt;LiteLLM recommends semantic caching for single-shot prompts rather than multi-turn agent traffic, as explained in its &lt;a href="https://docs.litellm.ai/docs/proxy/caching_semantic" rel="noopener noreferrer"&gt;documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A paid enterprise license adds &lt;a href="https://docs.litellm.ai/docs/tutorials/scim_litellm" rel="noopener noreferrer"&gt;SCIM&lt;/a&gt;, &lt;a href="https://docs.litellm.ai/docs/proxy/audit_logs" rel="noopener noreferrer"&gt;audit logs&lt;/a&gt; and some guardrail integrations. &lt;a href="https://docs.litellm.ai/docs/enterprise" rel="noopener noreferrer"&gt;Admin UI SSO&lt;/a&gt; is free for up to five users.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrmtdjqvr9odb01aafky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrmtdjqvr9odb01aafky.png" alt="LiteLLM" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Trade-offs
&lt;/h3&gt;

&lt;p&gt;Two considerations are worth a closer look. In an AWS EC2 test with 500 concurrent users over 60 seconds, &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;Bifrost handled 424 requests per second with a P99 latency of 1.68 seconds, while LiteLLM handled 44.84 requests per second with a P99 latency of 90.72 seconds&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There was also a supply-chain incident. Malicious PyPI versions 1.82.7 and 1.82.8 were published on March 24, 2026. LiteLLM's &lt;a href="https://docs.litellm.ai/blog/security-update-march-2026" rel="noopener noreferrer"&gt;security update&lt;/a&gt; says it believes the compromise originated from the Trivy dependency used in its CI/CD security-scanning workflow. The affected versions were removed. The incident involved a compromised package release rather than a vulnerability in LiteLLM's gateway code, and highlights the value of pinning dependencies and mirroring packages internally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Python-focused teams with moderate traffic that value a broad provider ecosystem and can operate and secure a self-hosted service.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Amazon Bedrock AgentCore Gateway: Managed access for agents, tools and models
&lt;/h2&gt;

&lt;p&gt;Amazon Bedrock AgentCore Gateway is a managed AI gateway that provides a single entry point for agent traffic to tools, other agents and models. It can turn APIs, Lambda functions and existing services into MCP-compatible tools, and route inference requests across model providers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ovrgiok2sxlh58elu5h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ovrgiok2sxlh58elu5h.png" alt="Amazon" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;The gateway can combine APIs, functions, tools, agents and model providers behind one endpoint. It supports inbound and outbound authentication, credential exchange, semantic tool discovery and agent-to-agent traffic, with built-in observability and auditing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;As a fully managed AWS service, AgentCore Gateway may suit teams building on Amazon Bedrock that want to connect agents to existing tools without operating gateway infrastructure. Its AWS service scope and supported features should be checked against deployment and provider requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams building on AWS that want managed access to agent tools, other agents and models through one gateway.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Azure API Management: AI gateway capabilities for models and agents
&lt;/h2&gt;

&lt;p&gt;Azure API Management includes AI gateway capabilities for managing AI backends, models, agents and tools. It can manage language model APIs from Microsoft Foundry and other providers, remote MCP servers, A2A agent APIs, and self-hosted models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvsjiupxdrh1e96xkctak.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvsjiupxdrh1e96xkctak.png" alt="Azure" width="800" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;The AI gateway extends API Management's existing API gateway. It can authenticate and authorize access, load balance across AI endpoints, monitor and log interactions, manage token usage and quotas, expose REST APIs as MCP servers, and import A2A agent APIs. The &lt;a href="https://learn.microsoft.com/en-us/azure/api-management/unified-model-api" rel="noopener noreferrer"&gt;unified model API&lt;/a&gt; is generally available in v2 tiers and available through early access for classic tiers via the AI Gateway Early release channel.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;This option suits organizations already using Azure API Management that want to govern models, MCP servers and agent APIs through the same platform. Available capabilities vary by API Management tier, so check that the required features are included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams that want to manage AI models, MCP servers and agent APIs through Azure API Management.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Cloudflare AI Gateway: Managed routing and observability
&lt;/h2&gt;

&lt;p&gt;Cloudflare AI Gateway is a managed gateway for observing and controlling AI applications. It supports multiple model providers and provides analytics, request logging, caching, rate limiting, retries and model fallbacks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhojz6hhy1ht5eof030ts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhojz6hhy1ht5eof030ts.png" alt="Cloudflare AI Gateway" width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Applications can send requests through the gateway to supported providers. Model aliases and routing rules can choose providers and fallback models, while analytics and logs provide visibility into requests, token use, cost and errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;Cloudflare AI Gateway is a managed service, so teams do not need to operate a gateway themselves. Its documented focus is model traffic and application-level controls; teams that need gateway-managed MCP servers or agent-to-agent routing should check whether they need an additional component.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams that want managed model routing, observability and traffic controls without running a gateway.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Vercel AI Gateway: Managed model access for apps and coding agents
&lt;/h2&gt;

&lt;p&gt;Vercel AI Gateway provides a hosted API for accessing models across providers. It centralizes credentials, request logs, cost tracking, budgets, prompt caching and provider failover. Applications can use it from any cloud or language, and the documentation includes support for coding agents.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyrsaf6h93ojll23xyetf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyrsaf6h93ojll23xyetf.png" alt="Vercel" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;The gateway can route requests across providers and fallback models, then record status, provider, latency, token usage, cost and routing attempts. It supports multiple modalities and tool calls when the selected model supports them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;Vercel AI Gateway can be used without running an application on Vercel, but teams need a Vercel account to create an API key and manage billing. Its documentation describes model access and tool calls, rather than a standalone MCP server gateway.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams that want hosted model access and provider failover for applications or coding agents.&lt;/p&gt;




&lt;h2&gt;
  
  
  Deployment and licensing compared
&lt;/h2&gt;

&lt;p&gt;This table is a starting point, not a substitute for checking the current license and feature matrix. Some projects keep parts of their enterprise functionality outside the open-source gateway, while hosted gateways have their own service and usage terms.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gateway&lt;/th&gt;
&lt;th&gt;License&lt;/th&gt;
&lt;th&gt;Where it runs&lt;/th&gt;
&lt;th&gt;Main trade-off&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bifrost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0 core; Enterprise features are paid&lt;/td&gt;
&lt;td&gt;Self-hosted; private options in Enterprise&lt;/td&gt;
&lt;td&gt;Some governance and deployment features require Enterprise&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Kong AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0 Kong Gateway; some AI plugins are paid&lt;/td&gt;
&lt;td&gt;Self-hosted, hybrid or Konnect&lt;/td&gt;
&lt;td&gt;Advanced AI features may require a license&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agent Router&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;Kubernetes or standalone CLI&lt;/td&gt;
&lt;td&gt;Best suited to Envoy and Kubernetes stacks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Apache APISIX&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;Broader API gateway to configure and operate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LiteLLM&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MIT core; some enterprise features are paid&lt;/td&gt;
&lt;td&gt;Self-hosted proxy&lt;/td&gt;
&lt;td&gt;Python-based operations and security upkeep&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Amazon Bedrock AgentCore Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed AWS service&lt;/td&gt;
&lt;td&gt;AWS managed service&lt;/td&gt;
&lt;td&gt;AWS service scope and integrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Azure API Management AI gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed Azure service&lt;/td&gt;
&lt;td&gt;Azure API Management&lt;/td&gt;
&lt;td&gt;Capabilities vary by service tier&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cloudflare AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed service&lt;/td&gt;
&lt;td&gt;Cloudflare&lt;/td&gt;
&lt;td&gt;Managed service controls the data path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Vercel AI Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managed service&lt;/td&gt;
&lt;td&gt;Hosted, usable from any cloud&lt;/td&gt;
&lt;td&gt;Requires a Vercel account for keys and billing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Which Agent Gateway Is Right for Your Team
&lt;/h2&gt;

&lt;p&gt;If you are choosing a gateway for production, start with the constraints that matter most to your team. Bifrost provides multi-provider routing, agent workflows and private deployment options. Bifrost adds &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;11 µs of overhead at 5,000 RPS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;LiteLLM is a natural option for Python-centric teams. Kong fits organizations already running Kong, while Agent Router suits teams built around Envoy Gateway and Kubernetes. Apache APISIX adds AI capabilities to an open-source API gateway.&lt;/p&gt;

&lt;p&gt;Amazon Bedrock AgentCore Gateway and Azure API Management provide managed gateway options for teams using AWS and Azure, while Cloudflare and Vercel offer managed gateways as well. The best choice is the one that fits your existing platform and the amount of gateway operations your team is ready to own.&lt;/p&gt;




&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is an agent gateway?
&lt;/h3&gt;

&lt;p&gt;An agent gateway sits between applications or agents and the models and tools they use. Depending on the project, it can provide a shared API, route requests, retry failures, apply usage limits and log traffic. Some gateways also manage MCP tools or agent-to-agent communication. Check the feature list because hosted services or enterprise controls may be separate.&lt;/p&gt;

&lt;h3&gt;
  
  
  How is an agent gateway different from an API gateway?
&lt;/h3&gt;

&lt;p&gt;A traditional API gateway focuses on routing and authentication for general API traffic. An agent gateway can add features for model requests and agent tools, such as provider routing, token-based limits, model fallbacks, MCP access controls and usage reporting. Some API gateways now offer AI plugins as well, so the distinction depends on the product.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should we self-host or use a managed gateway?
&lt;/h3&gt;

&lt;p&gt;Self-hosting gives your team more control over prompts, keys and logs, but also means operating the service. A managed gateway can be quicker to adopt, though traffic passes through the vendor's network. The right choice depends on your security requirements and the operational support available to your team.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do LLM gateways support MCP?
&lt;/h3&gt;

&lt;p&gt;MCP support varies. Bifrost has a native &lt;a href="https://www.getmaxim.ai/mcp-gateway" rel="noopener noreferrer"&gt;MCP gateway&lt;/a&gt;, Kong offers AI MCP Proxy plugins, Agent Router handles AI and MCP traffic, Apache APISIX provides an &lt;code&gt;openapi-to-mcp&lt;/code&gt; plugin, LiteLLM includes MCP support in its proxy, Amazon Bedrock AgentCore Gateway connects agents to MCP-compatible tools, and Azure API Management can manage MCP servers. Compare authentication and tool-level permissions rather than treating support as a yes-or-no feature.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much latency does an LLM gateway add?
&lt;/h3&gt;

&lt;p&gt;The answer depends on the gateway, workload and enabled features. Bifrost adds about &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;11 microseconds of overhead at 5,000 requests per second&lt;/a&gt; on a single t3.xlarge. That is small next to the time many models take to respond, but added latency can matter when an agent makes a long sequence of calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can we move off LiteLLM without rewriting code?
&lt;/h3&gt;

&lt;p&gt;Often, yes. Both products expose OpenAI-compatible APIs, and Bifrost provides drop-in adapters for the LiteLLM SDK. Teams using the LiteLLM proxy can also migrate models, keys, teams and users. See the &lt;a href="https://www.getmaxim.ai/bifrost/resources/migrating-from-litellm" rel="noopener noreferrer"&gt;LiteLLM migration guide&lt;/a&gt; for the process and its details.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can an LLM gateway govern employees using ChatGPT or Claude desktop apps?
&lt;/h3&gt;

&lt;p&gt;Only when that traffic passes through the gateway. A standard gateway typically sees requests that developers have configured to use it. &lt;a href="https://docs.getbifrost.ai/edge/overview" rel="noopener noreferrer"&gt;Bifrost Edge&lt;/a&gt; is designed to route traffic from desktop apps, browsers and coding agents through Bifrost so gateway policies can apply.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Bifrost open source, and what does the Enterprise tier add?
&lt;/h3&gt;

&lt;p&gt;Bifrost's core is open source under Apache 2.0 and can be self-hosted for free. The Enterprise tier adds high availability, identity-based governance, guardrail and vault integrations, signed audit logs, and in-VPC or air-gapped deployment. It includes a 14-day free trial. Bifrost Edge requires an Enterprise gateway and is priced per endpoint.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;There is no single gateway that is right for every stack. Choose based on the providers you use, how you plan to deploy, and whether you want a dedicated model proxy, agent and tool controls, or AI features inside an existing API platform. Check each gateway's feature boundaries, and test the options with your own workload before committing. If Bifrost is on your shortlist, its &lt;a href="https://www.getmaxim.ai/bifrost" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; and &lt;a href="https://getmaxim.ai/bifrost/book-a-demo" rel="noopener noreferrer"&gt;demo&lt;/a&gt; cover its deployment and Enterprise options.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost GitHub&lt;/strong&gt;: &lt;a href="https://github.com/maximhq/bifrost" rel="noopener noreferrer"&gt;https://github.com/maximhq/bifrost&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost Docs&lt;/strong&gt;: &lt;a href="https://docs.getbifrost.ai" rel="noopener noreferrer"&gt;https://docs.getbifrost.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost CLI&lt;/strong&gt;: &lt;code&gt;npx -y @maximhq/bifrost-cli&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://github.com/maximhq/bifrost" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the Bifrost repository ☆&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>opensource</category>
      <category>agents</category>
    </item>
    <item>
      <title>OpenAI has released 6.2 Astra and Sol</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Tue, 17 Nov 2026 18:47:55 +0000</pubDate>
      <link>https://dev.to/anthonymax/openai-has-released-62-astra-and-sol-201</link>
      <guid>https://dev.to/anthonymax/openai-has-released-62-astra-and-sol-201</guid>
      <description>&lt;p&gt;After nearly 80 days, OpenAI has released a new model that, in certain tests, outperforms the latest versions of Opus 5.5 and Google Carbon.&lt;/p&gt;

&lt;p&gt;Now it will be interesting to see how the people who said they no longer use the slow GPT will change their minds.&lt;/p&gt;

&lt;p&gt;You can find more about the release and benchmarks here:&lt;br&gt;
&lt;a href="https://openai.com/index/introducing-gpt-6-2-astra-sol" rel="noopener noreferrer"&gt;https://openai.com/index/introducing-gpt-6-2-astra-sol&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>llm</category>
      <category>agents</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:50:14 +0000</pubDate>
      <link>https://dev.to/anthonymax/-2b55</link>
      <guid>https://dev.to/anthonymax/-2b55</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf" class="crayons-story__hidden-navigation-link"&gt;Generative UI With CopilotKit: make your LLM agent even better&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/anthonymax" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" alt="anthonymax profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/anthonymax" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anthony Max
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anthony Max
                &lt;a href="/++"&gt;&lt;img alt="Subscriber" class="subscription-icon" src="https://assets.dev.to/assets/subscription-icon-805dfa7ac7dd660f07ed8d654877270825b07a92a03841aa99a1093bd00431b2.png"&gt;&lt;/a&gt;
                
              
              &lt;div id="story-author-preview-content-4999295" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/anthonymax" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anthony Max&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 12&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf" id="article-link-4999295"&gt;
          Generative UI With CopilotKit: make your LLM agent even better
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;52&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              5&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            13 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Generative UI With CopilotKit: make your LLM agent even better</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Thu, 12 Nov 2026 17:39:51 +0000</pubDate>
      <link>https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf</link>
      <guid>https://dev.to/anthonymax/generative-ui-with-copilotkit-make-your-llm-agent-even-better-21cf</guid>
      <description>&lt;p&gt;Most AI applications still look like a conversation. You type a request, wait a moment, and get a wall of text back.&lt;/p&gt;

&lt;p&gt;That works well when you need an explanation. But what if you're comparing subscription plans, exploring a list of products, or trying to adjust a budget? A paragraph can give you the information, but a table, a set of cards, or a few interactive controls might be easier to use.&lt;/p&gt;

&lt;p&gt;That's what drew me to generative UI. Instead of making the user translate an answer into an action, the assistant can respond with an interface suited to the task.&lt;/p&gt;

&lt;p&gt;In this article, I'll look at how the new generative UI features in CopilotKit work, where they might be useful, and how they compare with json-render and OpenUI. There is also a demo section where I'll walk through a small application.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Generative UI&lt;/strong&gt; lets an AI assistant assemble an interface in response to a request, rather than replying only with text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CopilotKit&lt;/strong&gt; gives the agent a catalog of components to choose from. The resulting UI can appear in the chat or in designated areas of the application.&lt;/li&gt;
&lt;li&gt;You can start with a standard catalog, add your own components, connect them to application state and actions, and choose between tool and markdown transports.&lt;/li&gt;
&lt;li&gt;The new components and surfaces feature is &lt;strong&gt;experimental&lt;/strong&gt;. The API can change, so check the &lt;a href="https://docs.copilotkit.ai/generative-ui/components" rel="noopener noreferrer"&gt;current documentation&lt;/a&gt; before building around it.&lt;/li&gt;
&lt;li&gt;This article is an introduction to the feature and its potential uses.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What Is Generative UI, and Why Does It Matter?
&lt;/h2&gt;

&lt;p&gt;Imagine asking an assistant: "Which of these plans is best for a team of ten?"&lt;/p&gt;

&lt;p&gt;The assistant could describe each plan in a few paragraphs. Or it could show a comparison table, highlight the differences, and offer a control for changing the team size.&lt;/p&gt;

&lt;p&gt;Generative UI is the second approach. The model helps decide what interface to show and what information to put in it. The application then renders that interface using components available to it.&lt;/p&gt;

&lt;p&gt;The important distinction is that the model doesn't have to write a new React application on every request. In a component-based setup, the developer defines the building blocks and their behavior. The assistant selects and combines them within those boundaries.&lt;/p&gt;

&lt;p&gt;This doesn't mean every answer needs a dashboard. If I ask for the definition of a term, a sentence is probably enough. Generative UI becomes interesting when the answer is something I want to compare, explore, edit, or act on.&lt;/p&gt;




&lt;h2&gt;
  
  
  How Generative UI Works in CopilotKit
&lt;/h2&gt;

&lt;p&gt;CopilotKit connects an AI agent to your application and lets it render UI from a catalog you provide. There are a few pieces worth understanding before we get to the demo.&lt;/p&gt;

&lt;h3&gt;
  
  
  The catalog: what the agent can use
&lt;/h3&gt;

&lt;p&gt;A catalog describes the components available to the agent, including what they do and which props they accept. CopilotKit provides a &lt;a href="https://docs.copilotkit.ai/generative-ui/components/standard-catalog" rel="noopener noreferrer"&gt;standard catalog&lt;/a&gt; with components for layouts, forms, tables, charts, maps, and more.&lt;/p&gt;

&lt;p&gt;You can also register your own components with &lt;code&gt;createGenerativeUI&lt;/code&gt;. This is useful when your application already has a design system or when a generic card isn't enough. For example, a store might expose its own &lt;code&gt;ProductCard&lt;/code&gt; with the fields it expects.&lt;/p&gt;

&lt;p&gt;You can extend the standard catalog, remove components you don't need, or replace standard components with your own implementations. The descriptions matter too: they help the agent understand when a component is appropriate.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/n_603TbuYNU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;




&lt;h3&gt;
  
  
  Surfaces: where the UI appears
&lt;/h3&gt;

&lt;p&gt;A &lt;a href="https://docs.copilotkit.ai/generative-ui/components/surfaces" rel="noopener noreferrer"&gt;surface&lt;/a&gt; is a piece of generated UI rendered in a target. The chat is one target, but you can also mark an area of the page as a target.&lt;/p&gt;

&lt;p&gt;Think of a shop with a featured products section. A user could ask the assistant to show cheaper options, and the agent could update that section instead of returning another list in the chat. The developer can specify which components are allowed in that area and provide fallback content for when there is no generated surface.&lt;/p&gt;

&lt;p&gt;The model still needs the right data and instructions. A surface doesn't automatically connect an assistant to a product database.&lt;/p&gt;




&lt;h3&gt;
  
  
  Transports: how the UI gets there
&lt;/h3&gt;

&lt;p&gt;CopilotKit supports two &lt;a href="https://docs.copilotkit.ai/generative-ui/components/transports" rel="noopener noreferrer"&gt;transports&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tool mode&lt;/strong&gt;, the default, lets the agent send UI operations through a &lt;code&gt;render_ui&lt;/code&gt; tool. The agent needs to pass the run's tools and context to the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Markdown mode&lt;/strong&gt; lets the agent write UI operations in &lt;code&gt;a2ui&lt;/code&gt; code blocks within its response. The chat renders those blocks as UI, with ordinary text around them. The agent still needs the catalog and instructions in its context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both use the same catalogs and surfaces. Tool mode is a reasonable starting point when the agent supports the required tools. Markdown mode is useful when the agent streams text but can't use client tools, or when you want text and UI together in the same reply.&lt;/p&gt;




&lt;h3&gt;
  
  
  State, actions, and protocols
&lt;/h3&gt;

&lt;p&gt;A generated button is only useful if it does something. CopilotKit lets you connect components to &lt;a href="https://docs.copilotkit.ai/generative-ui/components/state-and-actions" rel="noopener noreferrer"&gt;application state and functions&lt;/a&gt;. For example, a product card can display a live cart quantity and call your application's add-to-cart handler. Inputs can also preserve values entered by the user.&lt;/p&gt;

&lt;p&gt;Under the hood, the components and surfaces feature implements &lt;a href="https://a2ui.org/" rel="noopener noreferrer"&gt;A2UI 1.0&lt;/a&gt; at the spec revision listed in the documentation. A2UI describes the UI operations; &lt;a href="https://docs.ag-ui.com/introduction" rel="noopener noreferrer"&gt;AG-UI&lt;/a&gt; provides an event-based protocol for communication between agents and user-facing applications. They solve different parts of the problem.&lt;/p&gt;

&lt;p&gt;One detail is worth repeating: CopilotKit marks this feature as experimental, and A2UI 1.0 is still a candidate. CopilotKit supports the scope listed in its &lt;a href="https://docs.copilotkit.ai/generative-ui/components/from-a2ui#support-matrix" rel="noopener noreferrer"&gt;support matrix&lt;/a&gt;, not necessarily every part of the specification.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Can You Build With It?
&lt;/h2&gt;

&lt;p&gt;The most useful examples aren't necessarily the most complicated ones. A small interface that helps someone take the next step can be more valuable than a page full of generated widgets.&lt;/p&gt;

&lt;p&gt;Here are a few possibilities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A plan comparison:&lt;/strong&gt; Show a table of plans, then let the user adjust the number of seats and see how that changes the estimate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A product discovery assistant:&lt;/strong&gt; Display product cards in a page section and update them when the user changes their preferences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A data exploration tool:&lt;/strong&gt; Present a chart alongside filters or other controls for exploring a dataset.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An interactive form:&lt;/strong&gt; Ask for missing information through inputs instead of making the user format everything in a chat message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An assistant inside an existing application:&lt;/strong&gt; Use your own components and connect generated controls to real app state and actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are patterns you can build, not features that appear automatically. A useful result still depends on the components, data, model, and application logic you provide.&lt;/p&gt;




&lt;h2&gt;
  
  
  Choosing a Model
&lt;/h2&gt;

&lt;p&gt;The model matters because it has to follow the catalog instructions and produce valid UI operations, not just write a convincing answer. If you're using tool mode, check that your chosen model and agent setup support the required tool calls. For markdown mode, the agent needs to stream text and receive the catalog instructions.&lt;/p&gt;

&lt;p&gt;For experimentation, free models can be a useful starting point. For example, &lt;a href="https://openrouter.ai/docs/guides/routing/routers/free-router" rel="noopener noreferrer"&gt;OpenRouter's free model router&lt;/a&gt; selects from available free models, with availability and rate limits subject to change. You can also choose a specific free model if one is available. The router can select different models between requests, so use a fixed model when you want a more consistent comparison.&lt;/p&gt;

&lt;p&gt;That doesn't mean every CopilotKit demo automatically supports OpenRouter or any other provider. The agent and its model adapter need to be configured for the provider you choose. Check the demo's setup instructions and the model's capabilities before changing it.&lt;/p&gt;

&lt;p&gt;Also consider privacy. A free model is not necessarily a private model: prompts, responses, and any application data sent to a hosted provider leave your machine. Check the provider's data retention and training policies, along with any intermediary's settings. Use sample data while experimenting, and keep API keys on the server and out of your repository. Running a model locally can be another option, but only if your agent setup supports it and the model handles the required output reliably.&lt;/p&gt;




&lt;h2&gt;
  
  
  Building and Running the Demo
&lt;/h2&gt;

&lt;p&gt;Now, let’s create a simple demo showcasing how to work with GenerativeUI in CopilotKit. To get started, I’ll create a GitHub repository:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy1fw0ilb135w9g2bfzyd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy1fw0ilb135w9g2bfzyd.png" alt="GitHub" width="799" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, we’ll copy it to our local computer and use &lt;code&gt;npm init&lt;/code&gt; to create a &lt;code&gt;package.json&lt;/code&gt; file. Then, to enable our application to work with GPT, we need to create an &lt;code&gt;.env.local&lt;/code&gt; file. In the end, your project should look something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fadpx2wldfngfi126ix60.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fadpx2wldfngfi126ix60.png" alt="files" width="724" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s set everything up according to the &lt;a href="https://docs.copilotkit.ai/generative-ui/components" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; so that we can get started. Please note that you must have Node.js installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install @copilotkit/react-core @copilotkit/runtime @tanstack/ai @tanstack/ai-openai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also, for the application to work, you need to install Next.js as well.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Some standard catalog components need a third-party library. For example, the Map component needs maplibre-gl.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;  &lt;span class="nl"&gt;"dependencies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"@copilotkit/react-core"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^1.85.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"@copilotkit/runtime"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^1.85.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"@tanstack/ai"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^1.2.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"@tanstack/ai-openai"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^1.1.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"maplibre-gl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^5.24.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^15.5.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^19.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"react-dom"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^19.0.0"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"devDependencies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"@types/node"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^22.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"@types/react"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^19.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"@types/react-dom"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^19.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"typescript"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"^5.9.0"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, let’s create some simple components to get our entire application up and running. It’s worth noting that you can take full advantage of CopilotKit with just 5 minutes of setup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;app/api/copilotkit/route.ts&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;BuiltInAgent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;CopilotRuntime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;convertInputToTanStackAI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;createCopilotRuntimeHandler&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@copilotkit/runtime/v2"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&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="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@tanstack/ai"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;openaiText&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@tanstack/ai-openai"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;BuiltInAgent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tanstack"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;factory&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;input&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;abortController&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;OPENAI_API_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"OPENAI_API_KEY is not configured. Add it to .env.local."&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="p"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;systemPrompts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;convertInputToTanStackAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;adapter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;openaiText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"gpt-6-luna"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;systemPrompts&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="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;systemPrompts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Respond in English. If the user asks to compare options, use render_ui and the Table component from the catalog to show the result as a table. If the user asks to visualize data, use render_ui with an appropriate chart and, when useful, interactive controls such as a slider."&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;tools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;threadId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;threadId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;abortController&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="p"&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createCopilotRuntimeHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"single-route"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;CopilotRuntime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;agents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;// Optional: generative UI can be used without setting this flag.&lt;/span&gt;
    &lt;span class="n"&gt;generativeUI&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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="p"&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="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;OPTIONS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;layout.tsx&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s2"&gt;"@copilotkit/react-core/v2/styles.css"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s2"&gt;"./globals.css"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Providers&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"./providers"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CopilotKit — Generative UI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Demo"&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="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;RootLayout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;children&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="nc"&gt;Readonly&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReactNode&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Providers&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Providers&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="o"&gt;&amp;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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;page.tsx&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;CopilotChat&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@copilotkit/react-core/v2"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;Home&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="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"page"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"intro"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"eyebrow"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;COPILOTKIT&lt;/span&gt; · &lt;span class="no"&gt;GENERATIVE&lt;/span&gt; &lt;span class="no"&gt;UI&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Answers&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;become&lt;/span&gt; &lt;span class="n"&gt;an&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"description"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nc"&gt;Ask&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;compare&lt;/span&gt; &lt;span class="n"&gt;plans&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;will&lt;/span&gt; &lt;span class="n"&gt;display&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;
          &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Try&lt;/span&gt; &lt;span class="n"&gt;refining&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;follow&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;up&lt;/span&gt;
          &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"example-prompt"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"prompt-label"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Try&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Compare&lt;/span&gt; &lt;span class="nc"&gt;Starter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Team&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nc"&gt;Enterprise&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"chat-panel"&lt;/span&gt; &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Chat with an AI agent"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CopilotChat&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"demo-chat"&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Powered&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="nc"&gt;CopilotKit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;TanStack&lt;/span&gt; &lt;span class="no"&gt;AI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;&amp;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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;providers.tsx&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;CopilotKitProvider&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@copilotkit/react-core/v2"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;standardUI&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@copilotkit/react-core/v2/generative-ui"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ReactNode&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;Providers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;children&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;children&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ReactNode&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="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CopilotKitProvider&lt;/span&gt;
      &lt;span class="n"&gt;runtimeUrl&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/api/copilotkit"&lt;/span&gt;
      &lt;span class="n"&gt;useSingleEndpoint&lt;/span&gt;
      &lt;span class="n"&gt;generativeUI&lt;/span&gt;&lt;span class="o"&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;ui&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;standardUI&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;CopilotKitProvider&lt;/span&gt;&lt;span class="o"&gt;&amp;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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have done everything correctly, then upon running &lt;code&gt;npm run dev&lt;/code&gt;, the following page will appear in your browser:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4nl5rdy7x24bfa0odi6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4nl5rdy7x24bfa0odi6e.png" alt="app" width="799" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we can use our application; all that remains is to create an API key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uia1qbdpls7c80u6m4b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uia1qbdpls7c80u6m4b.png" alt="Key" width="799" height="471"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OPENAI_API_KEY=...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, let’s try to write something in the chat. Let’s say I sell seats in a cinema and I want to visualize some data so that it’s easier for me to understand it if I’m an accountant. ChatGPT and other assistants now offer interactive experiences in some contexts, but a standalone chat may not provide the app-specific controls and data flow this task needs. That’s where the generative UI in our application can help.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1z7o42kiv7upzkvj0upd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1z7o42kiv7upzkvj0upd.png" alt="app diagram" width="720" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, we can now adjust the number of seats, and our chart will change accordingly. In a plain chat, changing the number might instead require another prompt, unless the assistant provides a suitable interactive feature.&lt;/p&gt;




&lt;h2&gt;
  
  
  CopilotKit vs. json-render vs. OpenUI
&lt;/h2&gt;

&lt;p&gt;All three tools help developers turn model output into interfaces built from components. For me, the interesting difference is how they fit into an application, especially when an assistant needs to work both inside the chat and elsewhere on the page.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What I'm looking for&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;CopilotKit&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;json-render&lt;/th&gt;
&lt;th&gt;OpenUI&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Starting with ready-made components&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Standard catalog&lt;/strong&gt; with layouts, forms, tables, charts, maps, and more.&lt;/td&gt;
&lt;td&gt;Pre-built shadcn/ui components are available, or you can define your own catalog and registry.&lt;/td&gt;
&lt;td&gt;Offers a component library and supports defining your own components.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Using an existing design system&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Extend the catalog, remove components, or replace standard components&lt;/strong&gt; with your own.&lt;/td&gt;
&lt;td&gt;Define component types in a catalog and map them to your implementations in a registry.&lt;/td&gt;
&lt;td&gt;Define a library using your own components.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UI in the chat and on the page&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Chat rendering and page targets&lt;/strong&gt; are part of the same surfaces workflow. Targets can restrict components and provide fallback content.&lt;/td&gt;
&lt;td&gt;Supports inline conversational UI and standalone generated UI.&lt;/td&gt;
&lt;td&gt;Provides a renderer for generated interfaces and an agent interface for chat.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How the model sends UI&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Choose tool mode or markdown mode&lt;/strong&gt; while using the same catalogs and surfaces.&lt;/td&gt;
&lt;td&gt;Generates JSON specifications, including streamed JSONL patches.&lt;/td&gt;
&lt;td&gt;Generates interfaces using its line-oriented OpenUI Lang.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connecting interactions&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Bind app state, preserve user input, and connect component events to application functions.&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Supports state binding and action handlers.&lt;/td&gt;
&lt;td&gt;Supports interactive components and actions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Investigating a bad result&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;CopilotKit Inspector&lt;/strong&gt; shows the catalog, surfaces, rejected operations, and model instructions.&lt;/td&gt;
&lt;td&gt;Uses its catalog and registry to define and render the generated specification.&lt;/td&gt;
&lt;td&gt;Offers optional repair and reliability monitoring tools.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent experience&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Designed to connect agents to an application&lt;/strong&gt;, with generative UI integrated into the workflow.&lt;/td&gt;
&lt;td&gt;Focuses on generating and rendering UI specifications.&lt;/td&gt;
&lt;td&gt;Offers an agent interface and integrations with agent frameworks, including CopilotKit.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For an application already using CopilotKit, the combination of a standard catalog, surfaces, agent integration, and Inspector is a compelling starting point. I especially like that I can keep a conversational interface while placing the result elsewhere on the page.&lt;/p&gt;

&lt;p&gt;That said, the table is about the features and workflows each tool offers, not a claim that one will always produce better results. json-render's explicit JSON and registry approach may suit one project, while OpenUI's dedicated language and tooling may suit another. CopilotKit's components and surfaces feature is also experimental, which is worth considering before relying on it in production.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Like About the Approach
&lt;/h2&gt;

&lt;p&gt;The idea I keep coming back to is that an assistant doesn't need to live entirely inside a chat. A conversation can be the way a user expresses intent, while the result appears in the part of the application where it belongs.&lt;/p&gt;

&lt;p&gt;I also like the balance between flexibility and control. The agent can choose how to compose a response, but the developer still owns the components and decides which actions they expose. Starting with a catalog and adding application-specific components feels more practical than asking a model to generate arbitrary frontend code.&lt;/p&gt;

&lt;p&gt;There are limits, though. A valid component tree can still contain incorrect information or a confusing layout. Real applications need good data, clear component descriptions, accessible components, error handling, and authorization for actions. Catalog validation is not a substitute for any of those.&lt;/p&gt;

&lt;p&gt;CopilotKit's &lt;a href="https://docs.copilotkit.ai/generative-ui/components#when-something-does-not-render" rel="noopener noreferrer"&gt;Inspector&lt;/a&gt; is useful here: it can show the catalog, surfaces, rejected operations, and the instructions sent to the model. That gives you somewhere concrete to look when a response doesn't render as expected.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Is This For?
&lt;/h2&gt;

&lt;p&gt;Generative UI is worth exploring if you're building an assistant that helps users work with structured information or complete tasks inside an application. Internal tools, dashboards, shopping experiences, and planning applications are all plausible starting points.&lt;/p&gt;

&lt;p&gt;It may be less useful if your assistant mostly answers straightforward questions, or if the same fixed interface already handles the task well. Generated UI adds another moving part to test and maintain. It should earn its place by making the experience clearer or more useful.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the difference between generative UI and a chatbot?
&lt;/h3&gt;

&lt;p&gt;A chatbot is an interface for conversation. Generative UI is a way to create or assemble an interface in response to a request. You can use them together: a chatbot can return text alongside generated tables, forms, or other components.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does CopilotKit generate arbitrary React code?
&lt;/h3&gt;

&lt;p&gt;In the components and surfaces approach described here, the agent produces UI operations using components from a catalog. Your application renders the registered components. You define the components and their behavior rather than letting the model execute arbitrary generated React code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can CopilotKit render generative UI outside the chat?
&lt;/h3&gt;

&lt;p&gt;Yes. You can mark an area of the page as a target with &lt;code&gt;GenerativeUISurface&lt;/code&gt; in React, or the corresponding surface component in Angular. The agent can render there using the components allowed for that target.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use my own components and design system?
&lt;/h3&gt;

&lt;p&gt;Yes. You can register custom components in a catalog, extend the standard catalog, or replace standard components. The standard components also support &lt;a href="https://docs.copilotkit.ai/generative-ui/components/theming" rel="noopener noreferrer"&gt;theming&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use a free model for generative UI?
&lt;/h3&gt;

&lt;p&gt;Potentially, yes. It depends on the model's capabilities and whether your agent is configured to connect to its provider. Free models can have usage limits and may differ in how reliably they follow the UI format. Check current availability, pricing, and privacy terms before using one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Generative UI is not a replacement for thoughtful interface design. It gives developers another way to connect a user's intent to the parts of an application that can help.&lt;/p&gt;

&lt;p&gt;CopilotKit's combination of catalogs, surfaces, and agent integration makes that idea interesting to explore. The next question is whether the generated interface actually makes a task easier than a good static UI or a simple text answer.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CopilotKit Repository&lt;/strong&gt;: &lt;a href="https://github.com/CopilotKit/CopilotKit" rel="noopener noreferrer"&gt;https://github.com/CopilotKit/CopilotKit&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generative UI's Docs&lt;/strong&gt;: &lt;a href="https://docs.copilotkit.ai/generative-ui/components" rel="noopener noreferrer"&gt;https://docs.copilotkit.ai/generative-ui/components&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example's Repository&lt;/strong&gt;: &lt;a href="https://github.com/aanthonymax/copilotkit-generative-ui-example" rel="noopener noreferrer"&gt;https://github.com/aanthonymax/copilotkit-generative-ui-example&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generative UI's Blog&lt;/strong&gt;: &lt;a href="https://www.copilotkit.ai/blog/new-generative-ui" rel="noopener noreferrer"&gt;https://www.copilotkit.ai/blog/new-generative-ui&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading this article! ❤️&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I'd love to hear your thoughts on this in the comments!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy30ifs0w4kt0e7sxw2uq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy30ifs0w4kt0e7sxw2uq.gif" alt="Thanks!" width="220" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/CopilotKit/CopilotKit" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the CopilotKit repository ☆&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Wed, 11 Nov 2026 16:34:46 +0000</pubDate>
      <link>https://dev.to/anthonymax/-oi5</link>
      <guid>https://dev.to/anthonymax/-oi5</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec" class="crayons-story__hidden-navigation-link"&gt;Bifrost vs LiteLLM Rust: Do the 7x Benchmark Claims Hold Up?&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/anthonymax" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" alt="anthonymax profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/anthonymax" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anthony Max
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anthony Max
                &lt;a href="/++"&gt;&lt;img alt="Subscriber" class="subscription-icon" src="https://assets.dev.to/assets/subscription-icon-805dfa7ac7dd660f07ed8d654877270825b07a92a03841aa99a1093bd00431b2.png"&gt;&lt;/a&gt;
                
              
              &lt;div id="story-author-preview-content-4999866" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/anthonymax" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anthony Max&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 10&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec" id="article-link-4999866"&gt;
          Bifrost vs LiteLLM Rust: Do the 7x Benchmark Claims Hold Up?
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/rust"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;rust&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/llm"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;llm&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;54&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              4&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            5 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>backend</category>
      <category>llm</category>
      <category>performance</category>
      <category>rust</category>
    </item>
    <item>
      <title>Bifrost vs LiteLLM Rust: Do the 7x Benchmark Claims Hold Up?</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Tue, 10 Nov 2026 19:47:10 +0000</pubDate>
      <link>https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec</link>
      <guid>https://dev.to/anthonymax/bifrost-vs-litellm-rust-do-the-7x-benchmark-claims-hold-up-lec</guid>
      <description>&lt;p&gt;LiteLLM Rust’s 7x overhead and 9x memory claims, checked against its public benchmark files: what holds up, where Bifrost leads, and what’s unproven.&lt;/p&gt;

&lt;p&gt;LiteLLM's Rust gateway has been promoted with headline claims of roughly &lt;strong&gt;7× lower overhead&lt;/strong&gt;, &lt;strong&gt;9× less memory&lt;/strong&gt;, and about &lt;strong&gt;4.5× more requests per dollar&lt;/strong&gt; than Bifrost. Those numbers sound decisive, but benchmark headlines are only as useful as the setup, measurements, and comparisons behind them.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.getmaxim.ai/bifrost/blog/debunking-litellm-rust-benchmarking-part-1" rel="noopener noreferrer"&gt;response to the benchmark&lt;/a&gt; checks the claims against LiteLLM's post and the CSV/JSON files in its &lt;a href="https://github.com/BerriAI/ai-gateway-bench/tree/main/results" rel="noopener noreferrer"&gt;public benchmark repository&lt;/a&gt;. The resulting picture is more nuanced than either “Rust wins” or “the benchmark is invalid.”&lt;/p&gt;

&lt;p&gt;The following LiteLLM claims deserve a closer look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;About 7× lower overhead:&lt;/strong&gt; The headline ratio comes from a separate comparison file, while the published concurrency sweep shows different Bifrost results and no single, consistent sevenfold gap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About 9× less memory:&lt;/strong&gt; The cited figures are peak RSS, not necessarily memory at rest, and Bifrost's reported memory varies across benchmark scenarios.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About 4.5× more requests per dollar:&lt;/strong&gt; This is a modeled cost-efficiency ratio, not a direct cloud-bill comparison; another cost estimate in LiteLLM's post produces a different ratio.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Overhead: no consistent 7× gap in the latency sweep
&lt;/h2&gt;

&lt;p&gt;The most useful comparison is the published latency sweep: added p99 latency over a direct request to a mock provider. Lower is better.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concurrency&lt;/th&gt;
&lt;th&gt;LiteLLM Rust&lt;/th&gt;
&lt;th&gt;Bifrost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;+0.89 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+0.75 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+0.61 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+0.63 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+0.33 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+0.89 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;+40.27 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+28.65 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are the values reported in the article's analysis of &lt;a href="https://github.com/BerriAI/ai-gateway-bench/blob/main/results/latency_vs_concurrency.csv" rel="noopener noreferrer"&gt;&lt;code&gt;latency_vs_concurrency.csv&lt;/code&gt;&lt;/a&gt;. The sweep does not show a sevenfold Rust advantage: Bifrost is slightly faster at concurrency 1 and materially faster at 64; Rust is faster at 16; the 0.02 ms difference at 4 is too small to interpret confidently without repeated trials.&lt;/p&gt;

&lt;p&gt;The same sweep reports throughput at concurrency 64 of &lt;strong&gt;2,722.2 requests/second for LiteLLM Rust&lt;/strong&gt; and &lt;strong&gt;2,719.1 for Bifrost&lt;/strong&gt;, a gap of about &lt;strong&gt;0.1%&lt;/strong&gt;. That is effectively a tie in a single run, not evidence of a stable throughput lead.&lt;/p&gt;

&lt;p&gt;Where does the “about 7×” overhead number come from? The analysis says LiteLLM's separate &lt;code&gt;overhead_comparison.csv&lt;/code&gt; lists 4.544 ms for Bifrost and 0.66 ms for Rust. But the concurrency sweep's Bifrost results are +0.75, +0.63, +0.89, and +28.68 ms. The analysis argues that the 4.544 ms figure cannot be reproduced from that sweep, and notes that the overhead file does not state its concurrency level. Without a documented, matching setup, these figures are difficult to reconcile.&lt;/p&gt;

&lt;h2&gt;
  
  
  The comparison may not be like for like
&lt;/h2&gt;

&lt;p&gt;This is the most consequential caveat in the response. LiteLLM's benchmark post says gateways ran without logging callbacks, spend tracking, or persistence. But according to the article, the published Bifrost configuration did not explicitly disable logging. It says Bifrost's logging is enabled by default and creates a SQLite log store, adding buffering and disk writes to the measured work.&lt;/p&gt;

&lt;p&gt;If that configuration reading is correct, the benchmark compares different workloads. It does &lt;strong&gt;not&lt;/strong&gt; tell us how much of the resource gap comes from logging: the published data does not isolate logging's contribution. Nor does disabling logging necessarily disable every other plugin or hook. A controlled rerun with logging both on and off would be needed to answer that.&lt;/p&gt;

&lt;p&gt;Version and maturity matter too. The analysis identifies the tested Bifrost build as v1.6.4 and describes LiteLLM Rust as a beta with an incomplete migration. This makes the benchmark useful for understanding those specific builds and settings, but not a timeless verdict on either product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory and cost: the reported ratios need careful labels
&lt;/h2&gt;

&lt;p&gt;The reported memory pair is &lt;strong&gt;199.1 MB for Bifrost versus 21.8 MB for LiteLLM Rust&lt;/strong&gt;, a difference of 177.3 MB. The analysis points out that the underlying field is &lt;code&gt;peak_rss_mb&lt;/code&gt;, while some benchmark messaging calls the number “memory at rest” or describes the gateway as idle. Those terms are not interchangeable: peak resident memory during a run is not necessarily idle memory.&lt;/p&gt;

&lt;p&gt;The response also notes that the headline uses the widest of three Bifrost/Rust memory pairs in the files. Rust is lower in all the pairs cited in the analysis, but the Bifrost results vary from 144 MB to 298 MB. That variability makes the scenario, build, and measurement method important. RSS alone also cannot tell us which component caused the difference.&lt;/p&gt;

&lt;p&gt;The cost claims refer to different calculations. The &lt;strong&gt;4.5× requests-per-dollar-hour&lt;/strong&gt; figure is based on 283,833 versus 63,246 requests per dollar-hour, according to the article's reading of &lt;code&gt;rps_per_dollar.csv&lt;/code&gt;. A separate LiteLLM blog estimate puts cost per million requests at $0.001008 for Bifrost and $0.000175 for Rust, about &lt;strong&gt;5.8×&lt;/strong&gt;, using measured resource use and an assumed 4-vCPU/16-GB instance. These are models, not direct cloud-bill measurements, and the assumptions and included work affect the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can we conclude?
&lt;/h2&gt;

&lt;p&gt;The data presented in the analysis in the article supports a few limited conclusions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LiteLLM Rust reports lower CPU and memory use in the cited files.&lt;/li&gt;
&lt;li&gt;In the latency sweep, Bifrost and Rust are close in throughput at concurrency 64, while the p99 latency ranking changes with concurrency.&lt;/li&gt;
&lt;li&gt;The published setup may have left Bifrost logging enabled, so the results may not compare equivalent configurations.&lt;/li&gt;
&lt;li&gt;The headline overhead, memory, and cost ratios depend on which file, scenario, and definition you use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; establish that one gateway is universally faster, cheaper, or more efficient in production. The response itself notes that the benchmark runs appear to be single trials without error bars, and that hardware and worker details are not fully specified. Small differences can be noise; large differences still need a clearly matched workload before they can be attributed to the gateway implementation.&lt;/p&gt;

&lt;p&gt;For teams choosing a gateway, the practical takeaway is simple: benchmark the workload you actually plan to run. Pin versions, publish machine and worker settings, keep logging and plugins consistent, repeat each test, and report distributions, not just a single p99 or peak RSS value. If logging is part of your production setup, measure it rather than silently excluding it.&lt;/p&gt;

&lt;p&gt;Or better yet, don’t overcomplicate things—just go with &lt;a href="https://github.com/maximhq/bifrost" rel="noopener noreferrer"&gt;Bifrost&lt;/a&gt; :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/maximhq/bifrost" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the Bifrost repository ☆&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;The article says a follow-up will rerun the comparison with logging on and off, a current Bifrost build, repeated trials, disclosed hardware, and heap profiles. That would be a more useful basis for comparing the systems than debating headline ratios in isolation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.getmaxim.ai/bifrost/blog/debunking-litellm-rust-benchmarking-part-1" rel="noopener noreferrer"&gt;Maxim AI: “Debunking LiteLLM Rust Benchmarking: Part 1”&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/BerriAI/ai-gateway-bench/tree/main/results" rel="noopener noreferrer"&gt;LiteLLM's published benchmark result files&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>rust</category>
      <category>llm</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>My first open-source service reached its first 20 stars on GitHub 💎</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Mon, 02 Nov 2026 05:19:39 +0000</pubDate>
      <link>https://dev.to/anthonymax/my-first-open-source-service-reached-its-first-20-stars-on-github-52nm</link>
      <guid>https://dev.to/anthonymax/my-first-open-source-service-reached-its-first-20-stars-on-github-52nm</guid>
      <description>&lt;p&gt;Hello everyone Today, I’d like to share a small but joyful piece of news. My project on GitHub has reached its first 20 stars ☆.&lt;/p&gt;

&lt;p&gt;I’ve been working on it since July, and for the most part, I don’t have much time for development and promotion due to work. In any case, I’d like to share this small achievement with you. I think it’s important to talk about it openly when you’re doing something in Open‑Source.&lt;/p&gt;

&lt;p&gt;For a long time, I didn’t understand how to make it useful for other people, but I guess I should write to other people about it — those whose projects don’t even have 5 stars.&lt;/p&gt;

&lt;p&gt;By the way, what’s noteworthy is that now there are also 10 projects there 💎, which can’t but please the users.&lt;/p&gt;

&lt;p&gt;I’ve written about it many times, but if anyone wants to get acquainted with EmbedCatalog, here’s the repository:&lt;/p&gt;

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

&lt;p&gt;Maybe you can suggest something to do in the issue, or you can create something cool in the code yourself!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Best article</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Wed, 28 Oct 2026 07:25:30 +0000</pubDate>
      <link>https://dev.to/anthonymax/best-article-1mf8</link>
      <guid>https://dev.to/anthonymax/best-article-1mf8</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-story__hidden-navigation-link"&gt;5 Best Open-source LLM Gateways 💎&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
      &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-article__context-note crayons-article__context-note__feed"&gt;&lt;p&gt;Compares top tools by routing and licensing limits&lt;/p&gt;

&lt;/a&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/anthonymax" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" alt="anthonymax profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/anthonymax" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anthony Max
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anthony Max
                &lt;a href="/++"&gt;&lt;img alt="Subscriber" class="subscription-icon" src="https://assets.dev.to/assets/subscription-icon-805dfa7ac7dd660f07ed8d654877270825b07a92a03841aa99a1093bd00431b2.png"&gt;&lt;/a&gt;
                
              
              &lt;div id="story-author-preview-content-4907519" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/anthonymax" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anthony Max&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 27&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" id="article-link-4907519"&gt;
          5 Best Open-source LLM Gateways 💎
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;71&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              5&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            12 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>software</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Tue, 27 Oct 2026 14:29:51 +0000</pubDate>
      <link>https://dev.to/anthonymax/-k75</link>
      <guid>https://dev.to/anthonymax/-k75</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-story__hidden-navigation-link"&gt;5 Best Open-source LLM Gateways 💎&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
      &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-article__context-note crayons-article__context-note__feed"&gt;&lt;p&gt;Compares top tools by routing and licensing limits&lt;/p&gt;

&lt;/a&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/anthonymax" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" alt="anthonymax profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/anthonymax" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anthony Max
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anthony Max
                &lt;a href="/++"&gt;&lt;img alt="Subscriber" class="subscription-icon" src="https://assets.dev.to/assets/subscription-icon-805dfa7ac7dd660f07ed8d654877270825b07a92a03841aa99a1093bd00431b2.png"&gt;&lt;/a&gt;
                
              
              &lt;div id="story-author-preview-content-4907519" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/anthonymax" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2103048%2F716988a5-9c51-49bf-acef-191bc6dd2fee.jpeg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anthony Max&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 27&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" id="article-link-4907519"&gt;
          5 Best Open-source LLM Gateways 💎
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;71&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              5&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            12 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
    </item>
    <item>
      <title>5 Best Open-source LLM Gateways 💎</title>
      <dc:creator>Anthony Max</dc:creator>
      <pubDate>Tue, 27 Oct 2026 13:27:11 +0000</pubDate>
      <link>https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi</link>
      <guid>https://dev.to/anthonymax/5-best-open-source-llm-gateways-10bi</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An open-source LLM gateway gives applications one place to connect to model providers. Depending on the project, it can also handle routing, retries, budgets, access controls, caching and request logs.&lt;/li&gt;
&lt;li&gt;The five projects here take different approaches: Bifrost, Kong, Agent Router, Apache APISIX and LiteLLM.&lt;/li&gt;
&lt;li&gt;Bifrost is our pick for teams that want a self-hosted gateway with model, MCP and agent traffic controls. Its commercial Edge product can also route AI traffic from employee devices.&lt;/li&gt;
&lt;li&gt;Open source does not mean every feature is free or self-hostable. Check each project's license and feature boundaries before adopting it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few years ago, many teams adopted gateways to centralize provider keys and billing. Those needs have not gone away, but teams now also have to think about model choice, reliability, usage limits and the growing number of tools connected to agents.&lt;/p&gt;

&lt;p&gt;The projects in this list are not interchangeable. Some focus on model routing, while others build AI features on top of a broader API or service-mesh stack. I compared five open-source LLM gateways, their deployment models and the features available without a paid plan.&lt;/p&gt;




&lt;h2&gt;
  
  
  What an open-source LLM gateway does
&lt;/h2&gt;

&lt;p&gt;At a basic level, an open-source LLM gateway is a reverse proxy for model requests. An application sends traffic to a shared endpoint, and the gateway handles provider-specific formats, routing and retries across services such as OpenAI, Anthropic, AWS Bedrock and Google Vertex AI.&lt;/p&gt;

&lt;p&gt;Some projects add budgets, access controls, audit trails, caching or MCP support. Others focus on getting requests to the right model with low operational overhead. The right choice depends on which of those jobs you need the gateway to do.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to choose an open-source LLM gateway
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Provider coverage.&lt;/strong&gt; Confirm the providers and API formats your application needs today, then check how new providers are added.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reliability and latency.&lt;/strong&gt; Look for retries, fallbacks and load balancing. Treat benchmark numbers as a starting point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment and license.&lt;/strong&gt; Check the license for the gateway itself, and distinguish open-source components from paid hosting, support or enterprise features.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operations.&lt;/strong&gt; Consider how the project handles secrets, budgets, access controls, logs and upgrades. A gateway still needs someone to run it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP and agent support.&lt;/strong&gt; If your applications call tools, check whether the gateway routes or governs MCP traffic, and how identity and permissions work.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The five gateways at a glance
&lt;/h2&gt;

&lt;p&gt;Here is the short version. Bifrost and LiteLLM are model-focused gateways, Kong brings AI traffic into a broader API platform, Agent Router is built around Envoy Gateway and Kubernetes, and Apache APISIX combines AI plugins with a general-purpose API gateway. These five open-source LLM gateways differ in deployment and feature boundaries.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Capability&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Bifrost&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;Kong AI Gateway&lt;/th&gt;
&lt;th&gt;Agent Router&lt;/th&gt;
&lt;th&gt;Apache APISIX&lt;/th&gt;
&lt;th&gt;LiteLLM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Form factor&lt;/td&gt;
&lt;td&gt;Standalone Go gateway&lt;/td&gt;
&lt;td&gt;AI features in Kong Gateway&lt;/td&gt;
&lt;td&gt;Envoy Gateway control plane and CLI&lt;/td&gt;
&lt;td&gt;API gateway with AI plugins&lt;/td&gt;
&lt;td&gt;Python SDK and proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model coverage&lt;/td&gt;
&lt;td&gt;25+ providers, 10,000+ models&lt;/td&gt;
&lt;td&gt;Major hosted and self-hosted APIs&lt;/td&gt;
&lt;td&gt;Hosted and self-hosted providers&lt;/td&gt;
&lt;td&gt;OpenAI, Anthropic, Bedrock and more&lt;/td&gt;
&lt;td&gt;100+ providers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing and reliability&lt;/td&gt;
&lt;td&gt;Retries, fallbacks, load balancing&lt;/td&gt;
&lt;td&gt;Routing, load balancing, plugins&lt;/td&gt;
&lt;td&gt;Central routing, quotas and failover&lt;/td&gt;
&lt;td&gt;Multi-provider proxy, balancing and retries&lt;/td&gt;
&lt;td&gt;Routing, retries, fallbacks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP support&lt;/td&gt;
&lt;td&gt;Native MCP gateway&lt;/td&gt;
&lt;td&gt;AI MCP Proxy plugins&lt;/td&gt;
&lt;td&gt;AI and MCP traffic&lt;/td&gt;
&lt;td&gt;OpenAPI-to-MCP plugin&lt;/td&gt;
&lt;td&gt;MCP gateway&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;Self-hosted; Enterprise adds private options&lt;/td&gt;
&lt;td&gt;Self-hosted or Konnect&lt;/td&gt;
&lt;td&gt;Kubernetes or standalone CLI&lt;/td&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;Self-hosted proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A good fit when&lt;/td&gt;
&lt;td&gt;You want one gateway for models and agents&lt;/td&gt;
&lt;td&gt;Kong already runs your APIs&lt;/td&gt;
&lt;td&gt;Your platform is built on Envoy&lt;/td&gt;
&lt;td&gt;You want an open-source API and AI gateway&lt;/td&gt;
&lt;td&gt;Your stack is Python-first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The sections below look at what each project does well, where it fits and what to check before adopting it.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Bifrost: A gateway for models, MCP and agents
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.getmaxim.ai/bifrost" rel="noopener noreferrer"&gt;Bifrost&lt;/a&gt; is an &lt;a href="https://github.com/maximhq/bifrost" rel="noopener noreferrer"&gt;open-source&lt;/a&gt; LLM gateway for enterprise AI, licensed under Apache 2.0 and written in Go. It provides one OpenAI-compatible interface to more than 10,000 models across 25+ providers. With its &lt;a href="https://docs.getbifrost.ai/features/drop-in-replacement" rel="noopener noreferrer"&gt;drop-in setup&lt;/a&gt;, an existing app can usually switch over by changing its base URL. Bifrost ships as a single binary and can run on a VM, in Kubernetes, in a private cloud or on a disconnected network.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bwfj0ulfxjrlqn4se6i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bwfj0ulfxjrlqn4se6i.png" alt="Bifrost" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Performance is one of Bifrost's main selling points. Its &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;published benchmarks&lt;/a&gt; report about 11 microseconds of overhead at 5,000 requests per second on a single t3.xlarge, with a 100% success rate. In a separate AWS EC2 comparison with 500 concurrent users over 60 seconds, Bifrost handled 424 requests per second, while LiteLLM handled 44.84. The reported P99 latencies were 1.68 seconds and 90.72 seconds, respectively.&lt;/p&gt;

&lt;p&gt;For governance, &lt;a href="https://docs.getbifrost.ai/features/governance/virtual-keys" rel="noopener noreferrer"&gt;virtual keys&lt;/a&gt; let teams set budgets and rate limits by key, team, customer or model. The Enterprise tier connects to identity providers such as Okta, Microsoft Entra, Keycloak, Zitadel, Auth0 and Google Workspace, as well as other OIDC providers. It also adds SCIM 2.0 directory sync, detailed role-based access control, data access controls and reusable access profiles. Routing supports weighted load balancing, retries with backoff and &lt;a href="https://docs.getbifrost.ai/features/fallbacks" rel="noopener noreferrer"&gt;automatic fallbacks&lt;/a&gt;. &lt;a href="https://docs.getbifrost.ai/features/semantic-caching" rel="noopener noreferrer"&gt;Semantic caching&lt;/a&gt;, backed by Redis, Qdrant, Weaviate or Pinecone, can return stored answers for similar prompts.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2024540241844224013-789" src="https://platform.twitter.com/embed/Tweet.html?id=2024540241844224013"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2024540241844224013-789');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2024540241844224013&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.getbifrost.ai/mcp/overview" rel="noopener noreferrer"&gt;MCP gateway&lt;/a&gt; controls which MCP servers and tools agents can use. Access can be filtered at the client, request and virtual-key levels, with per-user OAuth so each person connects using their own account. Code Mode takes a different approach to large tool sets: instead of loading every tool definition into the model context, the model writes a short script to coordinate the tools it needs. Bifrost reports that this can reduce input token use by up to 92.8%. In a 508-tool test, the reported cost fell from $377 to $29, with all tasks passing. The &lt;a href="https://www.getmaxim.ai/bifrost/blog/bifrost-mcp-gateway-access-control-cost-governance-and-92-lower-token-costs-at-scale" rel="noopener noreferrer"&gt;MCP gateway write-up&lt;/a&gt; has the full results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.getmaxim.ai/edge" rel="noopener noreferrer"&gt;Bifrost Edge&lt;/a&gt; extends those controls to AI tools running on employee devices. Available for macOS, Windows and Linux, it routes traffic from desktop chat apps, browser-based AI, terminal coding agents and their MCP servers through the Bifrost gateway after a one-time SSO sign-in. Edge routes AI traffic only and does not inspect other device activity. Gateway virtual keys, budgets and &lt;a href="https://docs.getbifrost.ai/enterprise/guardrails" rel="noopener noreferrer"&gt;guardrails&lt;/a&gt; can then apply to those tools, including content safety, PII and secret detection on requests and responses, as well as integrations with AWS Bedrock Guardrails, Azure Content Safety, Google Model Armor, CrowdStrike AIDR and Check Point Guard. Administrators can &lt;a href="https://docs.getbifrost.ai/edge/app-governance" rel="noopener noreferrer"&gt;allow or block apps&lt;/a&gt; and &lt;a href="https://docs.getbifrost.ai/edge/mcp-governance" rel="noopener noreferrer"&gt;MCP servers&lt;/a&gt; centrally. Rules are enforced on the device. Rollout can use existing device management tools such as Jamf, Intune, Kandji, Omnissa Workspace ONE or JumpCloud.&lt;/p&gt;

&lt;p&gt;For regulated environments, the Enterprise tier adds &lt;a href="https://docs.getbifrost.ai/enterprise/clustering" rel="noopener noreferrer"&gt;clustering&lt;/a&gt;, adaptive load balancing with circuit breakers, signed &lt;a href="https://docs.getbifrost.ai/enterprise/audit-logs" rel="noopener noreferrer"&gt;audit logs&lt;/a&gt;, and integrations with AWS Secrets Manager, GCP Secret Manager and HashiCorp Vault. It also supports in-VPC, on-premises and air-gapped deployments, where prompts and responses can stay within your infrastructure. Bifrost lists &lt;a href="https://trust.getmaxim.ai/" rel="noopener noreferrer"&gt;SOC 2 Type II, ISO 27001, HIPAA and GDPR&lt;/a&gt; among its compliance credentials, and says &lt;a href="https://www.getmaxim.ai/enterprise" rel="noopener noreferrer"&gt;Fortune 500 companies&lt;/a&gt; use the product in production across several industries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;There are a few things to check before committing. Identity-based governance, clustering, adaptive load balancing, guardrail and vault integrations, and in-VPC deployment are part of the paid Enterprise tier, not the open-source core. Edge also requires an Enterprise gateway and is priced per endpoint. Since it is still in early access, a limited pilot makes sense before a wider rollout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Teams that need to manage model, MCP and agent traffic from one gateway, especially when they have strict deployment or governance requirements. Bifrost supports self-hosted, VPC-isolated, on-premises and air-gapped environments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/maximhq/bifrost" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the Bifrost repository ☆&lt;/a&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Kong AI Gateway: AI features in an established API platform
&lt;/h2&gt;

&lt;p&gt;Kong AI Gateway adds AI-specific features to Kong's established API gateway. If your APIs already run on Kong, you can use the same control plane, plugin model and operational setup for model traffic. The AI features include provider routing, token-based rate limits, prompt guard plugins, semantic caching and semantic routing across models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4jtgis3bcp6cwgk4nmm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4jtgis3bcp6cwgk4nmm.png" alt="Kong" width="800" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Kong added MCP support in Gateway 3.12 in October 2025. Its AI MCP Proxy plugin can expose REST APIs as MCP tools or sit in front of an MCP server. Access controls apply both when clients discover tools and when they invoke them. A companion OAuth2 plugin handles authentication for MCP traffic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;The main trade-offs are licensing and operational scope. Kong's documentation lists the MCP plugins as part of its AI Gateway Enterprise offering, and labels the OAuth2 plugin as a tech preview. If Kong is not already in your stack, deploying the full API gateway platform just for model traffic may be more than you need.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Organizations that already use Kong and want to manage AI traffic through their existing control plane.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Agent Router: Envoy-based routing for Kubernetes
&lt;/h2&gt;

&lt;p&gt;Agent Router, formerly Envoy AI Gateway, is an Apache 2.0 project for managing access to hosted models, self-hosted inference and MCP servers. It provides an OpenAI-compatible API and is built around Envoy Gateway. The repository has moved to theagentrouter, but project documentation says the API resources, API group, CLI name and image paths remain unchanged.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0rt1me9ipke2kkxn8wa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0rt1me9ipke2kkxn8wa.png" alt="Agent Router" width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;The project describes a two-tier pattern: one gateway handles shared authentication, routing and global limits, while another can manage traffic to self-hosted inference. It also offers a standalone CLI for local use, which makes it possible to try the API before deploying the Kubernetes components.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;The trade-off is its platform focus. Teams already operating Envoy Gateway and Kubernetes have a clear path to evaluate it. For a small application that just needs a lightweight proxy, a simpler gateway may involve less setup. Its documentation and release notes are the best places to check the current status of specific providers and features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Platform teams using Envoy Gateway or Kubernetes that want an open-source control plane for model and tool traffic.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Apache APISIX: Open-source AI plugins in an API gateway
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;Apache APISIX is an Apache Software Foundation project licensed under Apache 2.0. Its open-source API gateway includes AI plugins for connecting to model providers, routing requests across instances, balancing traffic, retrying failures and limiting usage by tokens. The &lt;code&gt;ai-proxy&lt;/code&gt; plugin supports documented providers and OpenAI-compatible APIs, while &lt;code&gt;ai-proxy-multi&lt;/code&gt; adds multi-instance load balancing and fallback behavior. The &lt;code&gt;ai-rate-limiting&lt;/code&gt; plugin applies token quotas.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb573quq6kdcyj2p8bcb6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb573quq6kdcyj2p8bcb6.png" alt="Apache APISIX" width="799" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;APISIX also has an &lt;code&gt;openapi-to-mcp&lt;/code&gt; plugin that exposes operations from an OpenAPI document as MCP tools. This is a useful contrast with Kong: APISIX's AI plugins are part of its open-source project, while Kong documents its MCP Proxy plugins as Enterprise features.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it fits
&lt;/h3&gt;

&lt;p&gt;Because APISIX is a full API gateway, teams adopting it for AI traffic also take on its broader gateway configuration and operations. Its plugin model suits teams that want to manage API and model traffic together, with the AI capabilities available in the open-source project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Platform teams that want an open-source API and AI gateway with multi-provider routing, token limits and MCP support.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. LiteLLM: Broad provider support and a Python-first workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Core capabilities
&lt;/h3&gt;

&lt;p&gt;LiteLLM is a common starting point for teams building with language models. It combines an MIT-licensed Python SDK with a self-hosted proxy that supports more than 100 providers, virtual keys, budgets, routing, fallbacks, guardrails and an MCP gateway. Semantic caching supports Qdrant, Valkey and Redis. Its documentation recommends using that feature for single-shot prompts rather than multi-turn agent traffic. A paid enterprise license adds SCIM, audit logs and some guardrail integrations. Admin UI SSO is free for up to five users.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrmtdjqvr9odb01aafky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjrmtdjqvr9odb01aafky.png" alt="LiteLLM" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Trade-offs
&lt;/h3&gt;

&lt;p&gt;Two considerations are worth a closer look. In Bifrost's &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;published benchmarks&lt;/a&gt;, LiteLLM handled 44.84 requests per second with a P99 latency of 90.72 seconds in an AWS EC2 test with 500 concurrent users over 60 seconds. Bifrost handled 424 requests per second with a P99 latency of 1.68 seconds in the same comparison. These are vendor-published results; performance varies by workload.&lt;/p&gt;

&lt;p&gt;There was also a supply-chain incident. Malicious PyPI versions 1.82.7 and 1.82.8 were published on March 24, 2026; LiteLLM says a maintainer's PyPI account may have been compromised, according to its &lt;a href="https://docs.litellm.ai/blog/security-update-march-2026" rel="noopener noreferrer"&gt;security update&lt;/a&gt;. The affected versions were removed. The incident involved a compromised package release rather than a vulnerability in LiteLLM's gateway code, and highlights the value of pinning dependencies and mirroring packages internally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Python-focused teams with moderate traffic that value a broad provider ecosystem and can operate and secure a self-hosted service.&lt;/p&gt;




&lt;h2&gt;
  
  
  Deployment and licensing compared
&lt;/h2&gt;

&lt;p&gt;This table is a starting point, not a substitute for checking the current license and feature matrix. Several projects keep parts of their enterprise functionality outside the open-source gateway.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Control&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Bifrost&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;Kong AI Gateway&lt;/th&gt;
&lt;th&gt;Agent Router&lt;/th&gt;
&lt;th&gt;Apache APISIX&lt;/th&gt;
&lt;th&gt;LiteLLM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;License&lt;/td&gt;
&lt;td&gt;Apache 2.0 core; Enterprise features are paid&lt;/td&gt;
&lt;td&gt;Apache 2.0 Kong Gateway; some AI plugins are paid&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;MIT core; some enterprise features are paid&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it runs&lt;/td&gt;
&lt;td&gt;Self-hosted; private deployment options in Enterprise&lt;/td&gt;
&lt;td&gt;Self-hosted, hybrid or Konnect&lt;/td&gt;
&lt;td&gt;Kubernetes or standalone CLI&lt;/td&gt;
&lt;td&gt;Self-hosted&lt;/td&gt;
&lt;td&gt;Self-hosted proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Main trade-off&lt;/td&gt;
&lt;td&gt;Some governance and deployment features require Enterprise&lt;/td&gt;
&lt;td&gt;Advanced AI features may require a license&lt;/td&gt;
&lt;td&gt;Best suited to Envoy and Kubernetes stacks&lt;/td&gt;
&lt;td&gt;Broader API gateway to configure and operate&lt;/td&gt;
&lt;td&gt;Python-based operations and security upkeep&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Which AI Gateway Is Right for Your Team
&lt;/h2&gt;

&lt;p&gt;If you are choosing a gateway for production, start with the constraints that matter most to your team. Bifrost provides multi-provider routing, agent workflows and private deployment options. Its published benchmark reports &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;11 µs of overhead&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;LiteLLM is a natural option for Python-centric teams. Kong fits organizations already running Kong, while Agent Router suits teams built around Envoy Gateway and Kubernetes. Apache APISIX adds AI capabilities to an open-source API gateway. The best choice is the one that fits your existing platform and the amount of gateway operations your team is ready to own.&lt;/p&gt;




&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is an open-source LLM gateway?
&lt;/h3&gt;

&lt;p&gt;An open-source LLM gateway sits between an application and one or more model providers. Depending on the project, it can provide a shared API, route requests, retry failures, apply usage limits and log traffic. Check the license and feature list because commercial hosting or enterprise controls may be separate.&lt;/p&gt;

&lt;h3&gt;
  
  
  How is an LLM gateway different from an API gateway?
&lt;/h3&gt;

&lt;p&gt;A traditional API gateway focuses on routing and authentication for general API traffic. An LLM gateway adds features specific to model requests, such as provider routing, token-based limits, model fallbacks and usage reporting. Some API gateways now offer AI plugins as well, so the distinction depends on the product.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should we self-host or use a managed gateway?
&lt;/h3&gt;

&lt;p&gt;Self-hosting gives your team more control over prompts, keys and logs, but also means operating the service. A managed gateway can be quicker to adopt, though traffic passes through the vendor's network. The right choice depends on your security requirements and the operational support available to your team.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do LLM gateways support MCP?
&lt;/h3&gt;

&lt;p&gt;MCP support varies. Bifrost has a native &lt;a href="https://www.getmaxim.ai/mcp-gateway" rel="noopener noreferrer"&gt;MCP gateway&lt;/a&gt;, Kong offers AI MCP Proxy plugins, Agent Router handles AI and MCP traffic, Apache APISIX provides an &lt;code&gt;openapi-to-mcp&lt;/code&gt; plugin, and LiteLLM includes MCP support in its proxy. Compare authentication and tool-level permissions rather than treating support as a yes-or-no feature.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much latency does an LLM gateway add?
&lt;/h3&gt;

&lt;p&gt;The answer depends on the gateway, workload and enabled features. Bifrost reports about 11 microseconds of overhead at 5,000 requests per second on a single t3.xlarge in its &lt;a href="https://www.getmaxim.ai/bifrost/resources/benchmarks" rel="noopener noreferrer"&gt;published benchmarks&lt;/a&gt;. That is small next to the time many models take to respond, but added latency can matter when an agent makes a long sequence of calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can we move off LiteLLM without rewriting code?
&lt;/h3&gt;

&lt;p&gt;Often, yes. Both products expose OpenAI-compatible APIs, and Bifrost provides drop-in adapters for the LiteLLM SDK. Teams using the LiteLLM proxy can also migrate models, keys, teams and users. See the &lt;a href="https://www.getmaxim.ai/bifrost/resources/migrating-from-litellm" rel="noopener noreferrer"&gt;LiteLLM migration guide&lt;/a&gt; for the process and its details.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can an LLM gateway govern employees using ChatGPT or Claude desktop apps?
&lt;/h3&gt;

&lt;p&gt;Only when that traffic passes through the gateway. A standard gateway typically sees requests that developers have configured to use it. &lt;a href="https://docs.getbifrost.ai/edge/overview" rel="noopener noreferrer"&gt;Bifrost Edge&lt;/a&gt; is designed to route traffic from desktop apps, browsers and coding agents through Bifrost so gateway policies can apply.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Bifrost open source, and what does the Enterprise tier add?
&lt;/h3&gt;

&lt;p&gt;Bifrost's core is open source under Apache 2.0 and can be self-hosted for free. The Enterprise tier adds high availability, identity-based governance, guardrail and vault integrations, signed audit logs, and in-VPC or air-gapped deployment. It includes a 14-day free trial. Bifrost Edge requires an Enterprise gateway and is priced per endpoint.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;There is no single gateway that is right for every stack. Choose based on the providers you use, how you plan to deploy, and whether you want a dedicated model proxy or AI features inside an existing API platform. Check which features are included in each open-source project, and test each of the five gateways with your own workload before committing. If Bifrost is on your shortlist, its &lt;a href="https://www.getmaxim.ai/bifrost" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; and &lt;a href="https://getmaxim.ai/bifrost/book-a-demo" rel="noopener noreferrer"&gt;demo&lt;/a&gt; cover its deployment and Enterprise options.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost GitHub&lt;/strong&gt;: &lt;a href="https://github.com/maximhq/bifrost" rel="noopener noreferrer"&gt;https://github.com/maximhq/bifrost&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost Docs&lt;/strong&gt;: &lt;a href="https://docs.getbifrost.ai" rel="noopener noreferrer"&gt;https://docs.getbifrost.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bifrost CLI&lt;/strong&gt;: &lt;code&gt;npx -y @maximhq/bifrost-cli&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading this article! ❤️&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I'd love to hear your thoughts on this in the comments!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy30ifs0w4kt0e7sxw2uq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy30ifs0w4kt0e7sxw2uq.gif" alt="Thanks!" width="220" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/maximhq/bifrost" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;💎 Check out the Bifrost repository ☆&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
