midnight-saci

Run your first plan with a real model

The quickstart uses a scripted model. This page tells you how to write a plan for your own system and run it with a real, tool-capable model.

Prerequisites

Write a plan

saci new test-plan plans/service-health.md

Edit the plan for your system. To validate it offline, without a backend, run saci check plans/service-health.md. See write a test plan.

Configure and start the backend

examples/config/local.yaml is a starting configuration. Set llm.model, and the environment’s parameters and secrets for the system that you test:

cp examples/config/local.yaml saci.yaml   # then edit it for your system
export SACI_LLM_API_KEY=...                # your model provider's key
saci backend start --config saci.yaml &

The llm section has one of these forms:

# OpenRouter (export SACI_LLM_API_KEY=... before starting the backend)
llm:
  base_url: https://openrouter.ai/api/v1
  model: your-tool-capable-model
  api_key: env:SACI_LLM_API_KEY
# Ollama on the host (workers share the host network)
llm:
  base_url: http://127.0.0.1:11434/v1
  model: qwen3:8b

Run the plan

saci run plans/service-health.md --environment local --follow

A real model decides its own requests and explanations, so the wording and the evidence numbering differ from the quickstart output. If you point the quickstart plans at a real model, the verdicts must still be the same: the health check and the order lookup pass, the order creation fails, and the export is cancelled. These provider smoke tests are optional and are not part of CI. Model calls are billed by the provider.

Next steps