Skip to main content
T1 starter · local-first: the whole loop on your machine — a real HTTP fetch, a local model, a verifiable trace. No API key exists in this tutorial, so there is nothing to leak and nothing to meter.

The job

A morning brief from a live source, every day, the same way. One file captures it; your laptop runs it; the trace proves what happened.

Prerequisites

  • nika installed: brew install nika-open/tap/nika (other paths)
  • Ollama running with a small model: ollama pull qwen3.5:4b (any local model works — swap the model: line)

The file

Save as daily-brief.nika:
Swap the URL for any JSON source — an RSS-to-JSON bridge, your issue tracker’s API, a status page.

Check, then run

The static audit passes before a single token is spent — plan, types, tools, args, secret flows. One honest wrinkle to read, not fear:
A local model has no list rate, so the engine says unbounded instead of pretending $0.00 is a promise. Local work is never blocked and never metered — the flag exists so a paid uncataloged model can’t hide behind a fake zero (cost honesty). Then:
Rehearse the shape first with --model mock/echo: a rehearsal replaces the model, not the tools, so the fetch still reaches the network. On v0.123.0 the card reads:
Then run it without --model: the brief line names ollama/qwen3.5:4b, the note is the model’s five bullets, and the total still reads unpriced. A local model is never metered as $0.00.

The receipt

The trace is a hash chain: edit any event after the fact and verify exits non-zero. Your brief comes with proof of what ran, in what order, against which inputs, even offline. UNSEALED means no run-signing key signed this record: mint one once per machine with NIKA_KEYCHAIN=off nika key init, and later runs verify as SEALED (Seal your runs).

Make it daily

Cron it, or wire the GitHub Action if the file lives in a repo — every edit to the workflow gets a static check before it lands. When you want the run itself in CI, that stays a deliberate step in your own job, with your own budget flags.

Where to go next

  • Read the permits: block as the contract: absent is zero authority, present is default-deny. nika check --infer-permits writes the tightest one for the next file you author (security).
  • Persist the brief: a third task with nika:write and a content: binding (starters show the shape).
  • Mix providers: keep fetch local, point brief at a cloud model with --max-cost-usd — the budget gate prices the file’s own model before anything starts (cost honesty).
  • From an app: npm install @nika-open/nika@0.124.5, then run() / run.result() on this file — SDK quickstart.