# Your first record

Create a local ledger, write a record and retrieve it. No Cloud account required.

Canonical page: /docs/quickstart

## 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 instructions](/docs/installation)

## Prepare 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.

```shell
op-sys --connection local
op-sys where
op-sys --connection local ledgers inspect
```


## Write, 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.

```shell
op-sys --connection local records append --operation-id first-record --payload '{"message":"Hello"}'
op-sys --connection local records outcome --operation-id first-record
op-sys --connection local records list
```

Note: Shell examples use POSIX quoting. In PowerShell, use quoting appropriate to your version or follow the Python SDK example.

- [Python SDK write and read](/docs/sdk#write-and-read)

## Make 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.


## Related guides

- [Ledgers & records](/docs/raw/ledgers.md)
- [Use your existing agent](/docs/raw/agents.md)
- [Connections & sharing](/docs/raw/sharing.md)
