Skip to content

What is RTC Agent

One-liner: An open-source website AI assistant backend. Integrate a transparent, efficient, and cost-effective AI assistant into your website with just a few lines of code via the standardized Remote Tool Calling protocol.

RTC Agent lets AI reason on the server while tools execute on the frontend — reading page content, operating a virtual file system, calling business APIs — all synchronized in real-time over WebSocket, fully visible to your users.

RTC Agent UI Overview

  • SaaS product teams: Want to add an AI assistant to their product without restructuring the backend
  • Frontend developers: Want to quickly integrate AI capabilities, focusing on business logic rather than AI infrastructure
  • Privacy-sensitive applications: Healthcare, finance, enterprise internal tools — where data cannot leave the user’s device

Built on IndexedDB, AI tools (read / write / ls / grep) operate directly on frontend files. Data never leaves the user’s browser.

Developers only need to maintain their own Function library. The Agent executes them on the frontend via the script tool and can freely combine multiple Functions to accomplish complex tasks — no predefined workflows needed.

💡 Developer’s perspective: You just define your business atomic capabilities (Functions), and the Agent learns how to combine them on its own. It’s like giving AI a set of LEGO bricks — it figures out how to build what you want.

Built on Centrifuge WebSocket, with bidirectional message pushing, supporting streaming output, tool call progress, and state synchronization.

Dual-layer memory: Session Memory (conversation context compression) + User Memory (cross-session long-term memory with vector retrieval). AI truly “remembers” your users.

Automatically compresses long conversations, keeping token consumption under control. Say goodbye to “context length exceeded” errors.

Complex tasks are automatically decomposed, with multiple specialized sub-agents working in parallel. AI sets, tracks, and completes multi-step goals, with turn-boundary checkpoints ensuring no task is lost.

Core data flow:

  1. All Function and file data live in the browser’s IndexedDB — the server never touches business data
  2. The Agent Engine sends tool calls to the browser via the RTC protocol; the browser executes and returns results
  3. Memory and context management run on the server, optimizing conversation quality
Traditional ApproachRTCRTC + Function
Tool execution locationServer-side ❌Frontend ✅Frontend ✅
Data flowUploaded to cloud 🔒Stays on user device 🔐Stays on user device 🔐
Extension methodModify server codeDefine frontend toolsJust define Functions; the Agent learns to compose them

Comparison with Other AI Assistant Solutions

Section titled “Comparison with Other AI Assistant Solutions”
SolutionIntegration CostObservabilityToken CostError RatePrivacy & Security
RTC AgentLow — a few lines of codeFully transparentLowLowData stays on frontend
Visual Parsing (Screenshot + OCR)MediumBlack boxVery highRelatively highRequires uploading screenshots
DOM Crawling (Server-side parsing)ComplexPartially visibleMediumMediumData uploaded to cloud
Browser ExtensionRequires installationGoodMediumMediumRuns locally

Every solution has its place: visual parsing works well for legacy systems with zero modification, and browser extensions suit offline scenarios. RTC Agent’s advantage is — no installation, no screenshots, no server-side changes — just a few lines of code to let AI understand and operate your website in a structured way.