RepositoryC#AUAustralia
SignatureBeef

SignatureBeef/Open-Terraria-API

Open Terraria API - Mac, Linux & Windows

125stars
49forks
10issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: cecil

#1 Repository of the month

1
TINIX TRENDING·Topic: il

#1 Repository of the month

1
TINIX TRENDING·Topic: otapi

#1 Repository of the month

Open Terraria API GitHub Workflow AppVeyor branch Nuget (with prereleases) License: GPL v3 Wiki

The Open Terraria API, known as OTAPI, is a low-level API for Terraria that rewrites and hooks into the official binaries for others to use.

It is primarily a server modification for the PC edition of Terraria, however v3 has seen additional support for the PC client assemblies, and the mobile windows server assembly too.

The upcoming branch is a ground up redesign and will take the place of the master branch when fully complete over in projects.

Significant changes this redesign brings are...

  • Modular script system, allowing single file patches using csharp, javascript and lua
  • A strong set of libraries with methods and extensions for use in extending or contributing back
  • .NET9 projects for all without Terraria's dependency to net4.

The stack consists upon:

  • OTAPI Scripts, a directory containing all the scripts used to patch the pc, mobile & client assemblies.
  • OTAPI Patcher, a program to process all OTAPI Scripts and produce the final OTAPI assemblies for all variants and also supports creating the NuGet packages.
  • ModFramework, a library that extends MonoMod and provides higher level patching methods and extensions, such as remapping fields to properties and arrays to collections
  • ModFramework Modules, additional plugins to add c#, javascript and lua scripts, for both patching and runtime.
  • FNA, for use on the client variants, for a consistent codebase on all platforms. Servers use the Xna shims instead.
  • MonoMod, for applying patches and generating runtime events/hooks.

Installation

For servers all you need to do is add a NuGet reference to OTAPI. See more in the wiki topic about server usage.

For client installations, you can download the launcher from the releases section, and follow the wiki topic.

Terraria support

Server assemblies used in the patching process are freely available at Terraria's website.

If you intend to patch a client version, you must own an existing copy of Terraria and have it installed in the default path of your machine. The OTAPI Project does not host or contain the original source file so it will extract files from and patch your existing installation.

All OTAPI builds support C#/lua/js scripts via plugins, however you may need to install the additional ModFramework module plugins if you use this in another project.

VariantStatusVersion
Windows Server for PCCross platform NuGet package produced. OTAPI.Upcoming1.4.2.3☑
Linux Server for PCnot required or supported☑
MacOS Server for PCnot required or supported☑
Windows Server for MobileCross platform NuGet package produced. OTAPI.Upcoming.Mobile1.4.0.5☑
Linux Server for Mobilenot required or supported☑
MacOS Server for Mobilenot required or supported☑
Windows Client for PCFull support to install a patched OTAPI into an existing Windows install (steam confirmed), Xna is replaced with FNA and x64 enabled.1.4.2.3☑
MacOS Client for PCFull support to install a patched OTAPI into an existing MacOS install (Steam/Gog confirmed)1.4.2.3☑
Linux Client for PCnot yet supported but planned. should be similar to MacOS☒
iOS Clientnot supported or planned☒
Android Clientnot supported or planned☒
tModLoader Serverwork has conducted in testing support for TML on Terraria 1.3, but no clear outcome until 1.4 support is released.1.3.5.3☒

All packages

OTAPI.Upcoming OTAPI.Upcoming.Mobile
ModFramework
ModFramework ModFramework ModFramework


Bitcoin donations are welcomed via address 3PRfyMh1brjCqzkw9az2aT7yNjbfkwFZqo

QR

Similar Projects

Discover other similar projects and AI models.

RepositoryC#
Pryaxis/TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.

2.9k
Nov 10, 2026
RepositoryC#
LavaGang/MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

4.4k
Nov 27, 2026
RepositoryC#
MonoMod/MonoMod

C# modding swiss army knife, powered by cecil.

1.0k
Nov 25, 2026
RepositoryC#
ByronMayne/Weaver

Weaver is a code weaving framework built right into Unity Engine. Based heavily off of Fody.

158
Aug 8, 2023
RepositoryC#
Pryaxis/TSAPI

🛠🌳 The TShock Scaffold API enables developers to build plugins that hook directly into the Terraria game engine.

121
Sep 27, 2026
RepositoryPython
fastapi/fastapi

FastAPI framework, high performance, easy to learn, fast to code, ready for production

105.1k
Nov 24, 2026
RepositoryC++
ocornut/imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

77.3k
Dec 1, 2026
RepositoryC++
geode-sdk/geode

The ultimate Geometry Dash modding framework

3.4k
Nov 30, 2026
RepositoryTypeScript
VeriorPies/MineCloud

An AWS CDK project to set up a low-cost on-demand multiplayer server (Minecraft, Terraria, and more...) for a Discord community in just a few minutes

312
May 26, 2025