Storage, capture mode and the capture image.
| Variable | Default | Effect |
|---|---|---|
AIDC_PACK_STORAGE_PATH | ./packages | Directory packages and manifests are written to and read from. Use the same working directory for build, inspect, verify and publish, or set this explicitly |
AIDC_PACK_MODE | docker | docker spawns a capture container; direct captures in place with no container. An unrecognized value falls back to docker with a warning |
AIDC_PACK_BASE_IMAGE | (capture image supplied with your release) | Docker image for container-based capture. A cached image is reused; a moving tag does not refresh it automatically |
AIDC_DATA_DIR | ~/.aidc (/opt/aidc when the home directory cannot be determined) | Directory of aidc-managed tool installations |
Direct mode removes the Docker requirement but installs and captures in the current environment. Android distribution capture always uses the local SDK root, whatever the mode.
Platform, architecture and distribution.
| Setting | Default | Effect |
|---|---|---|
--platform or AIDC_PLATFORM | the current system | linux or darwin |
--architecture or AIDC_ARCHITECTURE | the current system | amd64 or arm64 |
<TOOL>:<distribution> | none | A distribution variant, such as java:temurin or android-sdk:tools |
A flag overrides its environment variable. Set platform and architecture through those flags or process environment variables; the optional YAML settings files do not supply target defaults. The target is part of the archive name and does not change the producing environment; build on a machine that matches it. publish validates the target before locating the package, so an invalid value fails at once. aidc-pack rejects the Android emulator and full bundles on arm64. An Android component such as 'android-sdk:component_ndk;27.1.12297006' must be quoted so the shell passes one argument.
Which file proves you may publish, and which hub receives it.
| Variable | Default | Effect |
|---|---|---|
AIDC_CREDENTIALS_PATH | searched automatically | Credentials file for publish and the optional baseline check |
CREDENTIALS_PATH | searched automatically | Generic fallback, used after AIDC_CREDENTIALS_PATH |
MAIT_CHANNEL | the channel recorded at installation, else stable | stable, edge or beta: selects the Hub that publish and the baseline check use |
Without an explicit path, discovery checks ~/.mait/credentials before /etc/mait/credentials. On a channel other than stable, the channel-suffixed file, such as credentials.edge, is checked first in each directory. The destination follows the channel and cannot be set separately.
| Channel | Hub address |
|---|---|
stable | https://aidc.mait.sh |
edge | https://aidc.edge.mait.sh |
beta | https://aidc.beta.mait.sh |
Confirm the channel before you publish, especially when one account works with several. The publish feature aidc:hub:admin:publish (or aidc:hub:admin:*) is granted to your account by The MAIT Team.
Chunk size, retries and timeouts.
| Variable | Default | Effect |
|---|---|---|
AIDC_CHUNK_SIZE | 52428800 (50 MiB) | Upload chunk size in bytes |
AIDC_MAX_RETRIES | 3 | Maximum total attempts per chunk upload |
AIDC_CHUNK_TIMEOUT | 600 | Timeout in seconds for one chunk request |
AIDC_UPLOAD_TIMEOUT | 600 | Default timeout per upload-client request in seconds; not a whole-command deadline |
AIDC_API_TIMEOUT | 30 | Timeout in seconds for post-publish signature metadata |
AIDC_VENDOR_ENABLED | true | Read into the configuration; the source-verification install in build always runs with vendor sources enabled |
Environment values override the optional settings files ~/.mait/aidc.yaml and then /etc/mait/aidc.yaml, followed by the defaults. In a settings file write the name in lowercase without the AIDC_ prefix, at the top level or under an aidc: block.
aidc: pack_storage_path: /srv/packages