1. 1 Configuration

    The script creates the .env file, offers a passphrase for the signing key, detects Docker or Podman and prepares the build files. It can be re-run without changing existing values.

    chmod +x install.sh reprobox
    ./install.sh
  2. 2 Image build

    The reference model is downloaded during the build, at a specific revision.

    make build
  3. 3 First generation

    The first run creates the signing key in keys/ (file backend, ECDSA P-256) and the first manifest in out/manifests/.

    ./reprobox generate "Explain Docker in two sentences."
  4. 4 Verification

    Verification of the chain and of the instance's public key.

    ./reprobox verify chain out/manifests/ --expect-pubkey $(make show-pubkey)

Requirements

  • Docker Compose, or Podman with podman compose
  • Network access during the first build (dependencies and model)
  • 8 GB of memory recommended
  • Python 3.11+ on the host for the CLI and audit tools
  • Optional: AMD (ROCm) GPU for local generation
Key backup
With the file backend, the keys/ directory must be backed up. Unlike out/, it cannot be regenerated: losing the key prevents signing under the same identity. With the vault and pkcs11 backends, the key stays in Vault or on the HSM.

Interfaces

Three interfaces are available: command line, Makefile and HTTP API.

Unified CLI
./reprobox generate "Explain Docker in two sentences."
./reprobox generate --format json --stdin < prompt.txt
./reprobox test --safe --runs 20 "Explain Docker in two sentences."
./reprobox test --baseline --runs 20 "Explain Docker in two sentences."
./reprobox verify chain out/manifests/ --expect-pubkey "$EXPECT_PUBKEY"
./reprobox verify chain out/manifests/ --trusted-keys trusted_keys.json
./reprobox keys show
./reprobox keys rotate
./reprobox verify code out/manifests/<manifest>.json --sandbox --check "assert add(2,3)==5"
./reprobox inspect out/manifests/<manifest>.json
./reprobox doctor
./reprobox serve --port 8000
CommandPurpose
make test-concurrentConcurrent load against a remote endpoint
make verify-chain-strict TRUSTED_KEYS=trusted_keys.jsonChain verified, signer check required (refuses to run without an expected key)
make diff A=<file> B=<file>Compare two manifests by category
make verify-policyIntegrity, then compliance with policy.yaml
make dashboardLocal dashboard (port 8088)
make release MODEL_ID=... MODEL_REVISION=<sha>Fully pinned build
POST /generate
curl -s http://localhost:8000/generate \
  -H "Authorization: Bearer <api-key>" \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"Explain Docker in two sentences."}'

Bearer authentication, limited prompt size (MAX_PROMPT_LENGTH), per-IP rate limiting. Rate limiting is local to the process: a reverse proxy is recommended in production.

Configuration

Configuration is read from the .env file, which is not versioned.

Signing key
SIGNER_BACKEND=file
SIGNING_ALGORITHM=ECDSA-P256-SHA256
SIGNING_KEY_PASSPHRASE=...

# SIGNER_BACKEND=vault
# VAULT_ADDR=https://vault.example:8200
# VAULT_TOKEN_FILE=/run/secrets/vault_token
# VAULT_TRANSIT_KEY=reprobox
Identity and security
API_KEY=
MANIFEST_ENCRYPTION_KEY=
ENVIRONMENT_CONTROL=operator-owned
Local generation and GPU
DEVICE=cpu
TORCH_DTYPE=float32
DO_SAMPLE=0
GPU_REPRODUCIBILITY_VALIDATED=false
Remote generation
REMOTE_INFERENCE_URL=http://server:8000/v1
REMOTE_MODEL_NAME=model-name
REMOTE_TIMEOUT=120
MODEL_PROVENANCE_LOOKUP=true

Deployment assistance

We can assist you with installing ReproBox on your infrastructure.

Contact us