The scaffold from vault plugin new already includes an example "kv" engine that stores simple strings.

if err := req.Storage.Put(ctx, entry); err != nil return nil, err

func (b *MyBackend) paths() []*framework.Path return []*framework.Path

Install Vault on macOS, Linux, or WSL2. Windows is not officially supported for plugin development.