Skip to main content

Get access

Writ is in private preview. To request access, write to support@lightningenable.com.

Once you have the writ tool, the steps on this page confirm that it works. About five minutes.

1. Requirements​

That is everything you need to run missions with simulated money. You do not need a Lightning wallet, a model API key, or a model CLI for the first mission on the next page. See What you don't need yet.

Confirm your SDK:

dotnet --version

Expected: a version starting with 10..

2. Check the tool​

writ --version
writ --help

Expected: writ --version prints a version starting with 0.1.0, and writ --help prints a usage summary that starts with Description: and lists the commands init, validate, run, resume, verify, approvals, revoke, issue, record, reconcile, keys, coding, and db.

3. Confirm it with the smoke mission​

This mission needs no wallet, no API key, no model, and no network. Make an empty directory, and save the following as smoke.yaml in it:

smoke.yaml
mission:
name: smoke
goal: "One paid capability call under a bounded budget, settled in simulated mode."

budget:
total_sats: 100
per_call_max_sats: 25

settlement:
mode: simulated

capabilities:
- id: data.lookup
kind: l402-http
base_url: https://api.example.test/data
path: /lookup
method: GET
max_sats_per_call: 5

workers:
- name: probe
scope: [data.lookup]
budget_sats: 40
steps:
- type: call
capability: data.lookup
input: { q: smoke }
output: lookup.json

work_record:
signing: dev-ephemeral
output_dir: runs/

From that directory, run it:

writ run smoke.yaml

Expected (your run id, times, and hashes differ):

Running mission 'smoke' (run smoke-20261116-213137-...)...
16:31:37 warn: Writ.Engine.Runner.MissionRunner[0] No WRIT_ROOT_KEY is set — using an EPHEMERAL per-run authority root key. ...
16:31:42 warn: Writ.Engine.Runner.MissionRunner[0] Signing work records with a DEV-EPHEMERAL receipt key (...). ...
· probe/mission.data.lookup 5 sats Executed (simulated)

Run smoke-20261116-213137-...: Completed
Spent 5 / 100 sats · settlement simulated · 1 receipt(s)
Outputs:
- <your directory>/runs/smoke-20261116-213137-.../lookup.json
- <your directory>/runs/smoke-20261116-213137-.../work-record.jsonl
- <your directory>/runs/smoke-20261116-213137-.../usage.json
- <your directory>/runs/smoke-20261116-213137-.../run.json
- <your directory>/runs/smoke-20261116-213137-.../report.html
Verify: writ verify <your directory>/runs/smoke-20261116-213137-... --pubkey <64 hex characters> --signer-mode dev-ephemeral

The CLI prints absolute paths; the output above shortens them.

The two warn: lines say that this run used throwaway keys, which is the zero-configuration default. Keys and verification covers persistent keys. When you see Completed and a spend summary, the writ tool is working.

Paste the Verify: line your run printed (without the Verify: prefix) to check the signed work record offline. Your chain head differs:

WARNING: this work record is signed with a dev-ephemeral (throwaway) key — it is NOT production evidence.
OK — verified 1 receipt(s).
Chain head: 0:b47e91db392063f2cdd42bbbd7b4c333e7024829603b5b149f513ad990b29999
Terminal commitment verified — this export cannot be truncated undetected.
WARNING: no signer identity record — the chain is not bound to a named operator (pass --require-identity to fail instead).

Writ's programs​

The writ command covers every command in the command reference, simulated and wallet settlement, and every model provider. Writ also has these programs:

ProgramWhat it is
writThe CLI: missions, verification, keys, approvals, and the operator commands
writ-mcpThe MCP server for agent hosts
writ-apiThe HTTP API for agent hosts
writ-coding-mcpThe tool server for the governed coding agent
Writ.ServiceThe engine as a .NET class library

If you need one of the programs other than writ, say so when you request access. These docs show every manifest the examples use, ready to save. The Claude Skills are published on this site: see For agents.

What you don't need yet​

Running the writ tool in the default simulated settlement mode needs the .NET 10 SDK and nothing else. Specifically, you do not need:

  • A Lightning wallet or node. Only settlement.mode: wallet (real payments) needs one. See Settlement.
  • A model API key or model CLI. A mission whose steps are all call steps against l402-http capabilities or compose/compose.* internal capabilities never invokes a model, and Writ does not probe for one. Missions with agent steps, or with any other internal capability, call a model and need a model provider: the anthropic provider with ANTHROPIC_API_KEY, or your installed Claude Code or Codex CLI. See the manifest reference.
  • Persistent signing keys. The default work_record.signing: dev-ephemeral generates a throwaway key per run.

Next step​

Continue to Your first mission: validate, dry-run, run, and verify a complete simulated mission, with the real output at every step.