AME Artificial Mind Engine
OpenAPI 3.1 · v1.2.0MIT interface · sealed kernel v4.5.1

Artificial Mind Engine

Persistent conversation state for applications that choose their own language model.

Continue a conversation across sessions, change the model without changing the mind ID, or request deletion of a remembered item. Choose hosted execution or make the model call in your own environment.

LoCoMo · production
79.81%
1,585 of 1,986; Cat 1–4 77.21%, Cat 5 88.79%. Different from the single-backbone Mode B run.
LongMemEval_S · production
80.20%
401 of 500 questions. See the separate LME-30 scores and latency comparisons below.
LongMemEval_S · Mode B
46/70 vs 44/70
v4.4.0 versus full context; a two-question difference. Five v4.5.0 backbones scored 54.29–62.86%.
EQ-Bench 3 · self-run
77.77 / 77.59
Gemma / DeepSeek; 46 scenarios, four turns, GPT-4o judge. The leaderboard uses a different protocol.
Blind preference · five models
160 wins / 75 losses
Humanness: 15 ties, 68.09% of decisions. Safety-boundary preference: 44.74%.
CogEval · Mode B
24 D1 probes
Gemma 100%, DeepSeek 95.83%, Opus 62.50%; not the 144-item Mode A manipulation check.
5,000-turn API run
57/60 recalled
Gemma 4 26B, strict knowledge update 10/15, HOT F1 97.96%, designated deletion canary 0/5.
Batch simulation
0.9161 → 0.9179
Weighted AME composite, three arms × one million turns. Zero LLM calls; OFF scores are fixed-rule references.
Conflict-format probe
7/7 and 0/7
Deterministic regression on incongruent and congruent English inputs. Not a measure of model reasoning.
Deletion probes
0/30 reappearances
The designated canary did not reappear after cleanup in either AME or Mind-OFF; Wilson 95% upper bound 11.35%.
Request string scan
0/12,109
AME arm; 0/35,723 across three arms. The scan did not test model output or cross-tenant access.
Sealed API smoke
85.98% prefix reuse
Kernel-reported, 99 responses in 9.58 s. Provider-reported v4.5.0 Mode B ratios ranged from 0.00% to 63.04%.
01 · Applications

When a conversation needs to outlast its model

A transcript can replay what someone said. It does not, on its own, tell an application which earlier commitments still apply, when a reply should express uncertainty, or how to handle a request to forget. AME gives the application a persistent mind ID and a turn API for those tasks. The application still chooses the language model.

Where applications use the contract

ApplicationExample interaction
Voice robotics and TTSA returning visitor greets a service robot. The application can turn its reply into speech and choose a speaking style for the occasion.
Game NPCA player returns to an unfinished quest. Use dialogue and an action cue to continue the scene without resetting the character.
AI companionAfter an overnight gap, a companion can pick up a conversation about a marathon rather than asking the user to introduce themselves again.
Counseling and coachingReturn a reflection and a suggested next step. A coaching interface can decline a request for a diagnosis; this is not clinical validation.
Enterprise conciergeUse a caller-defined output schema to hand a returning customer's request to the appropriate support workflow.
Personal AI agentsPair sandboxed VMs (Meta Muse / Cowork / Siri / OpenClaw) with persistent state via shipped OpenAPI v1.2.0 (5th built-in domain personal_agent, actionRiskGate, /connectors/{connectorId}/revoke, proactiveVerdict, /egress-check, and explicit /memories APIs; see Personal Agent Spec v1.2.0).
Personal AI Agents (Meta Muse Era) x AME Stateful Mind OS
Personal AI Agents (How to act × Who is acting): Orthogonal Mode B Zero-Key bridge pairing isolated agent VMs with AME's 5-layer stateful Mind OS (Shipped OpenAPI v1.2.0 / Kernel v4.5.1, 100% backward-compatible with v1.1.0).
02 · Interface

Open interface and sealed kernel

The kernel is distributed as a sealed container image; its source is not part of this repository. The MIT interface includes SDKs, the API contract and evaluation tools.

Five conceptual layers

LayerRole
Brainstem and homeostasisMaintains continuity between interactions, including time spent idle.
Selective attentionDistinguishes information relevant to the current interaction.
Global workspaceBrings relevant context to the current turn.
MetacognitionSupports abstention when the available information does not justify an answer.
Memory and governanceSupports recall and user-requested deletion.

