Skip to content
ochat
Search documentation

Use quotes for an exact phrase.

Search by topic, command, or code identifier.

    GitHub ↗

    Environment settings

    Configure provider, terminal, and shell settings in the process that owns them.

    View Markdown source ↗

    Set runtime variables in the host process environment before launch. A remote client’s environment does not configure the daemon or change its paths. Do not print credentials during troubleshooting. Shell command environments are separately compiled from declarations and filtered by shell policy; inheriting a variable in the daemon is not permission to disclose it to a tool.

    VariableConsumer and behavior
    OPENAI_API_KEYOpenAI provider credential; opt-in typeahead in every TUI mode requires a nonblank key in the client process. Suggestions default off and never borrow daemon credentials. No server authentication authority. Loaded by the provider module at process initialization; restart after changes.
    API_URLResponses endpoint host, default api.openai.com; the transport appends /v1/responses. For direct OpenAI use set API_URL=api.openai.com explicitly if your shell normally uses a proxy. Explicit origins are also accepted by the underlying transport. See its TLS limitation in security.
    OCHAT_OPENAI_IDLE_TIMEOUT_SECONDSStream idle timeout, not total turn deadline: default 600 seconds, positive finite values capped at 3600; invalid values fall back to 600.
    OCHAT_STREAM_TIMEOUT_SECONDSCompatibility fallback only when the more specific idle-timeout variable is absent.
    HOMEHome expansion, cache/config defaults and ${home}. An explicit embedding path can override the relevant context.
    PWDLaunch-directory capture in executable adapters; no remote workspace override. Use a consistent physical cwd and environment.
    TMPDIREmbedded transient data-root base, default /tmp; it is not the configured daemon temporary-workspace catalog.
    OCHAT_SHELL_RESOURCE_RUNNEROptional explicit resource-limit helper path used while building shell runtimes. See helper reference.

    Sources: response provider, foreground timeout, stream timeout, embedded host, and runtime builder.

    OCHAT_CHAT_TUI_CONFIG selects a TUI config file; XDG_CONFIG_HOME/HOME supply default search locations. Explicit flags/config/no-config precedence and every host-specific flag are in the TUI executable reference.

    VariableMeaning
    OCHAT_TUI_FPSRedraw rate, default 30; parsed rates are at least 1. This is not an agent throughput control.
    OCHAT_TUI_ASCII1, true, or yes selects ASCII shell borders.
    OCHAT_WRAP_SLOP_CELLSLow-level layout adjustment; see wrapping utility, not a server setting.
    OCHAT_STREAM_BATCH_MSLegacy streaming presentation batching, default 12ms, parsed values clamped to 1–50ms.
    OCHAT_GRAMMAR_DIRAdditional syntax grammar discovery location; see discovery.
    OCHAT_TUI_STARTUP_TIMING, OCHAT_TUI_RENDER_METRICSOpt-in diagnostic instrumentation; see app for accepted values/output.
    OCHAT_TUI_SCROLL_TRACEOpt-in scroll trace destination/control; see trace implementation. Treat trace artifacts as potentially sensitive.

    These are consumed by hosts that invoke the existing shell policy/security loaders. They do not replace daemon permission profiles/operator grants or add unimplemented stock-daemon reviewer hooks. Follow the host matrix.

    VariableMeaning
    OCHAT_SHELL_ADMIN_POLICYJSON administrative policy path; absent means the loader’s permissive policy, not automatic manifest authorization.
    OCHAT_SHELL_TRUSTED_SOURCESTrusted-source policy file; required when that policy requires source verification.
    OCHAT_SHELL_REPOSITORY_IDENTITYOptional identity bound into source verification/legacy host context.
    OCHAT_SHELL_MANIFEST_SIGNATURE, OCHAT_SHELL_MANIFEST_PUBLIC_KEYSSignature and public-key file pair. Supplying only one is an error.
    OCHAT_SHELL_SIGNATURE_AUDIENCEExpected signature audience, default ochat.
    USERLegacy host user identity metadata, not authenticated daemon principal identity.
    PATHHost executable resolution input where applicable; shell declarations may narrow/replace search paths. Prefer explicit trusted executable paths.

    Sources: administrative loader, manifest verification, and shell security guide.

    EMBEDDINGS_HOST and EMBEDDINGS_MODEL configure the embedding/search feature; OPENAI_EMBEDDINGS_STUB selects its stub behavior, not the agent Responses provider. Missing embedding credentials also select test vectors; see embedding configuration. CI and OAUTH_NO_BROWSER suppress automatic browser launch in the interactive OAuth PKCE helper by presence, not by truthy value; they do not bypass its callback wait. See PKCE limitations. Test-runner opt-ins, cost guards, artifacts and soak controls belong to testing, not production daemon configuration. Do not export test controls indiscriminately into an operational service.