Universal In-Game AI Agent Runtime

The Universal AI Agent
for Roblox.

A full autonomous AI agent that runs directly inside any Roblox client. Streaming multi-model intelligence, parallel tool execution, recursive subagents, and deep game inspection.

loadstring(game:HttpGet("https://raw.githubusercontent.com/CarlDV/ProjectUAI/main/dist/uai.lua"))()
150M+
Tokens Processed
60+
In-Game Tools
0ms
Setup (Single Script)
100%
Provider Freedom

Built for Real In-Game Autonomy

Experience low-latency streaming chat, active multi-session management, and comprehensive token accounting right from the in-game overlay.

overlay.lua · Metrics & Activity
Project UAI In-Game Dashboard showing token accounting, streaks, and model picker
Telemetry & Accounting

Real-Time Token & Activity Tracking

Every turn automatically records prompt and completion tokens, active day streaks, hourly usage heatmaps, and favorite model metrics without relying on any external analytics backend.

  • Zero telemetry leaks — all usage stats computed locally on the client
  • Active day streaks & GitHub-style activity contribution calendar
  • Live model distribution and token consumption benchmarks
Execution Engine

Live Autonomous Agent Interaction

Watch Project UAI reason through multi-step objectives, inspect live game instances, execute Luau sandbox code, and stream responses with real-time thinking traces.

  • Fluid streaming chat with live Markdown & codeblock syntax
  • Foldable activity blocks with tool arguments, outputs, and diffs
  • Non-blocking concurrency across multiple active conversations
uai.lua · Execution Flow (Auto-play GIF)
Project UAI In-Game Execution Flow GIF

Engineered Without Compromise

A modular, production-grade Luau architecture that decouples agent orchestration from visual rendering.

True Autonomous Loop

Multi-round tool execution, automatic context compaction with progressive summarization, intelligent retry backoff honoring Retry-After, and seamless provider fallback.

Subagents & Delegation

Dispatch isolated subagents concurrently. Each child maintains dedicated step and time budgets, tool permission gates, and can be queried for follow-up inspection without polluting the parent turn.

Universal Providers

Zero vendor lock-in. Built-in presets for OpenRouter, Anthropic (Messages & OpenAI endpoints), OpenAI, Google Gemini, and custom OpenAI-compatible endpoints like local Ollama or vLLM relays.

Multi-Device Responsive UI

Adapts fluidly across platforms: floating window on desktop, bottom sheet on mobile, full dock on tablet, and centered panel on console. 44px touch targets on touch screens and 28px on pointer.

Claude Code Wire Identity

Inference requests mimic the official Claude Code CLI headers on compatible endpoints, while cleanly providing dedicated OpenRouter attribution headers when connecting to OpenRouter.

Gated Security & Permissions

Risk-tiered tool execution. Dangerous operations (remote firing, filesystem writing, raw Luau evaluation) can be prompted or auto-allowed with granular session permission controls.

60+ Tools Across 13 Groups

Equipped with engine-level instrumentation to interact with any place, character, or network remote.

Instance Tree & Inspection Core
instance_get instance_children instance_descendants instance_find instance_tree property_get property_set
Sandboxed Luau Execution Runtime
luau_run luau_eval luau_watch decompiled_view bytecode_inspect
Networking & Remotes Network
remote_discover remote_fire remote_invoke remote_spy http_request
Web Search & Knowledge External
web_search page_read url_scrape wiki_lookup
Character & Camera Player
character_move camera_look raycast_world teleport_pos player_inspect
Subagents & Follow-up Agentic
agent_dispatch agent_followup agent_status agent_stop task_manage

Official OpenRouter Integration

Project UAI sends native app attribution headers with every request sent to OpenRouter. This gives users transparent usage analytics, public leaderboard tracking, and seamless model switching across hundreds of frontier models.

View Live OpenRouter Page →
Attribution Header Profile
User-Agent: ProjectUAI/1.0.0
HTTP-Referer: https://carldv.github.io/ProjectUAI/
X-Title: Project UAI
X-OpenRouter-Title: Project UAI
X-OpenRouter-Categories: game,cli-agent

Up and Running in 30 Seconds

No external DLLs, builds, or dependencies required. Load directly into your client.

STEP 01

Execute Loadstring

Run the single distribution script in your executor or embed it into your development environment script.

STEP 02

Configure Provider

Press Ctrl + \ (or tap the hamburger menu on mobile), navigate to Providers, and enter your OpenRouter, Anthropic, or OpenAI API key.

STEP 03

Start Prompting

Ask questions, inspect memory, analyze game remotes, or dispatch parallel subagents to complete complex tasks.