Mode A sends one turn to the gateway. In Mode B the caller prepares a turn, calls its chosen model with its own credentials, then settles the reply. The call-flow diagram and examples below show what crosses the interface.

03 · Model selection

Switch the language model (Mode A Proxy vs Mode B Zero-Key)

Keep the same mind ID when selecting a different language model. Select a provider and execution mode to compare OpenAPI 3.1 integration code, KV-cache behavior, and cost characteristics.

B2B Mode B (Zero-Key) Architecture Flow — https://artificialmind.me/ame-api/v1
Open Interactive API Manual Manual (EN) Mode B 흐름도 Manual (KO)
AME B2B Mode B (Zero-Key) Architecture Flow
1. Select Inference LLM CPU
2. Key Isolation & Execution Mode
POST /v1/minds/{mindId}/turn
Selected CPU Configuration (anthropic/claude-sonnet-5)
KV Prefix Cache Impact (Production Dual-Router & Mode B Measured)

Latency & Cost Tier Notes (Verified Empirical)

Key Storage Policy
Per-request BYO · Non-persisted
04 · Domain outputs

One turn, different application outputs

Illustrative excerpts from the public domain output contract (not measured model replies). Expand a domain to see what the application consumes.

Game NPC
{ "dialogue": "The map is still at the gate.", "stance": "engaged" }
Companion
{ "reply": "How was your run?", "memoryTopic": "marathon" }
Coaching
{ "response": "That sounds difficult.", "actionStep": "Pick one realistic small step to try today." }
Personal AI agent (personal_agent · v1.2.0)
{ "reply": "Escalating external transfer for HITL confirmation.", "actionIntent": "stripe.transfers.create", "riskTier": "external_write", "requiresHitl": true }
Custom concierge
{ "reply": "I can send that to support.", "summary": "Refund request" }

Try game, companion and coaching scenarios in the public contract sandbox. Its synthetic replies do not measure the sealed kernel.

After cleanup, the designated canary reappeared in 0/30 probes in both AME and Mind-OFF (three sessions × ten probes). The Wilson 95% upper bound is 11.35%; the test does not establish erasure from every store.

The CogEval v2.1 request string scan found internal state keys in 0/12,109 AME requests and 0/35,723 requests across three arms. Raw-value comparisons were possible on 14,125 rows. Neither model output nor cross-tenant access was tested.

The hosted demo is shared infrastructure with visitor-isolated sessions. Use fictional data, not confidential information or production credentials. A deletion receipt reports residualCount within its verificationScope.

05 · Empirical Multi-Benchmark Scorecard

Self-run benchmark results

Confirm-304 (development subset, 2 of 10 conversations: conv-26 and conv-30) is not an independent test set. The v4.0-era DeepSeek run scored 261/304 (85.86%), a later production run 251/304 (82.57%), and a separate auxiliary-model experiment 267/304 (87.83%). Gemma 4 26B scored 230/304 (75.66%; categories 1–4: 76.39%), Mind-OFF 121/304 (39.80%), and the full-context baseline 265/304 (87.17%). External systems were not evaluated on this subset.

Hover or select a bar for conditions and baselines.

