# Artificial Mind Engine (AME) > A 5-layer stateful cognitive OS kernel over OpenAPI 3.1 that decouples long-horizon memory, affective homeostasis, ActionRiskGate, D3 connector revocation, and D4 egress firewall from stateless LLMs. Artificial Mind Engine (AME) separates stateful cognition from hot-swappable foundation models (`OpenAI`, `Anthropic`, `Gemini`, `DeepSeek`, `OpenRouter`, and local `vLLM`/`Ollama`) across five built-in domains (`game_npc`, `companion_chat`, `counseling_coach`, `personal_agent`, `custom`). Integrators can run either **Mode A** (proxy BYO-LLM via `POST /v1/minds/{mindId}/turn`) or **Mode B Zero-Key** (`POST /prepare` -> client-side direct LLM call -> `POST /settle`, so LLM provider API keys never touch AME servers). ## Endpoints & Auth - **Production Sealed Kernel Base URL**: `https://artificialmind.me/ame-api` - Auth: Send `X-AME-API-Key: YOUR_AME_API_KEY` or `Authorization: Bearer YOUR_AME_API_KEY`. - JSON request bodies are capped at 1 MiB (`1048576` bytes); empty `DELETE` requests are allowed even when `Content-Type: application/json` is set. - **Keyless Hosted Sandbox Base URL**: `https://artificialmind.me/ame-demo` - Auth: No API key required. Send a random 32–128 char URL-safe `X-AME-Visitor-Token` header (pattern `^[A-Za-z0-9_-]{32,128}$`) and retain it per client/session to scope owned Minds. - Note: `/ame-demo` is a rule-based contract simulator for integration testing, **not** the sealed kernel. ## Discovery & Docs - [Full Agent Handbook (`llms-full.txt`)](https://artificialmind.me/llms-full.txt): Complete auth rules, concrete JSON examples for all core endpoints, Mode B Zero-Key Node/TS & Python code, `mcp.json` configs, and error schemas. - [OpenAPI 3.1 Specification (JSON)](https://artificialmind.me/openapi.json): Machine-readable OpenAPI `3.1.0` spec (`info.version: 1.2.0`). - [OpenAPI 3.1 Specification (YAML)](https://artificialmind.me/openapi.yaml): Canonical YAML OpenAPI `3.1.0` contract. - [Interactive API Manual](https://artificialmind.me/api-manual.html): Interactive endpoint explorer and Mode A / Mode B guide. - [MIT Open Interface & SDKs (GitHub)](https://github.com/bearrhee/artificial-mind-engine): Open-source `@ame/sdk` (TS/ESM), `ame_sdk` (Python), local sandbox server, and benchmark harnesses. ## Plug-and-Play MCP Server Connect AME directly to MCP-compatible AI agents and IDEs: ```bash # Instant $0 keyless sandbox mode (no API key required) npx -y github:bearrhee/artificial-mind-engine --sandbox # Or live sealed kernel mode AME_API_KEY=YOUR_AME_API_KEY npx -y github:bearrhee/artificial-mind-engine ``` Set `AME_SANDBOX=1` (or pass `--sandbox`) for the instant `$0` keyless sandbox, or set `AME_API_KEY` to target the live sealed kernel at `https://artificialmind.me/ame-api`. ## Pricing & Self-Serve API Key - **Free Sandbox & MIT SDK**: `$0/mo` — `10,000` kernel turns/mo, `100` active minds (`https://artificialmind.me/ame-demo` & `https://github.com/bearrhee/artificial-mind-engine`). - **Pro · Hosted API Beta**: `$49/mo` — `250,000` kernel turns/mo, `5,000` active minds, `$0.20/1K` extra turns, `$0.05/mo` extra active mind. Instant self-serve PayPal USD checkout at `https://artificialmind.me/#pricing` auto-issues your `X-AME-API-Key` immediately upon confirmation. - **Enterprise & Zero-Key VPC**: `$2,000+/mo` (`$24K–$160K` ACV) — dedicated VPC deployment, custom schemas, and SLA. Contact `help@artificialmind.me`. ## Disclosures - **Commercial Traction**: `0 signed B2B contracts today` (public hosted API beta). - **Benchmarks**: `79.81%` LoCoMo (`n=1,986`) and `80.20%` LongMemEval_S (`n=500`) on production dual-router; `68.58%` Sonnet / `68.23%` DeepSeek Mode B v4.5.0. All benchmarks are `self-reported on own harness, not a ranking`. - **Safety & Governance Controls**: `D3` connector memory revocation and `D4` egress firewall / latent-state redaction are `self-tests, not compliance certifications`.