Skip to content

Configuration

Create baseline.config.ts in your project root:

import type { BaselineConfig } from 'baselineos';
export default {
projectRoot: '.',
name: 'my-project',
knowledge: ['./docs', './src'],
llm: {
provider: 'anthropic',
model: 'claude-sonnet-4-6',
},
orchestrator: {
defaultTrustScore: 70,
selfVerificationRequired: true,
qualityReviewSampleRate: 0.1,
},
governance: {
auditLevel: 'full',
requireApproval: ['critical'],
restricted: [],
},
} satisfies Partial<BaselineConfig>;

An array of filesystem paths to index. Baseline scans these directories for docs, code, configs, and specs to build its knowledge graph.

Configure the AI provider and model. Baseline supports multiple providers — see the multi-LLM neutrality design. The ANTHROPIC_API_KEY environment variable is required when using Anthropic models.

  • defaultTrustScore — Initial trust score for new agents (0-100)
  • selfVerificationRequired — Whether agents must self-verify before review
  • qualityReviewSampleRate — Fraction of tasks sent to quality review (0.0-1.0)
  • auditLevelfull records every decision; summary records outcomes only
  • requireApproval — Priority levels that require human approval before execution
  • restricted — Operations that are never allowed autonomously
VariablePurpose
ANTHROPIC_API_KEYRequired for LLM-powered execution
BASELINE_OTEL_DISABLED=1Suppress OpenTelemetry noise in local dev
BASELINE_APPROVAL_SECRETOptional cryptographic approval token for task approval

For non-TypeScript implementations, JSON Schemas are available:

  • specs/schemas/protocol-core.schema.json — Protocol types
  • specs/schemas/govern.schema.json — Governance types
  • specs/schemas/evidence-bundle.schema.json — Evidence bundle format
  • specs/schemas/orchestrator.schema.json — Task and agent types