Skip to content

Lite config and operations

Use this page when you need to run Lite reliably, change local defaults, or debug startup behavior.

Startup commands

The normal local path is:

bash
npm install
npm run lite:start

The Lite shell also exposes the app-local commands:

bash
npm --prefix apps/lite run start
npm --prefix apps/lite run start:print-env

Actual startup chain

Lite starts through this chain:

  1. apps/lite/scripts/start-lite-app.sh
  2. apps/lite/src/index.js
  3. src/index.ts
  4. src/runtime-entry.ts

That means the shell is thin and src/runtime-entry.ts remains the runtime truth for assembly and route startup.

Default Lite environment

The startup script sets these defaults unless you override them:

VariableDefault
AIONIS_EDITIONlite
AIONIS_MODElocal
MEMORY_AUTH_MODEoff
TENANT_QUOTA_ENABLEDfalse
RATE_LIMIT_BYPASS_LOOPBACKtrue
PORT3001
LITE_REPLAY_SQLITE_PATH.tmp/aionis-lite-replay.sqlite
LITE_WRITE_SQLITE_PATH.tmp/aionis-lite-write.sqlite
LITE_LOCAL_ACTOR_IDlocal-user
SANDBOX_ENABLEDtrue
SANDBOX_ADMIN_ONLYfalse

Useful overrides

Change the local actor

bash
LITE_LOCAL_ACTOR_ID=lucio npm run lite:start

Move the SQLite files

bash
LITE_WRITE_SQLITE_PATH=/tmp/aionis-write.sqlite \
LITE_REPLAY_SQLITE_PATH=/tmp/aionis-replay.sqlite \
npm run lite:start

Change the port

bash
PORT=3101 npm run lite:start

Use an OpenAI-compatible embedding backend

Lite can also call an OpenAI-compatible embeddings endpoint instead of the default fake embedder. For providers that expose a /v1/embeddings surface, set:

bash
EMBEDDING_PROVIDER=openai \
OPENAI_API_KEY=your-provider-key \
OPENAI_EMBED_BASE_URL=https://api.moonshot.cn/v1 \
OPENAI_EMBEDDING_MODEL=your-embedding-model \
npm run lite:start

OPENAI_EMBED_BASE_URL defaults to https://api.openai.com/v1, but it can now point at any OpenAI-compatible embeddings host.

Use an OpenAI-compatible governance model

The review / governance path already accepts OpenAI-compatible chat-completions backends. For example:

bash
GOVERNANCE_MODEL_CLIENT_TRANSPORT=openai_chat_completions_v1 \
GOVERNANCE_MODEL_CLIENT_BASE_URL=https://api.moonshot.cn/v1 \
GOVERNANCE_MODEL_CLIENT_API_KEY=your-provider-key \
GOVERNANCE_MODEL_CLIENT_MODEL=kimi-k2.6 \
WORKFLOW_GOVERNANCE_HTTP_MODEL_PROMOTE_MEMORY_PROVIDER_ENABLED=true \
REPLAY_GOVERNANCE_HTTP_MODEL_PROMOTE_MEMORY_PROVIDER_ENABLED=true \
TOOLS_GOVERNANCE_HTTP_MODEL_FORM_PATTERN_PROVIDER_ENABLED=true \
npm run lite:start
bash
npm --prefix apps/lite run start:print-env

Sandbox operation modes

Lite exposes sandbox routes when SANDBOX_ENABLED=true.

The common local-safe preset is:

bash
LITE_SANDBOX_PROFILE=local_process_echo npm run lite:start

That profile narrows the executor to:

  1. SANDBOX_EXECUTOR_MODE=local_process
  2. SANDBOX_ALLOWED_COMMANDS_JSON=["echo"]

If you want sandbox routes gated behind the admin token again:

bash
SANDBOX_ADMIN_ONLY=true npm run lite:start

Health and operational checks

Check runtime health

bash
curl http://127.0.0.1:3001/health

Look for:

  1. runtime.edition
  2. lite.route_matrix
  3. lite.stores
  4. sandbox

Memory lifecycle routes

Lite now exposes local memory lifecycle mutations directly:

  1. POST /v1/memory/archive/rehydrate
  2. POST /v1/memory/nodes/activate

From the SDK, those map to:

  1. aionis.memory.archive.rehydrate(...)
  2. aionis.memory.nodes.activate(...)

Rebuild or validate before sharing

bash
npm run -s build
npm run -s lite:test
npm run -s smoke:lite

Important Lite boundary assumptions

Lite is intentionally opinionated:

  1. auth is off by default
  2. tenant quota enforcement is off by default
  3. some server-only route groups, such as admin control, return structured 501
  4. Lite is designed for local-first use
  1. Lite Runtime
  2. Architecture Overview
  3. FAQ and Troubleshooting

Self-evolving continuity runtime for agent systems