ApherisFold CLI
Command-line interface for submitting and managing prediction, benchmark, and fine-tuning workflows on an Apheris Hub instance.
Requirements
- Python 3.10 or later
- Access to an Apheris Hub instance
Installation
conda
Recommended if you already use conda for scientific Python work. A dedicated environment avoids dependency conflicts.
Linux / macOS
conda create -n apherisfold python=3.11 -y
conda activate apherisfold
pip install apherisfold-cli
Windows (Anaconda Prompt or PowerShell)
conda create -n apherisfold python=3.11 -y
conda activate apherisfold
pip install apherisfold-cli
Activate the environment at the start of each session with conda activate apherisfold.
venv (standard Python)
Linux / macOS (venv)
python3 -m venv ~/.venvs/apherisfold
source ~/.venvs/apherisfold/bin/activate
pip install apherisfold-cli
Windows (PowerShell, venv)
python -m venv $env:USERPROFILE\.venvs\apherisfold
& $env:USERPROFILE\.venvs\apherisfold\Scripts\Activate.ps1
pip install apherisfold-cli
Activate the environment at the start of each session with the activate command above.
Verify
apherisfold --version
apherisfold --help
Upgrade
pip install --upgrade apherisfold-cli
Quick start
# Log in with your ApherisFold Hub URL
apherisfold login --url https://hub.example.com
# See available models and weights
apherisfold weights list
# Submit a prediction
apherisfold workflow predict run \
--model openfold3 \
--weight 3.0.0 \
--input ./request.json
# By default, local artifacts are written under ./.apherisfold/runs/<workflow>/<id>
# relative to the directory where you run the command. Use --output to choose another directory.
# List submitted jobs
apherisfold workflow predict list
# Inspect a job
apherisfold workflow predict get --id job_NUlyMsnWq
# Print diagnostics, or save them under ./.apherisfold/runs/predict/<job-id>/logs
apherisfold workflow predict logs --id job_NUlyMsnWq
apherisfold workflow predict logs --id job_NUlyMsnWq --save
apherisfold workflow predict error --id job_NUlyMsnWq --output ./diagnostics
Workflows
| Workflow | Entry point |
|---|---|
| Structure prediction | apherisfold workflow predict run |
| Benchmarking | apherisfold workflow benchmark run |
| Fine-tuning | apherisfold workflow fine-tune prepare |
Affinity prediction
When using weights that support affinity prediction, the CLI selects the ligand chain automatically if there is only one. For queries with multiple ligand chains, specify which one to score with --affinity-ligand:
apherisfold workflow predict run \
--model openfold3 \
--weight 3.0.0 \
--input ./request.json \
--affinity-ligand B
Supplying MSAs
Pass precomputed alignments with --asset. A3Ms are matched to structure chains by
sequence (an X in the MSA sequence acts as a wildcard), so filenames need not match the
structure. Supply one A3M per chain — a single A3M matching several identical chains (for
example a homomultimer) is applied to all of them. Chains without a supplied match fall back
to automatic MSA generation, and the CLI warns which chains that affects.
# One A3M per chain, matched by sequence
apherisfold workflow predict run \
--model openfold3 --weight 3.0.0 \
--input ./complex.cif \
--asset ./chain-A.a3m --asset ./chain-B.a3m
To disambiguate which structure an A3M belongs to, scope it with a structureId= prefix
(queryId= for predict). This narrows the candidate chains to that one structure:
For predict requests supplied as JSON, queryId=path.a3m also uploads the local file
under the MSA filename referenced by that query. This is useful when the local filename
does not match the JSON filename:
apherisfold workflow predict run \
--model openfold3 --weight 3.0.0 \
--input ./5sg6.json \
--asset 5sg6=./5sg6.a3m
apherisfold workflow benchmark run \
--model openfold3 --weight 3.0.0 --name eval \
--input ./structures/ \
--asset alpha=./alpha-chain-A.a3m \
--asset alpha=./alpha-chain-B.a3m
Resolved MSA-to-chain mappings are recorded in the run's result.json; benchmark runs also
print the mapping before submission.
Use --help on any subcommand for the full option reference and examples:
apherisfold workflow predict run --help
apherisfold workflow benchmark run --help
apherisfold workflow fine-tune prepare --help
License
This package is licensed under the Apheris Foundry Software License. The full license text is also included in every published wheel as LICENSE.
Support
Contact support@apheris.com for access and deployment assistance.
Metadata
Release files for apherisfold-cli 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apherisfold_cli-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / apherisfold_cli-0.3.4-py3-none-any.whl
| Download URL | apherisfold_cli-0.3.4-py3-none-any.whl |
|---|---|
| Size | 120.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12dd52047fc3fb676e92b94e37183fa47b0c62f8e6a483862db26bfb7c8f6457
|
|
BLAKE2b-256 checksum How to use checksums |
2eb378a8c699cd94f7e2fd2aea5c3c0373ab98cd767d86a19c6fba95cbb919e9
|
| 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 16, 2026.
Transparency logSecurity for apherisfold-cli 0.3.4
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.
Full provenance
All 1 file in this release has been uploaded with provenance metadata.
Attestation for apherisfold_cli-0.3.4-py3-none-any.whl
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 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.