kosh init
Generate your user key and write the default Kosh configuration. Run once per machine.
Overview
kosh init is the first command you run on a new machine. It generates a user keypair and writes the default configuration to ~/.kosh/config.toml.
Usage
kosh init
What it does
- Generates an X25519 user keypair
- Derives an encryption key via Argon2id
- Writes
~/.kosh/config.tomlwith default workspace and environment settings - Stores the encrypted private key in the local keystore
Example
$ kosh init
✓ Generated user key
✓ Wrote ~/.kosh/config.toml
Notes
- Running
kosh initon a machine where Kosh is already initialized will prompt you before overwriting. - Your private key never leaves your machine in plaintext.
- To use team sync, you will need a server token, see kosh login.