Skip to main content

Apheris Foundry CLI

Command-line interface for submitting and managing prediction, benchmark, and fine-tuning workflows on an Apheris Foundry instance.

Requirements

  • Python 3.10 or later
  • Access to an Apheris Foundry 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 Apheris Foundry 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:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apheris_foundry_cli-0.1.0.tar.gz (143.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apheris_foundry_cli-0.1.0-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file apheris_foundry_cli-0.1.0.tar.gz.

File metadata

  • Download URL: apheris_foundry_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 143.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for apheris_foundry_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8583246d9b8e57ab30356c11247d154395275ae420c78051214ef4b48256f6c7
MD5 2c79b14c4182ac2aeb7cb6e551ecf275
BLAKE2b-256 b15035cffd72e246d8c8d5c45a25054d37b54c83557511fcc827cb1b5df1376e

See more details on using hashes here.

Provenance

The following attestation bundles were made for apheris_foundry_cli-0.1.0.tar.gz:

Publisher: release.yaml on apheris/apheris-foundry-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file apheris_foundry_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apheris_foundry_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55356def8ae984595483987c77b1e1f2c116af958df55ad76371f9126a4f8fd6
MD5 f0634a0e2665b5a9b4271d8d725b97c5
BLAKE2b-256 593f123b9a48c634d3274d6ca28dd79e270a2b07b9a902f729836ac35999346c

See more details on using hashes here.

Provenance

The following attestation bundles were made for apheris_foundry_cli-0.1.0-py3-none-any.whl:

Publisher: release.yaml on apheris/apheris-foundry-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page