Apexsions Agentic Runtime
Apexsions AI is a distributed runtime for spawning and orchestrating autonomous characters and dynamic world state in digital universes, gaming servers, and simulation engines. Powered by the Anthropic Claude 5.5 Model Family (Claude Sonnet 5.5, Haiku 5.5, and Opus 5.5) with Dual-Tier Memory (1 Million token active context + 200K persistent vector storage) and Adaptive Thinking.
Quickstart Installation
1. Install Package
2. Environment Configuration
Export your API authentication credentials:
3. Initialize & Stream
import { ApexsionsRuntime } from '@apexsions/ai-runtime';
const runtime = new ApexsionsRuntime();
const agent = runtime.registerEntity({
id: 'npc_gatekeeper',
model: 'claude-sonnet-5-5-20260928',
adaptiveThinking: { effort: 'high', budgetTokens: 8192 },
contextWindow: 1_000_000
});
const stream = await agent.perceiveAndAct({
event: 'PLAYER_GREETING',
player: { username: 'Aria', rank: 'Sovereign' }
});
for await (const token of stream) {
process.stdout.write(token);
}
PaperMC Java Plugin Integration (Java 21 LTS)
Direct drop-in integration with ApexsionsCore, ApexsionsEconomy, and PaperMC servers. All perception events and Claude 5.5 reasoning loops execute asynchronously off-thread via CompletableFuture to guarantee 20.00 TPS locked with zero main-thread tick lag.
1. Maven Dependency
<dependency>
<groupId>com.apexsions</groupId>
<artifactId>apexsions-ai-bridge</artifactId>
<version>2.4.0</version>
<scope>provided</scope>
</dependency>
2. Asynchronous Event Hook & MiniMessage Stream
package com.apexsions.core.listeners;
import com.apexsions.core.api.ApexsionsCoreAPI;
import com.apexsions.ai.ApexsionsAI;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;
public class LivingSentinelListener implements Listener {
// Non-blocking async event hook: 0.00 TPS loss on PaperMC
@EventHandler
public void onNPCDialogue(PlayerInteractEntityEvent event) {
var player = event.getPlayer();
var kingdom = ApexsionsCoreAPI.get().getKingdom(player);
ApexsionsAI.agent("aurelius")
.withPlayer(player)
.withContext("faction", kingdom.getName())
.withModel("claude-sonnet-5-5-20260928")
.streamToPlayer(player); // Rendered via Kyori Adventure MiniMessage
}
}
Supported Anthropic Claude 5.5 Model Family (2026 Lineup)
Released Sept 28, 2026. Perfect balance of speed and intelligence. Adaptive thinking with 1M context window for multi-faction geopolitics and complex game systems.
Released Oct 7, 2026. Extreme throughput and low latency. Ideal for instant combat audio barks, crowd simulation, and sub-second merchant dialogue.
Released Sept 22, 2026. Maximum reasoning capability for kingdom-wide economic governance, autonomous quest synthesis, and deep world simulation.
Dual-Tier Memory Architecture
Living NPCs maintain continuous identity, alliances, and debts across months through a hybrid two-tier memory hierarchy:
In-session multi-turn dialogue, real-time spatial events, faction treaty status, and immediate combat perception held within Claude 5.5 extended context window.
Historical player interactions, kingdom chronicles, and long-term reputation vectors stored in embedded HNSW pgvector indices, retrievable within <5ms across server restarts.
REST API Reference
Ingests world sensory data and initiates streaming agentic reasoning loop.
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json
Response: text/event-stream (SSE)