Your first record
Create a local ledger, write a record and retrieve it. No Cloud account required.
Read as Markdown ↗On this page
Before you start
Install the runtime, then open a terminal in your own project. The command is op-sys; Python applications use the op_sys package.
Installation instructionsPrepare and inspect the local ledger
Bare launch prepares the default local ledger without prompts or a network request. Check the resolved state location and contract before writing: an existing project may already have rules.
op-sys --connection localop-sys whereop-sys --connection local ledgers inspectWrite, then retrieve
For a new default ledger, the permissive contract accepts this bounded JSON payload. If the ledger already has a stricter contract, adapt the payload to its requirements.
Append returns the outcome and acceptance facts. Listing should include your record. This is local acceptance; nothing has been sent to a shared service.
op-sys --connection local records append --operation-id first-record --payload '{"message":"Hello"}'op-sys --connection local records outcome --operation-id first-recordop-sys --connection local records listMake the next step yours
Keep working locally, create a named ledger, or let your existing agent use the same CLI. Inside a Git repository, local state defaults to .op-sys in that repository. Outside a repository, it uses user-scoped state; op-sys where reports the resolved location.
Nothing in this quickstart uploads records. You can use a hosted ledger directly through a named connection, or follow Local to shared to move this ledger’s authority while retaining a local replica.