OpenProgram Docs

Credential files

ContractStatus
Cross-process write lock, private temporary file, flush and fsync, atomic replace, .bak of the last good fileIn place
Secret inventory, backup redactionIn place
Folders made 0700 when created, and auth/ with each provider's folder tightened on every write; a read of a provider with no list creates no folder or lockIn place
ACL, owner, symlink or inode checksExcluded
Permission audit and repair, revision conflicts, restore journalExcluded
OS keychain, encrypted database, new env, file or exec secret backendsExcluded

Excluded items are built only on an explicit user request. audit_credentials and repair_credentials remain as interfaces that return nothing; expected_revision is accepted and ignored. Existing credential_process is unchanged.

Code

FileHolds
models/auth/credentials/io.pyLocked atomic write and update, shared by AuthStore and state/config.py
models/auth/credentials/inventory.pySECRET_INVENTORY
models/auth/credentials/redaction.pyField redaction

Secret inventory

Path under the state rootSecretBackupDelete
config.jsonapi_keysredactedclear field
auth/*/*.jsonwhole filewith --include-credentialsunlink
channels/*/accounts/*/credentials.jsonwhole filewith --include-credentialsunlink
channels/*/accounts/*/access.jsonpending, short-livedneverclear field
mcp_servers.jsonservers.*.env, .headers, .auth.token, .auth.client_secretredactedclear field
mcp_tokens/*.jsonwhole filewith --include-credentialsunlink
web/tokenwhole file, short-livedneverunlink

Not secret: channels/…/account.json, owner.json, WeChat cursor.json, web/access.json. Deletion is logical; old backups keep old values until pruned.

How peers store credentials
ProjectDesign
Claude CodeSecure credential storage; apiKeyHelper with TTL and explicit precedence
CodexOptional keyring, by version and configuration
OpenClawSecretRef over env, file and exec, with preflight and audit; plaintext still allowed
OpenCodeLocal file ~/.local/share/opencode/auth.json
HermesAdvisory locks, version fields, lock timeouts on its auth path; backup and import
CodeBuddyOS credential storage, several entries

From official documentation and pinned source snapshots: see the feature matrix method. OS-keychain storage is evaluated and not planned.

Auth storage

Last updated · 2026-11-25