Sharp Empire SDK

Sharp Empire SDK & Docs

Complete manual for Sharp Empire features, managed SCAR/Lua scripting, ImGui & WebUI drawing, AI MCP automation, and the Age of Empires IV SCAR API.

Sharp Empire is an internal tactical suite and scripting platform for Age of Empires IV. It pairs a DirectX 12 in-game ImGui overlay with a synchronized External WebUI, a managed SCAR/Lua runtime with dual-engine drawing (Empire & EmpireDraw), and a built-in Model Context Protocol (MCP) server so AI assistants can build, load, and debug scripts directly inside your live match.

Browse all 2,864 SCAR functions and 55 enums (895 constants) extracted directly from Age of Empires IV in the interactive Game SCAR SDK Browser.

Find what you need

GoalGuideReference
Learn every tab and feature in Sharp EmpireFeatures OverviewOption Keys (set_feature)
Remove Fog of War, draw Vision Contours, unlock Camera Zoom & AtmosphereWorld & CameraWorld & Camera Keys
Configure Entity Cards, 2D Radar, Attack Ranges, Observer HUD & 3D MapRadar & ESPRadar, Cards, Ranges & Vision
Automate matches with Auto-Play Loop, Relic AI Director, Auto-Win & Kick GuardAI Bot & AutomationAI & Automation Keys
Use Live Match controls (Civ Changer, Resources, Spawner, Stealth Tech, Unlock All)Live Match ControlsLive Match Keys
Connect Cursor, Claude, Windsurf, or Codex to Sharp Empire via MCPBuild Scripts with AI & MCPMCP Server Reference
Write a managed .scar script with clean Pause/Resume/Reload/UnloadDeveloping SCAR ScriptsEmpire Runtime API
Draw 2D HUD panels, 3D world circles, minimap markers, and WebUI widgetsIPC & Dual-Engine DrawingDrawing API (Empire.Draw)
Look up Age of Empires IV SCAR functions, parameters, and enumsSCAR Essentials Cheat-SheetGame SCAR SDK Browser
Share or install community & premium scripts on Script HangarScript Store GuideStore, Configs & WebUI

Start here

New to scripting or want an AI assistant to write scripts for you? Follow Build scripts with AI & MCP — step by step to connect Cursor, Claude Code, Windsurf, VS Code, or Codex to http://127.0.0.1:38475/mcp in under two minutes.

  1. Follow the Quickstart to open the menu (Insert), launch the External WebUI, and run your first script.
  2. Explore How Sharp Empire Works for a full walkthrough of every tab.
  3. Understand SCAR vs GLUA engines and the managed script lifecycle.
  4. Copy and adapt patterns from Working Examples.
  5. Search all 2,864 extracted game functions in the Game SCAR SDK Browser.
  6. Check Updates for customer-facing additions and API changes.

On this page