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
nikainstalled:brew install nika-open/tap/nika(other paths)- Ollama running with a small model:
ollama pull qwen3.5:4b(any local model works — swap themodel:line)
The file
Save asdaily-brief.nika:
Check, then run
$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:
--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:
--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
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-permitswrites the tightest one for the next file you author (security). - Persist the brief: a third task with
nika:writeand acontent:binding (starters show the shape). - Mix providers: keep
fetchlocal, pointbriefat 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, thenrun()/run.result()on this file — SDK quickstart.