OniMods
oxygen not included
OniMods Build, ship, optimize, and automate Oxygen Not Included mods from one workspace. Rust developer tooling · .NET mods · MCP colony operations · performance and multiplayer experiments 简体中文 · onim CLI · OniMcp docs · Architecture The linked gameplay demo shows an MCP client reading colony state and issuing bounded operations for construction and farming. It is a real integration run, including the failures encountered along the way—not a scripted product animation.
Summary extracted from the README.
This project is developed by AI through a fully automated, end-to-end closed-loop workflow.
Typing code by hand is human abuse! Protect humans!
简体中文 · onim CLI · OniMcp docs · Architecture
See it working
Test attribution: The screenshots below are from a video of someone else's OniMcp test, not a test by the project author.
The linked gameplay demo shows an MCP client reading colony state and issuing bounded operations for construction and farming. It is a real integration run, including the failures encountered along the way—not a scripted product animation.
| Read state and plan · 00:18 | Construction in progress · 02:10 |
|---|---|
![]() |
![]() |
What ships here
| Component | What it does | Start here |
|---|---|---|
| onim | Creates, builds, installs, inspects and publishes ONI mods | CLI guide |
| OniMcp | Exposes colony state and bounded game operations to MCP clients | English · 中文 · Rust CLI |
| CycleTrim | High-risk experiment. A Rust SimDLL (OniSim) takes over after exact runtime checks; thermal diffusion and eligible gas/liquid regions use Vulkan (wgpu) GPU passes. The Linux U60 development checkpoint has limited mixture save/load evidence; mixed saves require the new format reader. This iteration is not yet on Workshop, and whole-game speedup remains unverified | Compatibility and save format · GPU status |
| OniOnline | Multiplayer framework with lobby chat; other gameplay ships as separate mods | Module docs |
| Jlib | A standalone shared PLib-compatible prerequisite library (Workshop 3835083839) | Source and install notes |
| OniModTemplate | A reusable starting point for a new ONI mod | Template |
| OniHarness | Headless/real-game test harness: arbitrary-geometry physics maps, building simulation, mod install tests | Notes · Submodule |
| oni-skills (optional) | Colony engineering notes for SPOM, cooling, ranching and power | Guides · GitHub |
The repository is intentionally split into two layers: onim provides the repeatable development workflow; mods/ contains independently scoped game modules. Every mod here is developed, tested, and published with onim: onim dev, onim build, onim publish. Project: OniMods.
Quick start
Requirements: Rust, a .NET SDK, a local Oxygen Not Included installation, and the normal packaging tools (unzip and tar).
cargo install --path .
onim setup
onim doctor
onim init MyMod --author YourName --desc "Your mod description"
onim dev -m MyMod
onim setup discovers the game path and can generate local build configuration. If you configure it manually:
cp Directory.Build.props.example Directory.Build.props
# Set OniGamePath in Directory.Build.props
The normal lifecycle is deliberately small:
init → dev → inspect → install → publish
| Command | Result |
|---|---|
onim init <name> |
Scaffold a mod from the maintained template |
onim dev -m <name> |
Build and install into the game's mods/Dev directory |
onim info |
Inspect installed Dev, Local and Steam modules |
onim install -m <name> |
Produce and install a release build (--release OWNER/REPO / --repo OWNER/REPO install from GitHub) |
onim publish -m <name> |
Upload a single-file Legacy ZIP through the native publisher (--dry-run, --preflight, --create, --resume, --update-preview, --gui) |
onim workshop … |
Search, install and uninstall Workshop items; workshop page show/set edits an owned page without uploading a ZIP |
onim uninstall -m <name> |
Remove a selected Dev/Local installation |
onim dev only rewrites mods.json when configuration actually changes, retains the latest five valid backups, and reports cleanup failures separately. Installation validates the new archive, DLL and metadata before replacing the previous copy. Only one installation per staticID stays active across Local, Dev and Workshop; verified duplicates move to mods/.onim-recovery, and prerequisites such as Jlib are ordered before their consumers.
Workshop safety: never publish with SteamCMD
workshop_build_itemorSteamUGC.SetItemContent. Directory-mode uploads irreversibly break ONI items. See Steam publishing.
OniMcp: the operational boundary
OniMcp is an MCP-native operations layer, not an unrestricted automation backdoor. Its public surface is grouped by intent:
world_editor— virtual-file SEARCH/REPLACE workflows for save-like artifacts;game_control— pause, speed, save and load orchestration;navigation_control— camera, overlays and screenshots;building_control— building and utility operations;orders_control— dig, sweep, clean and deconstruct orders;server_control— manifests, diagnostics, sessions and screenshot lifecycle.
Critical operations remain bounded and should be preceded by read-only inspection and explicit task framing. The project does not claim that autonomous play replaces human oversight.
Pre-1.0 compatibility: OniMcp may still introduce breaking API changes. Pin exact versions for clients and plugins, then verify the live surface through
oni://tools/manifestrather than assuming a README is the runtime contract.
Repository map
.
├── src/ onim Rust CLI (+ oni-mcp client binary)
├── mods/
│ ├── OniMcp/ MCP server mod
│ ├── CycleTrim/ GPU-first performance experiment
│ │ └── OniSim/ Rust SimDLL, wgpu/WGSL operators, Lean proofs
│ ├── OniOnline/ multiplayer framework, lobby and chat
│ ├── Jlib/ shared PLib-compatible library (submodule)
│ └── OniModTemplate/ reusable mod scaffold
├── sdk/ OniOnline.Framework SDK, Jlib.Bootstrap
├── examples/ sample OniOnline gameplay mod
├── tools/ OniHarness (submodule), Legacy ZIP Steam publisher
├── tests/ · benchmarks/ host regressions and ablation benchmarks
├── oni-skills/ optional colony engineering guides
├── docs/ architecture, testing and publishing notes
├── scripts/ verification and Legacy ZIP publishing helpers
├── Cargo.toml onim package definition
└── onim.toml workspace aliases and defaults
Verification and contribution
Before opening a pull request:
Shipped mods depend on the standalone Jlib mod (Steam Workshop). The source checkout uses the mods/Jlib submodule; in game, enable Jlib and keep it above its consumers.
onim doctor
python3 scripts/check_mods.py
The regression suite requires Python 3 and .NET SDK 10. Checks that need a locally installed game are documented separately in Mod testing.
Keep changes focused, update the affected changelog, and open an issue first when a proposal changes module boundaries or public MCP behavior.
Releases and further reading
- OniMcp changelog
- CycleTrim changelog · OniSim progress
- onim changelog
- OniOnline
- Jlib
- Template changelog
- Steam publishing workflow
- Architecture and principles
- Open-source letter
OniMcp development and agent testing consume model API credits. Project donations support that work. An OpenAI-compatible endpoint is optional; OniMods does not require a specific provider.
License
Original material that LIghtJUNction has the right to license is offered under Agent Upstream License 1.0-draft.1. This custom draft is not an OSI-approved license.
Historical MIT releases retain their original permissions in LICENSE.MIT. Third-party and adapted upstream material keeps its own terms; see LICENSING.md. Agent contributors must also read AGENTS.md and UPSTREAM.toml.
Pull requests
Low-quality human-written PRs will not be accepted. This includes, but is not limited to:
- Commits written entirely by humans.
- Code that is insufficiently defensive, fails to consider enough scenarios, or is excessively terse, showing obvious signs of human laziness.
- Any form of code typed entirely by hand.


