@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface FileOAuthStorageOptions

    interface FileOAuthStorageOptions {
        configPath: string;
        agentKey?: string;
        autoCreateDir?: boolean;
        fileMode?: number;
    }
    Index

    Properties

    configPath: string

    Absolute path to the config JSON file. Must be a file, not a directory.

    agentKey?: string

    Key persistence under a stable alias regardless of agent.id. Use this when the in-memory AgentConfig carries an ephemeral identifier (e.g. a per-request tenant id, or a synthetic cli-agent) but on-disk storage should be organized by a long-lived alias chosen by the operator.

    autoCreateDir?: boolean

    Create the parent directory (with mode 0o700) if it doesn't exist. Default true — CLI users expect first-run to create ~/.adcp/.

    fileMode?: number

    File mode for the config file when we create it. Default 0o600.