Configuration
Configuration
Section titled “Configuration”Clasper Core is configured entirely via environment variables.
OSS vs Cloud: OSS runs locally with self-attested approvals. Cloud adds decision tokens and external proof. See OSS vs Cloud.
The canonical, always-up-to-date list is in:
clasper-core/.env.example
This page summarizes the most important configuration options.
Core server
Section titled “Core server”CLASPER_PORT: HTTP port (default8081)CLASPER_DB_PATH: SQLite DB path (default./clasper.db)
Control plane integration (backend)
Section titled “Control plane integration (backend)”BACKEND_URL: backend base URLAGENT_JWT_SECRET: shared secret used to mint/verifyX-Agent-Token
Adapter authentication
Section titled “Adapter authentication”ADAPTER_JWT_SECRET: verifyX-Adapter-Token(required for adapter endpoints)ADAPTER_JWT_ALGORITHM: JWT alg (defaultHS256)
Trust, integrity, and enforcement
Section titled “Trust, integrity, and enforcement”-
Telemetry signature verification
CLASPER_TELEMETRY_SIGNATURE_MODE:off | warn | enforceCLASPER_TELEMETRY_MAX_SKEW_SECONDS: allowed clock skew
-
Tool authorization enforcement
CLASPER_TOOL_AUTH_MODE:off | warn | enforceCLASPER_TOOL_TOKEN_SECRET: required to issue tool auth tokensCLASPER_TOOL_TOKEN_ALGORITHM: JWT alg (defaultHS256)
Policy engine
Section titled “Policy engine”CLASPER_POLICY_PATH: legacy YAML policy path (still supported for older flows)CLASPER_MODE: governance mode for no-match behavior:permissive(default): no-match allowsguarded: no-match requires fallback policy; if fallback is missing, no-match is blockedstrict: no-match denies
CLASPER_DECISION_MAX_ROWS: retention cap for the decisions table (default100000; set<= 0to disable cap)
Clasper Core policies are stored as data and managed via Ops APIs:
GET/POST/PATCH/DELETE /ops/api/policies
Async approvals (decision tokens)
Section titled “Async approvals (decision tokens)”CLASPER_DECISION_TOKEN_SECRET: required to mint/verify decision tokensCLASPER_DECISION_TOKEN_ALGORITHM: JWT alg (defaultHS256)CLASPER_DECISION_TOKEN_TTL_SECONDS: token TTL in seconds (default600)
Approvals (OSS)
Section titled “Approvals (OSS)”Clasper Core supports local, self-attested approvals via the Ops Console. In OSS there is no Cloud-issued authority token; approvals are recorded and enforced by Core locally.
CLASPER_APPROVAL_MODE:simulate(default): anyrequire_approvalis AUTO-APPROVED and the decision/audit makes that explicit (dev-friendly)enforce:require_approvalcreates a pending decision and execution pauses until an operator approves/denies in Ops
OpenClaw adapter timing knobs are configured in plugin config (not Core env vars):
approvalWaitTimeoutMs(default300000)approvalPollIntervalMs(default2000)executionReuseWindowMs(default600000)
Back-compat (older name, still supported):
CLASPER_REQUIRE_APPROVAL_IN_CORE=allow→CLASPER_APPROVAL_MODE=simulateCLASPER_REQUIRE_APPROVAL_IN_CORE=block→CLASPER_APPROVAL_MODE=enforce
Verifiable exports (offline verification)
Section titled “Verifiable exports (offline verification)”CLASPER_EXPORT_SIGNING_MODE:off | warn | enforce(defaultoff)CLASPER_EXPORT_SIGNING_KEY_PATH: path to Ed25519 private key (PEM)CLASPER_EXPORT_SIGNING_KEY_ID: optional key identifier for rotation
Export endpoints / CLI:
POST /ops/api/exportsnpx clasper-core export ...(download bundle)
Ops Console auth (OIDC)
Section titled “Ops Console auth (OIDC)”OPS_OIDC_ISSUEROPS_OIDC_AUDIENCEOPS_OIDC_JWKS_URL(optional if issuer is set)OPS_RBAC_CLAIMOPS_TENANT_CLAIMOPS_WORKSPACE_CLAIMOPS_ALLOWED_TENANTS_CLAIM