KonfAI Apps
konfai-apps is the standalone package for packaged KonfAI workflows.
It is the layer you use when a low-level KonfAI workflow is already stable and you want a cleaner interface for:
- local inference and evaluation
- reusable app packaging
- remote execution through a FastAPI server
- integration in external tools such as 3D Slicer or lightweight clients
In the KonfAI repository, the split is intentional:
konfai= the low-level workflow enginekonfai-apps= the packaged app runtimeapps/= a collection of concrete published apps
What This Package Provides
konfai-apps ships three interfaces:
konfai-appsfor local or remote app executionkonfai-apps-serverfor hosting apps behind an HTTP API- the Python API under
konfai_apps
This package depends on the core konfai framework, but it is versioned and
tested as a separate runtime surface.
Installation
From PyPI:
python -m pip install konfai-apps
From a local checkout of this monorepo:
git clone https://github.com/fideus-labs/KonfAI.git
cd KonfAI
python -m pip install -e .
python -m pip install -e ./konfai-apps
Check the entrypoints:
konfai-apps --help
konfai-apps-server --help
App Identifiers
The app argument accepted by konfai-apps supports three main forms:
- Hugging Face app:
repo_id:app_name - local app directory:
/path/to/my_app - remote app execution: same app identifier, plus
--host ...
Examples:
konfai-apps infer VBoussot/ImpactSynth:CBCT ...
konfai-apps infer /data/apps/MyApp ...
konfai-apps infer VBoussot/ImpactSynth:CBCT --host 127.0.0.1 --port 8000 ...
Quick Start
⚠️ Trust model. Resolving an app copies and imports its
.pyfiles, so it runs arbitrary code, and it pip-installs itsrequirements.txtby default (only missing or mismatched packages; core packages liketorch/konfaiare never touched; opt out withKONFAI_APPS_INSTALL_REQUIREMENTS=0). Only resolve apps from sources you trust.
Local inference
konfai-apps infer VBoussot/ImpactSynth:CBCT \
-i input.mha \
-o ./Output \
--gpu 0
Evaluation
konfai-apps eval VBoussot/ImpactSynth:CBCT \
-i input.mha \
--gt gt.mha \
--mask mask.mha \
-o ./Evaluation \
--gpu 0
Full pipeline
konfai-apps pipeline VBoussot/ImpactSynth:CBCT \
-i input.mha \
--gt gt.mha \
--mask mask.mha \
-o ./Output \
-uncertainty \
--gpu 0
Fine-tuning
konfai-apps fine-tune my_app MyCustomApp \
-d ./Dataset \
-o ./FineTune \
--epochs 10 \
--gpu 0
Main Commands
The CLI is organized around the packaged workflows available inside an app:
inferevaluncertaintypipelinefine-tune
Common execution options:
--gpu 0or--gpu 0 1--cpu N--download--force_update--quiet
Workflow-specific config overrides:
--prediction-file--evaluation-file--uncertainty-file
Python API
The same runtime is available from Python:
from pathlib import Path
from konfai_apps import KonfAIApp
app = KonfAIApp("VBoussot/ImpactSynth:CBCT", download=False, force_update=False)
app.infer(
inputs=[[Path("input.mha")]],
output=Path("./Output"),
gpu=[0],
cpu=None,
quiet=False,
tmp_dir=None,
ensemble=0,
ensemble_models=[],
tta=0,
mc=0,
uncertainty=False,
prediction_file="Prediction.yml",
)
For remote execution:
from konfai import RemoteServer
from konfai_apps import KonfAIAppClient
client = KonfAIAppClient(
"VBoussot/ImpactSynth:CBCT",
RemoteServer("127.0.0.1", 8000, "secret"),
)
Remote Server
konfai-apps-server exposes packaged apps through a FastAPI service.
Minimal example:
export KONFAI_API_TOKEN="secret"
konfai-apps-server \
--host 0.0.0.0 \
--port 8000 \
--apps ./konfai-apps/tests/assets/apps.json
Once the server is running, the client switches to remote mode as soon as
--host is provided:
konfai-apps infer VBoussot/ImpactSynth:CBCT \
-i input.mha \
-o ./Output \
--host 127.0.0.1 \
--port 8000 \
--token secret \
--cpu 1
The remote flow is:
- upload inputs and parameters
- schedule the job on the server
- stream logs back to the client
- download the packaged result archive
- extract the final outputs locally
What a KonfAI App Contains
A typical app directory contains:
my_app/
├── app.json
├── Prediction.yml
├── Evaluation.yml # optional
├── Uncertainty.yml # optional
├── checkpoint.pt # one or more checkpoints
└── custom Python modules # optional
app.json stores metadata such as:
- display name
- description
- short description
- TTA capability
- MC-dropout capability
- optional UI-oriented metadata
The exact app authoring model is documented in the main repository under
apps/ and in the Sphinx docs.
Repository Layout
Inside this monorepo:
konfai-apps/konfai_appscontains the package runtimekonfai-apps/testscontains package-specific testsapps/contains published packaged workflows built on top of this runtime
This is why the folder is named konfai-apps and not just apps:
the package is the runtime, while apps/ is the catalog of concrete apps.
Development
Install both packages in editable mode:
python -m pip install -e .
python -m pip install -e ./konfai-apps
Run the package test suite:
pytest -q konfai-apps/tests
The tests are split into:
konfai-apps/tests/unitkonfai-apps/tests/integration
GitHub Actions also separates the package from the core repository workflow:
.github/workflows/konfai_ci.yml.github/workflows/konfai_apps_ci.yml
Related Documentation
Useful entry points in the main repository:
../README.md../apps/README.md../docs/source/usage/apps.md../docs/source/usage/remote-server.md../docs/source/reference/cli.md
Current Scope
konfai-apps is intentionally focused on packaged workflow execution.
It is not meant to replace the low-level konfai workflow authoring interface
Its job is narrower and more operational: turn a mature KonfAI workflow into a reproducible, distributable application surface.
Metadata
Release files for konfai-apps 1.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| konfai_apps-1.8.3.tar.gz | 6.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| konfai_apps-1.8.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 MB
Release files / konfai_apps-1.8.3.tar.gz
| Download URL | konfai_apps-1.8.3.tar.gz |
|---|---|
| Size | 6.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d315f7517a5716ff08e71250c376d6b539b781e3c4c98a43bf53b7e71720ad9a
|
|
BLAKE2b-256 checksum How to use checksums |
0649c8a8e37fdfa5377e676ad9191336c9e67451a94b7cf5569da1385cd0de5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / konfai_apps-1.8.3-py3-none-any.whl
| Download URL | konfai_apps-1.8.3-py3-none-any.whl |
|---|---|
| Size | 86.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bab6a16a9aed1200f974ff60750a494103052292507115aa0532b3a3f36dd28
|
|
BLAKE2b-256 checksum How to use checksums |
861f74959c9f9720a5bc5b4e86f9a853baf0de256fe4ec686ce4f18986da1426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency log