opencode/config

Types

GetConfigProvidersResponse = object
List of providers

Procs

proc getConfig(client: OpencodeClient; directory: string = default(string);
               workspace: string = default(string)): Future[Config] {.
    ...stackTrace: false, raises: [Exception, ValueError, KeyError,
                                HttpRequestError, LibraryError, SslError,
                                OSError, IOError, ProtocolError,
                                OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Retrieve the current OpenCode configuration settings and preferences.
proc getConfigProviders(client: OpencodeClient;
                        directory: string = default(string);
                        workspace: string = default(string)): Future[
    GetConfigProvidersResponse] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
                                  tags: [RootEffect, ReadIOEffect, TimeEffect],
                                  forbids: [].}
Get a list of all configured AI providers and their default models.
proc patchConfig(client: OpencodeClient; directory: string = default(string);
                 workspace: string = default(string); body: types.Config): Future[
    Config] {....stackTrace: false, raises: [Exception, ValueError,
    HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError,
    KeyError, OpenParserJsonError, OpencodeClientError],
              tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Update OpenCode configuration settings and preferences.