Blank white background with no objects or features visible.

نقدم لكم وصولاً مجانياً إلى تقرير Gartner Hype Cycle الكامل حول حوكمة الذكاء الاصطناعي لعام 2026. احصل على نسختك →

Roo Code: Governing a Coding Agent Through a Gateway

By أشيش دوبي

Published: October 14, 2026

⚡ TL;DR
  • Roo Code was shut down by its vendor in May 2026, which now points users to Cline. If you still have Roo Code installs, this is how to keep them governed; if you’re starting fresh, the same approach applies to Cline.
  • An IDE coding agent is an ungoverned LLM client by default — it holds a raw provider key, calls whatever model it likes, and sends your source code to a provider with no central visibility.
  • Routing it through the TrueFoundry AI Gateway makes it governed: one key, cost tracked per developer and team, a model allowlist, secret and PII guardrails on prompts, rate and budget limits, and an audit log of every call.
  • Setup is Roo Code’s “OpenAI Compatible” provider pointed at your gateway URL — base URL, model name, token. Your developers’ workflow doesn’t change.
  • The important nuance: client config is per-user, enforcement is at the gateway. You can’t fully lock the IDE settings, but every call still passes through the gateway’s policies — which is where governance actually belongs.

What Roo Code is — and what changed

Roo Code was an intelligent code-generation and refactoring system that worked within VS Code using natural language commands and context information from your coding activity. It was popular, open-source, and powerful.

In May 2026, Roo Code’s vendor announced it was shutting the extension down and directed users to Cline, a closely related agent. Existing installs keep working, but there are no new releases. That makes this a two-audience topic: teams still running Roo Code who need to keep it under control, and teams moving to Cline who want to set governance up correctly from day one. The good news is that both are governed the same way, because both connect through a standard OpenAI-compatible endpoint.

Whichever way you operate, the fundamental issue is basically the same – although not because of the extension.

Why a coding agent needs governance

An IDE coding agent is one of the least-governed LLM clients in most companies. Think about what it does by default:

  • It holds a raw provider API key, typed into each developer’s settings. Rotating or revoking access means touching every machine.
  • It calls whatever model the developer picks, with no central policy on which models are allowed or how much they cost.
  • It sends your source code to a model provider — proprietary logic, secrets in config files, customer data in fixtures — with no scanning or redaction.
  • It generates heavy, bursty token usage as it reads files and iterates, and none of that spend is attributed to a team or capped.
  • It leaves no audit trail anyone can review.

Multiply that across a fifty-person engineering org and you have real spend, real data-exposure risk, and zero visibility. The agent is useful; the lack of a control point is the problem.

What “governed” actually means

Governance here is not about restricting the agent — it’s about putting a control point between it and the model providers. That control point is the gateway.

Governing a coding agent through the TrueFoundry AI Gateway
Governing a coding agent through the TrueFoundry AI Gateway

Every Roo Code (or Cline) instance points at one gateway endpoint instead of a provider directly. The gateway then enforces policy on every request:

What the gateway governs for an IDE coding agent

What the gateway governs for an IDE coding agent

  • Cost tracking per developer, team, and model — so agent spend is a line item you can see and attribute, not a surprise.
  • Budgets and rate limits that cap a runaway agent before it burns a month’s quota in an afternoon.
  • A model allowlist — the gateway decides which models the agent may call, regardless of what the IDE dropdown offers.
  • Secret and PII guardrails that scan prompts and code for leaks before they reach a provider.
  • An audit log of every agent call, for security and compliance review.
  • Fallback so a provider outage doesn’t stop every developer at once.
  • No raw provider keys on laptops — developers hold a TrueFoundry token; the real keys live in the gateway.

Where teams get this wrong

They hand out provider keys to developers. Every laptop with a raw OpenAI or Anthropic key is a rotation headache and a leak waiting to happen. Issue gateway tokens instead.

They govern production LLM calls but ignore the IDE. The coding agent often sends more sensitive data than production — your actual source — yet runs with none of the guardrails. Bring it under the same gateway.

They assume the IDE can be locked down. Roo Code’s provider settings are per-user; there’s no documented admin lockout. Chasing client-side enforcement is the wrong layer. Enforce at the gateway, where it actually holds.

They skip code/secret scanning. A coding agent will happily paste an .env file into a prompt. Without guardrails, that secret leaves your perimeter.

‍

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

No items found.
October 14, 2026
|
5 min read

The Decisions API Is Now Live on TrueFoundry AI Gateway

No items found.
October 14, 2026
|
5 min read

Deepgram on the AI Gateway: STT, TTS, Cost and Governance

No items found.
October 14, 2026
|
5 min read

DSPy Through a Gateway: Cost, Rate Limits and Fallback

No items found.
October 14, 2026
|
5 min read

Roo Code: Governing a Coding Agent Through a Gateway

No items found.
No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.

Frequently asked questions

Is Roo Code still available?

Roo Code’s vendor announced a shutdown in May 2026 and now points users to Cline. Existing installs keep working, but there are no new releases. New teams should adopt Cline, which integrates with a gateway the same way.

How do I connect Roo Code to the TrueFoundry AI Gateway?

Use Roo Code’s “OpenAI Compatible” provider. Set the base URL to your gateway URL, enter the model name from the gateway playground, and use your TrueFoundry token as the API key.

Can I stop developers using models I haven’t approved?

Yes — at the gateway. The gateway enforces a model allowlist on every call, so even if a developer types a different model into the IDE, only allowed models are served.

Does the gateway stop secrets leaking from my code into prompts?

It can. Secret and PII guardrails scan prompts (and code) at the gateway and block or redact leaks before they reach a provider.

How do I see what each developer’s coding agent costs?

The gateway tracks cost per developer, team, and model, so agent spend is attributed and visible rather than buried in one provider invoice.

Does this keep my code in my environment?

With TrueFoundry’s data plane running in your VPC or on-prem, prompts and code pass through a gateway you control, and usage data stays in your environment.

Take a quick product tour
Start Product Tour
Product Tour