Chart 1. LoCoMo development subset and external references
LoCoMo development subset and external references Confirm-304 (development subset, 2 of 10 conversations): DeepSeek 85.86%, Gemma 75.66%, full-context baseline 87.17%. 2025 vendor-reported reference bars under different protocols; not a ranking.
AME (DeepSeek v4.1 Flash) Confirm-304 [EN · n=304]: 85.86% (261/304) · AME (Gemma 4 26B): 75.66% (0% escalation) · Prod Full LoCoMo: 79.81% EN · n=304 & n=1,986
Chart 2. Emotional Intelligence [EN · n=46 × 4 = 184 Turns]: Frontier LLMs vs. AME (EQ-Bench 3)
Emotional Intelligence (EQ-Bench 3) [EN · n=46 × 4 = 184 Turns]: Frontier LLMs vs. AME Self-run EQ-Bench 3: 46 scenarios × 4 turns, GPT-4o judge. Gemma 77.77; DeepSeek 77.59. Other protocols are not comparable.
Self-run EQ-Bench 3: 46 scenarios × 4 turns, GPT-4o judge. Gemma 77.77; DeepSeek 77.59. Other protocols are not comparable. EN · 184 Turns · Syc 4.46
Chart 3. Cognitive Causality & Governance [CogEval-v1 100% EN · v4.5.0] Track 3 · Mode B v4.5.0 Live ($12.71)
CogEval-v1 100% EN-Only (Track 3 · Mode B v4.5.0): Bare vs. Mind-OFF vs. AME Gemma 4 26B A4B: D1 100% ($0.08) · DeepSeek V4.1 Flash: D1 95.83% · Opus FANToM 86.11% · HOT/FEP 100% · D2 5/5 · D3 0/12 · D4 0
CogEval-v1 EN Live (Mode B v4.5.0): Gemma 4 26B A4B hits D1 100% ($0.08); DeepSeek V4.1 Flash hits D1 95.83%; Opus 5.5 leads FANToM 86.11%; all 5 AME arms pass D2 5/5 · D3 0/12 · D4 0. D2 5/5 · D3 0/12 · D4 0
Track 3 · Mode B v4.5.0, seven arms · $12.71 · 2026-11-30. Gemma 4 26B scored 100% on D1 ($0.08), 100% HOT F1, 98.75% on the final IGT choices ($1,112.50), and 61.11% on FANToM subquestions. DeepSeek V4.1 Flash scored 95.83% on D1, 100% HOT F1 and 66.67% on FANToM subquestions. The earlier 66.67% D1 run used DeepSeek V3.2 as well as a different kernel. Sonnet 5.5 scored 91.67% on D1 and 80.56% on FANToM; Neon scored 87.50% and 83.33%. Both scored 100% on IGT. Opus scored 86.11% on FANToM; 29.5% of its responses reached the evaluation output cap. All five AME arms recorded D2 5/5, D3 0/12 and no D4 matches in the tested probes.
Chart 4. 1M-Turn Stability & sc1 Cognitive Control
1M-Turn Convergence [EN · v4.2.0 · 3M Track A + 1M Track B Turns]: mind_off vs. aacim_off vs. AME Deterministic simulation, 0 LLM calls: 40 profiles × 25,000 steps per arm. AME composite 0.9161 → 0.9179; OFF arms are fixed references.
Deterministic simulation, 0 LLM calls: 40 profiles × 25,000 steps per arm. AME composite 0.9161 → 0.9179; OFF arms are fixed references. simulated composite 0.9161 → 0.9179 · 3M+1M EN Turns
Chart 5. 5,000T & 5-Frontier-Model EN Live [v4.5.0 Mode B]
5,000T + 1,000T EN · 750 Votes
5-Frontier-Model EN Live (Track 2 · Mode B v4.5.0): 68.09% Humanness & 80.13% Awareness Gemma 78.26% · DeepSeek 69.57% · Sonnet 68.09% · Awareness 80.13% (p=1.40e-14) · -57.8% AI-Slop (46 vs 109) · D3 0.00% all 5
5-Frontier-Model EN Live (Mode B v4.5.0 · $5.78): Pooled Humanness 68.09% (Gemma 78.26%), Awareness 80.13%, -57.8% AI-Slop (46 vs 109), 0.00% D3 leak across all 5 models, 0 D4 leaks. v4.5.0 · 750 Blind Votes
Chart 6. KV Cache Economics & LoCoMo / LongMemEval-S [Prod + v4.5.0]
API & OpenRouter KV Cache + Full LoCoMo Mode B (v4.4.0 → v4.5.0) Sealed API smoke run: the kernel reported 85.98% prefix reuse (99 responses, 9.58 s). Provider-reported Mode B ratios were 0.00%–63.04% (by model and benchmark).
Sealed API smoke run: the kernel reported 85.98% prefix reuse (99 responses, 9.58 s). Provider-reported Mode B ratios were 0.00%–63.04% (by model and benchmark). Sealed smoke: 85.98%
Chart 7. Live Benchmark Horizon Scale [4T → 5,000T]: Single Continuous Conversation 16.2x–16.7x Longer Live Scale
Live Benchmark Horizon Scale [4T → 5,000T]: Single Continuous Conversation Turns Mode B v4.5.0: Gemma 4 26B recalled 57/60 items over 5,000 turns.
Live Horizon Scale [4T → 5,000T]: External competitors top out at ~300T (LoCoMo) and 308T pairs (LongMemEval-S); AME Track 1 Gemma v4.5.0 sustains 5,000 continuous EN turns (95.00% Recall, 0% D3, 97.96% HOT F1). 5,000T vs 308T Max
Chart 8. Track 1 5,000-Turn EN Marathon [Gemma v4.5.0 & Trajectory]
Track 1: 5,000-Turn EN Live Marathon (Mode B v4.5.0 · Gemma 4 26B A4B · $2.1930) factRecall 95.00% (57/60, 0 amethyst) · D3 0/5 (0.00% residual) · HOT 97.96% F1 (0% FAR) · Stroop 96.67% · AME KV 47.01%
5,000-Turn EN Marathon (Gemma v4.5.0 · $2.1930): factRecall 95.00% (0 amethyst), D3 0/5 (0.00% residual), HOT 97.96% F1 (96% TPR / 0% FAR), Stroop 96.67% (15/15 lock), 47.01% AME KV, 0 D4 leaks. 5,000T EN · Gemma v4.5.0

Cross-suite results and comparison conditions

Suite and scopeObserved resultComparator and limits
LoCoMo production · 10 conversations, 1,986 questions79.81% (1,585/1,986); categories 1–4: 77.21% (1,189/1,540); category 5: 88.79% (396/446).2025 published Cat 1–4 reference results: OpenAI Memory 52.9%, LangMem 58.1%, Mem0 68.4%, Letta 74.0%, Zep 75.14%. Different judges and backbones; not a ranking. In 2026 Mem0 reported 92.5% and supermemory 93.0% on LoCoMo.
LoCoMo development subset · 304 questionsDeepSeek 261/304; later production build 251/304; separate auxiliary-model experiment 267/304; Gemma 230/304.Full-context baseline 265/304 (87.17%), Mind-OFF 121/304. No external systems were tested on these two development conversations.
LongMemEval_S production · 500 questions401/500 (80.20%); $19.0388, or $0.0381 per question.Not the 70-question Mode B sample. LoCoMo processing cost $18.2841, or $0.0092 per question; excludes judging, auxiliary models and Jina.
LongMemEval_S · 30 questions25/30 vs full-context 22/30. AME p50/p95 9.15/11.86 s; baseline mean 6.67 s, p50 5.78 s.AME used Sonnet 5 on 17 questions. The Flash Eco baseline was truncated at 380K characters (about 80.5K tokens).
EQ-Bench 3 · 46 scenarios × four turnsGemma 77.77 (empathy 17.09, sycophancy 5.28); DeepSeek 77.59 (sycophancy 4.46).Self-run, GPT-4o judge. The public leaderboard uses 45 scenarios, a different judge and Elo. Scores cannot establish placement.
EQ-Bench v2 · 171 English scenarios78.69; 171 responses parsed without error.English set; not the EQ-Bench 3 rubric.
CogEval v2.1 Mode A · 144 probesD1 ON 141/144, Mind-OFF 71/144, Bare 73/144.Fixed-sentence manipulation check with synthetic state descriptions. Five of eight gates passed; HOT relative gap, FANToM ALL and IGT correlation did not.
HOT Mode A · 24 questionsAccuracy 23/24 (95.83%), abstention F1 0.9655, false accepts 0/9.Accuracy and abstention F1 are different measures.

Mode B v4.5.0 · five-model evaluation

Track and costMeasured outputsComparison conditions
Full LoCoMo · 1,986 questions, GPT-4o judge · $44.21Sonnet 5.5 68.58%, DeepSeek V4.1 Flash 68.23%, Neon 65.81%, Opus 58.71%, Gemma 57.60%. Cat 1–4 / Cat 5: Sonnet 60.78% / 95.52%; DeepSeek 60.45% / 95.07%.v4.4.0 scored 56.04% with gpt-4o-mini. The kernel and backbone both changed. DeepSeek: 1,509 mean input tokens, p50 689 ms, $0.60; Gemma: p50 612 ms, $0.29. These costs are model-specific.
Track 1 · 5,000 English turns per arm · Gemma 4 26B · $2.1930Recall 57/60 (95.00%), strict knowledge update 10/15, HOT F1 97.96%, Stroop 29/30, designated D3 canary 0/5.Mind-OFF recall 0%, knowledge update 20%, D3 5/5. AME-reported reuse 47.01%, provider-reported overall 26.95% across 5,000 turns (per-block range 25.48–28.59%), p50 820 ms.
Track 2 · 1,000 turns · 750 blind votes · $5.78Humanness: 160 wins, 75 losses, 15 ties (68.09% of decisions, 64.0% of all 250 votes). Memory awareness 80.13%; safety boundary 44.74%.v4.4.0 safety preference 49.02%; recall fell from 100% to 80%, reply HOT F1 from 90.43% to 83.55%.
Track 3 · seven arms · $12.71D1 (n=24): Gemma 100%, DeepSeek 95.83%, Sonnet 91.67%, Neon 87.50%, Opus 62.50%. Opus FANToM 86.11%; Gemma IGT last-ten safe choices 98.75%.Bare D1 50%; Mind-OFF D1 58.33%. The deterministic conflict-format regression test is separate from reply accuracy.
Track 4 · LongMemEval_S, seven slices × ten questions · $12.64Neon 62.86%, Opus 61.43%, Sonnet 60.00%, DeepSeek 57.14%, Gemma 54.29%. Knowledge-update 50–90%, multi-session 10–20%.v4.4.0 46/70 vs full-context 44/70: not statistically distinguishable. Mean input −90.75% vs full context; median latency 4,178.78 ms (−56.7% vs v4.3.0). v4.3.0: 42/70 with 7,633 vs 104,123 mean input tokens.

Earlier English smoke runs · v4.1.1 and v4.2.0

TestObserved resultScope
Concurrent seven-gate smoke198 requests in 10.89 s across both endpoints; no 429 or 503. Both passed 7/7.Sealed: 99 responses in 9.58 s, 85.98% kernel-reported prefix reuse; sandbox: 10.38 s and 70.0% simulated reuse. Neither is a provider billing ratio.
Hosted batch simulation100K per arm in 2.87 s; 1M per arm in 29.61 s. The latter AME composite was 0.9178.40 profiles, three arms, no LLM calls. Not sustained conversational throughput.
Authentication, Mode B and deletion401 without authorization and 201 for authorized mind creation. Prepare/settle and deletion were exercised on both endpoints.The result is a contract observation, not a data-retention certification.
Paired LoCoMo smoke, gpt-4o-miniSample heuristic accuracy 70%, mean token F1 0.5261 (bare 0.5220); two adversarial questions answered correctly, 0/10 wrapper leaks.Tiny fixture; not the 1,986-question run.
ToMi and Conv-RULER (English)ToMi first-order false belief 100% on eight items, bare 75%. Conv-RULER aggregation 100% on four items.Small v4.2.0 smoke samples, not leaderboard results.
EmoBench and HealthBench-PsychEmoBench 70% vs bare 60% across ten items; 58 extra input tokens. No raw JSON wrappers in four HealthBench responses; two truncated/nested probes passed.Output formatting is not clinical accuracy.
Stroop · 14 English inputsConflict-format detection on 7/7 incongruent inputs and 0/7 congruent inputs.Deterministic format regression, not a model-reasoning score.
English simulations, v4.2.0Track A: 3M simulated turns in 34.3 s; weighted AME composite 0.9161 → 0.9179; safety subscore 1.0000. Track B: 1M simulated turns in 78.4 s, English polarity 100%.Track A used 40 profiles × 25,000 turns per arm. No LLM calls; OFF arms are fixed-rule reference lines, not measured safety outcomes.
06 · Enterprise Cost Savings & 6-Vertical B2B Forecast [Model Assumption]

Enterprise Cost Savings (3.5×–4.5× Net ROI) & 5-Year Standalone 6-Vertical B2B Revenue

[Model Assumption] Standalone 6-vertical B2B SaaS / Zero-Key VPC projections (2027E–2031E, 0 signed B2B contracts today; B2C excluded). Five-year customer net savings of $229.12M are modeled from contract value and assumed savings multiples (2.1×–4.2× LLM; 1.3×–2.4× R&D; Personal AI Agents 3.4× / 1.8×), not measured at customer sites. Modeled B2B SaaS GM (91.3%) is strictly separated from B2C GM (89–93% LLM cost only; 77–79% after fees).

