# Writ > Writ is a self-hosted governance runtime for agents that spend money. An operator grants an agent a > credential with a capability scope, a sats budget, a per-call cap, and an expiry. Writ checks each call > routed through it against that grant, pays approved L402 invoices over Lightning from the operator's own > wallet, and keeps a signed, hash-chained work record that can be verified offline. Private preview. ## Status - Private preview from Lightning Enable. To request access, write to support@lightningenable.com. - Once you have the `writ` tool, `writ --version` confirms it. - Writ has not had an external security review. ## Machine-readable resources - [Full documentation corpus](https://writ.lightningenable.com/llms-full.txt): every docs page in one plain-text file - [Agent manifest](https://writ.lightningenable.com/.well-known/writ-agent.json): JSON listing every command, its options and exit codes, setup checks, and the Claude Skills - [Mission manifest schema](https://writ.lightningenable.com/schema/mission.schema.json): JSON Schema (draft 2020-12) for a mission.yaml file - [Claude Skills](https://writ.lightningenable.com/skills/README.md): what the three skills do and how to install them - [writ-setup skill](https://writ.lightningenable.com/skills/writ-setup/SKILL.md): confirm the CLI is installed, create an operator signing identity, and confirm with a simulated smoke run - [writ-run skill](https://writ.lightningenable.com/skills/writ-run/SKILL.md): author, validate, plan, and run a mission in simulated settlement - [writ-verify skill](https://writ.lightningenable.com/skills/writ-verify/SKILL.md): verify a work record offline against a pinned public key ## Getting started - [Introduction](https://writ.lightningenable.com/docs/intro): what Writ is, who it's for, and the shape of a mission manifest - [Get access](https://writ.lightningenable.com/docs/getting-started/installation): request access to the private preview, then confirm the CLI with a simulated smoke run - [First mission](https://writ.lightningenable.com/docs/getting-started/first-mission): a complete simulated run, end to end, with real command output ## Reference - [Mission manifest](https://writ.lightningenable.com/docs/reference/manifest): every field in a mission manifest - [Commands](https://writ.lightningenable.com/docs/reference/commands): every `writ` command, its options, exit codes, and sample output - [Agent API](https://writ.lightningenable.com/docs/reference/agent-api): the engine as a library, an MCP server, and an HTTP API; the remaining-budget query, refusal reason codes, and safe retries ## Guides - [Keys and verification](https://writ.lightningenable.com/docs/guides/keys-and-verification): persistent signer identity, key rotation, revocation, head attestations, and what `writ verify` checks - [Approvals and budgets](https://writ.lightningenable.com/docs/guides/approvals-and-budgets): the human approval gate, approving and resuming a run end to end, what a grant is bound to, expiry, and reconciling a stuck wallet payment - [Settlement](https://writ.lightningenable.com/docs/guides/settlement): simulated and real Lightning settlement, supported wallets, and the model-CLI pre-flight probe - [Run artifacts and export](https://writ.lightningenable.com/docs/guides/run-artifacts-and-export): what a run writes to disk, why it's private by default, and how to share a verifiable bundle ## Security and troubleshooting - [Security and limitations](https://writ.lightningenable.com/docs/security-and-limitations): the guardrails and what's still open in the preview - [Troubleshooting](https://writ.lightningenable.com/docs/troubleshooting): every exit code and the error strings behind it ## For agents - [For agents](https://writ.lightningenable.com/docs/for-agents): how an agent sets up and drives Writ with little human intervention: the skills, this file, and the agent manifest ## What it does - Scoped authority: a credential limited to specific capabilities, a total budget, a per-call cap, and an expiry. Delegation to a worker can only narrow those limits. - Budget checks: before a call reserves funds, the sats cap is checked across every credential up the delegation chain. An invoice above the authorized ceiling is refused. - Payments: L402 over Lightning, paid by the operator's wallet (LND, NWC, or Strike) on Writ's instruction. Writ never holds funds and charges no transaction fee. Simulated mode is the default and moves no money. - Interfaces: a mission manifest run from a CLI, a library, an MCP server, and an HTTP API. - Evidence: one BIP-340-signed, hash-chained receipt per completed capability call, and for each recorded refusal. Receipts hold hashes and identifiers, never prompts, keys, or preimages. ## Limits to know - The budget covers capability calls routed through Writ. It does not cover Lightning routing fees, the agent's own model usage, or anything done outside Writ or with another wallet. - Receipts are the operator's signed attestations of what was authorized and paid. They do not show that an output was correct. - Operator identity is self-asserted. There is no hosted identity registry. - A call at or above the optional approval threshold is held until a person approves it. - Writ is not a hosted service, and it does not discover, contract, or hire external agents. ## Links - [Writ](https://writ.lightningenable.com/): product page - [Writ docs](https://writ.lightningenable.com/docs/intro): documentation - [Lightning Enable](https://www.lightningenable.com/): parent product - [Lightning Enable docs](https://docs.lightningenable.com/): payment tooling; Writ has its own docs, linked above