hosts.json

Reference for user-level remote host metadata.

hosts.json stores named remote host entries used by remote fields in distribution config.

Default location:

~/.divekit/hosts.json

Recommended management command:

divekit auth

Format

{
  "version": "1.0",
  "hosts": {
    "gitnrw": {
      "host": "https://gitlab.git.nrw/",
      "tokenAt": "DIVEKIT_API_TOKEN",
      "maxWorkers": 8,
      "rateLimitDelayMs": 250,
      "enableConcurrency": true
    }
  }
}

Keys

KeyTypeNotes
versionstringCurrent format version. Use "1.0".
hostsobjectMap of host alias to host definition.
hosts.<alias>.hoststringBase URL of the GitLab or Git provider instance.
hosts.<alias>.tokenAtstringKey name used to resolve the stored token.
hosts.<alias>.maxWorkersintegerOptional per-host concurrency limit.
hosts.<alias>.rateLimitDelayMsintegerOptional delay between requests in milliseconds.
hosts.<alias>.enableConcurrencybooleanOptional concurrency toggle for that host.

Security Notes

  • hosts.json stores metadata and token references, not raw token values.
  • Divekit prefers the OS credential manager for actual token storage and falls back only when no keychain/keyring integration is available.
  • divekit auth unset <host> removes the configured host and deletes the stored token entry.

Related pages: