intellibrix v1.0.0
    Preparing search index...

    Type Alias ContainerProviderOptions

    type ContainerProviderOptions = {
        cpus?: string;
        defaultLanguage?: string;
        env?: Record<string, string>;
        exec?: ContainerExec;
        image?: string;
        languages?: Record<string, string[]>;
        memory?: string;
        mounts?: ContainerMount[];
        network?: "none" | "bridge";
        pidsLimit?: number;
        readOnlyRoot?: boolean;
        runtime?: "docker" | "podman" | "auto";
        runTimeoutMs?: number;
        user?: string;
        workdir?: string;
    }
    Index
    cpus?: string

    CPU limit, e.g. '1'.

    '1'
    
    defaultLanguage?: string

    Language used when the model does not name one.

    'python'
    
    env?: Record<string, string>

    Environment variables for the code. Do not put secrets here: the model can print them.

    Replaces the process spawner.

    image?: string

    Image to run. Must contain the interpreters for the languages you allow. Also overridable per tool with template.

    'python:3.13-slim'
    
    languages?: Record<string, string[]>

    Extra or replacement languages, each as the argv that runs code read from stdin.

    memory?: string

    Memory limit, e.g. '512m'.

    '512m'
    
    mounts?: ContainerMount[]

    Directories to share with the container. Read-only unless you say otherwise.

    network?: "none" | "bridge"

    'none' gives the code no network.

    'none'
    
    pidsLimit?: number

    Maximum number of processes.

    256
    
    readOnlyRoot?: boolean

    Mount the root filesystem read-only (/tmp and the workdir stay writable).

    false
    
    runtime?: "docker" | "podman" | "auto"

    Container CLI to use. 'auto' picks Podman, then Docker.

    'auto'
    
    runTimeoutMs?: number

    Kill a single runCode after this long.

    60000
    
    user?: string

    User to run as, e.g. '1000:1000'. Defaults to the image's user.

    workdir?: string

    Working directory inside the container.

    '/workspace'