# openclaw · Declarative configuration

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [openclaw](https://ai-agents-review.com/runtime/openclaw.md)
- Column: [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) (Product integration)
- Mark: 4 s
- Default deployment: 4
- Best supported configuration: 4
- Page: https://ai-agents-review.com/cell/openclaw/declarative-configuration

## Rationale

Zod strictObject rejects unknown keys by default, with cross-checks; a `config.schema` RPC serves a machine-readable schema

## Rubric criteria for this column

- 0: Configuration only through code or flags
- 1: Config file(s), no validation: unknown keys and wrong types silently ignored
- 2: Config file(s) with type validation, but unknown keys ignored or warning only by default
- 3: Schema-validated config where unknown keys are rejected, **or** strict mode available and documented
- 4: Level 3 by default, plus semantic checks (limits, references) **and** a published machine-readable schema

## Review finding

Built in: single JSON5 file (`$include` supported) validated by a Zod `strictObject` root plus plugin `configSchema`. Unknown keys error ("Unrecognized key"); invalid config throws at load. No compatibility aliases for old keys [D]. [I84][I85][I86]

## Evidence cited by the mark

- [I84] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/config/zod-schema.ts#L7 — root `z.strictObject(...)` with cross-checks — [S]
- [I85] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/config/io.load.ts#L147-L199 — validation with plugins; invalid config throws — [S]
- [I78] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/gateway/methods/core-descriptors.ts#L116-L345 — method descriptors (`tools.invoke`, `sessions.create`, `agent`, `agent.wait`, `chat.send`) with scopes — [S]

## Evidence also cited by the review finding

- [I86] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/config/validation-plugin-config.ts#L332-L336 — plugin entries validated against manifest `configSchema` — [S]

## Grading record

- Grader A (default / best): 4 / 4
- Grader B (default / best): 4 / 4
