The Embeddable Edge-to-Cloud Agentic Resource Planning & Execution (ARPX) Engine for Autonomous Companies.
Developer Docs (arpex.dev) · Executive Manifesto (arpex.one) · Cloud Mesh (arpex.cloud) · Founder Cockpit (arpex.app) · Research & Benchmarks (arpex.tech)
Important
Status: pre-alpha (0.0.x). The packages in this repo define the public API shape only. The native runtime, MandateDB, and the Mandate Airlock are not implemented yet, so plan.execute() currently throws. Latency and memory figures below (0.2ms, 308 bytes, 12us, <45MB) are design targets, not measured benchmarks.
In an era where 1 founder + 10,000 autonomous AI agents can build and operate a global enterprise, writing code is no longer the bottleneck—autonomous state, corporate governance, and financial execution are.
Legacy ERPs (SAP, NetSuite) were built for human clerks clicking forms over slow SQL table locks. Arpex closes the 62-year loop from 1964 MRP and 1990 ERP by combining Agentic Resource Planning (P) and Deterministic Execution (X) into a single embeddable <45MB engine that runs anywhere from a developer laptop or edge node to a global cloud mesh:
+-------------------------------------------------------------------------------------+
| THE 62-YEAR EVOLUTION OF ENTERPRISE SYSTEMS (1964 MRP -> 2026 ARPX) |
+------+------------------------+--------------------------+--------------------------+
| YEAR | ACRONYM & CREATOR | WHAT THE COMPUTER DID | WHO DID THE ACTUAL WORK? |
+------+------------------------+--------------------------+--------------------------+
| 1964 | MRP (J. Orlicky) | Crunched parts overnight | Humans read printouts on |
| | Material Req. Planning | on IBM punch cards. | Monday & called vendors. |
+------+------------------------+--------------------------+--------------------------+
| 1990 | ERP (Gartner) | Centralized databases | Thousands of human clerks|
| | Enterprise Res. Plan. | for Accounting, HR, CRM. | clicked forms all day. |
+------+------------------------+--------------------------+--------------------------+
| 2026 | ARPX (`Arpex`) | Closed-Loop Engine: | Autonomous AI Agents |
| | Agentic Resource | Agents PLAN in `0.2ms` | Plan & Execute from Edge |
| | Planning & Execution | CoW forks & EXECUTE in | to Cloud; 1 Human holds |
| | | an atomic Actor Ledger. | the Mandate (`arpex.app`)|
+------+------------------------+--------------------------+--------------------------+
# Option 1: Scaffold a new autonomous company project
npm create arpex@latest
# Option 2: Install the SDK & CLI into an existing codebase
npm install @arpex.dev/sdk
npx @arpex.dev/cli initimport { Arpex } from '@arpex.dev/sdk'
// 1. Boots in-process in <5ms on Laptop or Edge (backed by local MandateDB)
export const arpex = await Arpex.open({
mandate: './company.mandate',
storage: 'file://./local-edge.arpex',
// 2. Seamless Edge-to-Cloud replication via arpex.cloud
cloudMesh: 'wss://mesh.arpex.cloud/v1/tenant_9921',
// 3. Human-in-the-Loop escalation webhook routed to arpex.app
escalationConsole: 'https://arpex.app/approve',
// 4. Public AP2 cryptographic Mandate verifier hosted on verify.arpex.cloud
ap2VerifierUrl: 'https://verify.arpex.cloud/v1/company_9921',
})
// 5. Wake or spawn the deterministic Entity-Actor for Customer #8841 at the Edge
const customer = arpex.entity('customer:8841')
// 6. PLAN: Fork a 0.2ms Copy-On-Write sandbox at the Edge to test the agent's proposal
const plan = await customer.plan(async (sandbox) => {
await sandbox.ledger.issueCredit({ amount: 450_00, currency: 'USD' })
await sandbox.contracts.extendSubscription({ months: 3 })
})
// 7. EXECUTE: If Mandate invariants pass, commit atomically at the Edge & sync to Cloud
if (plan.mandateVerified && plan.projectedMargin > 0.65) {
const receipt = await plan.execute() // Cryptographically signed AP2 & GAAP commit
}+-------------------------------------------------------------------------------------+
| THE "ARPX" ENGINE LOOP: PLAN IN COPY-ON-WRITE -> EXECUTE IN LEDGER |
+-------------------------------------------------------------------------------------+
| |
| PHASE 1: AGENTIC RESOURCE PLANNING (`arpex.plan()` — Zero-Risk CoW Sandbox) |
| +-----------------------------------------------------------------------------+ |
| | 1. Agent proposes a multi-step resource, contract, or capital plan. | |
| | 2. Engine forks state in `0.2ms` via Copy-On-Write (`fork()`)—or spawns | |
| | 100 parallel simulation branches (`fork(100)`) to rank optimal outcomes. | |
| | 3. PII is masked via the Redaction Lens; zero real external APIs are hit. | |
| +-----------------------------------------------------------------------------+ |
| | |
| v |
| THE MANDATE AIRLOCK (`mandate.yaml` — Open-Source Apache 2.0 Policy Gate) |
| +-----------------------------------------------------------------------------+ |
| | * Verifies accounting invariant (`Debits == Credits`) & Mandate budget caps.| |
| | * Auto-approves in-bounds plans OR routes out-of-bounds plans to `arpex.app`| |
| | for 1-tap hardware Passkey signing by the human founder. | |
| +-----------------------------------------------------------------------------+ |
| | |
| v |
| PHASE 2: AGENTIC RESOURCE EXECUTION (`plan.execute()` — Atomic Finality) |
| +-----------------------------------------------------------------------------+ |
| | 4. Commits ACID double-entry transfer + state mutation inside `MandateDB`. | |
| | 5. Wakes 308-byte BEAM Entity-Actor in `12us` to dispatch external side | |
| | effects with deterministic idempotency keys (`AP2` / Stripe / AWS). | |
| | 6. Replicates signed delta from Edge node to `mesh.arpex.cloud`. | |
| +-----------------------------------------------------------------------------+ |
| |
+-------------------------------------------------------------------------------------+
| Package | Version | Install Command | Description |
|---|---|---|---|
@arpex.dev/sdk |
0.0.1 |
npm i @arpex.dev/sdk |
Official TypeScript/JS SDK & Mandate Airlock wrapper |
@arpex.dev/cli |
0.0.1 |
npx @arpex.dev/cli |
Official arpex CLI (init, plan, status) |
@arpex.dev/core |
0.0.1 |
npm i @arpex.dev/core |
Low-level BEAM Entity-Actor & MandateDB bindings |
create-arpex |
0.0.1 |
npm create arpex |
1-command project initializer (npm/pnpm/bun) |
arpex-sdk |
0.0.1 |
npm i arpex-sdk |
Unscoped top-level SDK package for Arpex
|
All SDKs, CLI tools, mandate.yaml policy parsers, PII Redaction Lenses, and hardware signature verifiers in this repository (Ring 1) are 100% open-source under the Apache License 2.0 so developers and enterprise security teams can inspect every line of code that touches credentials, policies, or network boundaries. See NOTICE for full details on the Two-Ring architecture.