Tokens

sh
lighthouse token create --name dock --scope 'read:*' --scope 'write:dock_*'lighthouse token listlighthouse token rotate <id>lighthouse token revoke <id>

Tokens look like lh_<id>_<secret> and are stored hashed. Scopes are read:<kind-glob> and write:<kind-glob>. Running the code API (/code) and registering kinds need full write.

Endpoints

The API is served by the dashboard listener under /api/v1/ on 127.0.0.1. Every request checks Host, Origin and the bearer token.

  • health, capabilities
  • query, records, search, links
  • batch, batches/{id}/undo
  • changes and stream (server-sent events)
  • kinds, code The running server writes its address to api.json in the Lighthouse config directory so clients can find it.

Revisions and the change feed

Every record has a revision, a global seq, updated_at and an actor. Pass expected_revision on updates to avoid overwriting a newer edit. Deletes are soft through the API and can be restored. lighthouse changes --follow tails the feed.

Kinds

lighthouse kind install dock registers the Dock record types in your database and turns on the dock module. It creates no records and changes no existing data. lighthouse kind show dock previews the definitions and lighthouse kind export dumps them. The 16 Dock kinds have JSON-schema validation. Other kinds can be registered with register_kind in the code API. Dock kinds are hidden from agent search and context unless you call load_memory(include=["dock"]).

The dock module

Agents get a dock module in the code API. It is proposal-only: agents can propose plans and tasks, ask the user questions and read the outcome. Only the user activates, completes or deletes anything.

Upgrading

The first run of v0.9.0 migrates the database to schema version 2 after writing a <db>.bak-v1-<timestamp> copy. Older binaries refuse to open a migrated database. lighthouse doctor checks integrity and lighthouse backup copies the database.