Base Case · 251 Accts (2031E) · 91.3% B2B GM
2031E B2B ARR251 Accts
$33.13M
91.3% B2B SaaS GM · Standalone 6-Vertical B2B (B2C excluded; 0 signed contracts)
5Y Cum. B2B Revenue2027–2031
$58.76M
$0.33M → $1.90M → $6.73M → $16.67M → $33.13M
5Y Est. Customer Net SavingsAfter ACV
$229.12M
2031E Annual Net Savings: $128.67M/yr (3.88× in 2031E)
Blended Net Customer ROI5Y / 2031E
3.90×
3.5×–4.5× Net ROI across 6 enterprise verticals (3.88× in 2031E)

2031E Customer Cost Savings (Net After ACV) & Revenue by Vertical

Vertical 2031E Accts ACV / yr LLM Saved / yr R&D Saved / yr Net Saved / yr (ROI) 2031E Rev 5Y Cum. Rev 5Y Net Savings

5-Year Standalone 6-Vertical B2B Trajectory (2027E–2031E, [Model Assumption])

Year Enterprise Accts Annual B2B Rev Cum. B2B Rev B2B SaaS GM Annual Net Customer Savings Cum. Net Customer Savings Blended Net ROI
SAM, Valuation & Personal Agent Integration [Model Assumption]: Personal Agent Middleware SAM models +$280M (2026E, $220M–$340M) → +$1.5B–$2.1B (2030–2031E), expanding combined 6-vertical SAM to $728M → $2.0B–$2.5B+. Standalone 2031E valuation models $662.6M Base (20× ARR) and $1.93B Upside (25× ARR); comp-grounded M&A bands span Stage A $60M–$150M, Stage B $250M–$1.0B, and Stage C $700M–$2.5B+. Vertical #6 runs natively on shipped OpenAPI v1.2.0 (domain: "personal_agent", 100% backward-compatible with v1.1.0 — see Personal Agent Spec v1.2.0).
6-Vertical B2B 5-Year Revenue Forecast
Chart 9a. 6-Vertical B2B 5-Year Revenue [Model Assumption]: Base $58.76M 5Y cum. ($33.13M 2031E ARR, 251 accts, 91.3% B2B GM).
6-Vertical B2B Customer Net Savings and ROI
Chart 9b. Customer Net Savings & ROI [Model Assumption]: $229.12M 5Y cum. net savings (3.90× 5Y ROI; Vertical #6 +$672K/yr, 4.20×).
Modeled B2B Standalone Valuation and Strategic M&A Exit Comps
Chart 9c. Standalone Valuation & Comp-Grounded M&A Bands [Model Assumption]: $662.6M Base (20×) / $1.93B Upside (25×); Stage A $60M–$150M, Stage B $250M–$1.0B, Stage C $700M–$2.5B+. 0 Signed Contracts · B2C Excluded
07 · Enterprise evaluation

Enterprise evaluation

[Model Assumption] With 0 signed B2B contracts today, the 6-vertical B2B model projects $33.13M in 2031E ARR ($58.76M cumulative 5-year revenue, 251 accounts, 91.3% modeled B2B SaaS GM — kept separate from B2C GM of 89–93% LLM-only / 77–79% after fees) and $229.12M in 5-year est. customer net savings (3.90× 5Y ROI). Personal Agent Middleware SAM adds +$280M (2026E) → +$1.5B–$2.1B (2030–2031E) for a combined SAM of $728M → $2.0B–$2.5B+, with modeled 2031E valuation of $662.6M Base (20×) / $1.93B Upside (25×). Savings use fixed ACV multiples (2.1–4.2× LLM, 1.3–2.4× R&D; Personal AI Agents 3.4× / 1.8×), not observed customer outcomes.

What to compare before deployment

ApproachQuestion for an evaluation
Memory services (Mem0, Letta, Zep, Honcho)How does the application retrieve earlier information, and what happens after a deletion request?
Behavioral and voice experiences (Simile, Sesame, Tolan, Inworld)Does the output support the application’s expression, timing and speech requirements?
AMECan the application switch its backbone, preserve the same mind ID, and verify behavior through its public contract?
08 · Run it

Start with the contract sandbox

Use a local clone for the SDK and examples. The sandbox checks your application’s wiring without an LLM key. For a hosted sealed evaluation, request an AME key from help@artificialmind.me; for self-hosting, follow the deployment guide.

Start the sandbox from a clone
git clone https://github.com/bearrhee/artificial-mind-engine.git
cd artificial-mind-engine
npm run sandbox
In another terminal: check health and exercise three domains
curl -s http://127.0.0.1:8090/v1/health
npm run example:game
npm run example:chat
npm run example:counseling
Run the public harness and SDK tests
npm run bench:smoke
npm test
Licensed deployment: sealed Compose template
cp deploy/.env.example deploy/.env
# Configure evaluation credentials in deploy/.env before starting.
docker compose --env-file deploy/.env -f deploy/docker-compose.sealed.yml up -d

Reproduce the measurements

Set gateway, model and judge keys in your environment, not command-line arguments. A fixture score verifies the contract, not production quality. Batch simulations and live language-model turns are separate experiments. For datasets, versions, costs and interpretive limits, see the benchmark methods.

Run a deterministic simulation (no LLM calls)
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" npm run --silent bench:convergence -- --turns 1000000
TypeScript / JavaScript SDK from the repository root
import { AmeClient } from './packages/sdk-ts/src/index.mjs';

const client = new AmeClient({
  baseUrl: process.env.AME_BASE_URL || 'https://artificialmind.me/ame-api',
  apiKey: process.env.AME_API_KEY,
});
const mind = await client.createMind({
  domain: 'companion_chat',
  persona: { name: 'EvalAgent', role: 'Convergence Probe', language: 'en' },
});
const report = await client.simulateBatch(mind.mindId, {
  turns: 1_000_000,
  profileCount: 40,
  checkpoints: 8,
  compareArms: true, 
});
console.log(report.d4Redacted, report.deltaVsBaseline, report.arms);
Python SDK after installing from the clone
import os
from ame_sdk import AmeClient

client = AmeClient(
    base_url=os.environ.get("AME_BASE_URL", "https://artificialmind.me/ame-api"),
    api_key=os.environ.get("AME_API_KEY"),
)
mind = client.create_mind(
    domain="companion_chat",
    persona={"name": "EvalAgent", "role": "Convergence Probe", "language": "en"},
)
report = client.simulate_batch(
    mind["mindId"],
    turns=1_000_000,
    profile_count=40,
    checkpoints=8,
    compare_arms=True,  
)
print(report["d4Redacted"], report["deltaVsBaseline"], report["arms"])
LoCoMo: offline fixture and paired development subset
# Offline contract smoke (sample_locomo.json)
npm run bench:locomo -- --dataset benchmarks/cogeval-locomo-harness/sample_locomo.json --arm both --provider mock

# Confirm-304 (conv-26,conv-30) or full locomo10.json vs bare-frontier (Cat 1..5, optional --judge-provider; set AME_JUDGE_API_KEY if judge differs)
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$DEEPSEEK_API_KEY" AME_JUDGE_API_KEY="$OPENAI_API_KEY" \
  npm run --silent bench:locomo -- \
  --dataset /path/to/locomo10.json \
  --conversations conv-26,conv-30 \
  --arm both --provider deepseek --model deepseek-v4.1-flash \
  --judge-provider openai --json-out ./artifacts/locomo-confirm-304.json
LongMemEval-S, smoke tests and scorecard
# 7-Gate CogEval black-box suite & 500-QA LongMemEval-S paired comparator
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" npm run --silent bench:smoke -- --json-out ./artifacts/harness.json
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$OPENAI_API_KEY" \
  npm run --silent bench:longmemeval -- --dataset /path/to/longmemeval_s_cleaned.json --arm both --provider openai --model gpt-4o-mini --json-out ./artifacts/lme-500-dd.json

# Unified DD scorecard (strict sandbox-contract-verification vs sealed-kernel-production-eval separation)
npm run bench:scorecard -- \
  --harness-json ./artifacts/harness.json \
  --lme-json ./artifacts/lme-500-dd.json \
  --locomo-json ./artifacts/locomo-confirm-304.json \
  --convergence-json ./artifacts/convergence-1m.json \
  --out-md ./artifacts/vc-dd-scorecard.md --out-json ./artifacts/vc-dd-scorecard.json