Skip to content
mxspPublic

About

Self-hosted molecular discovery workbench uniting 18+ local Bio-AI model containers (ESMFold, Boltz-2, ProteinMPNN, DiffDock, Evo 2), Mol* 3D viewer, Python notebooks, BYOM endpoints, encrypted API vault & Discovery Copilot.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phonos — Self-Hosted Molecular Discovery, 3D Structure & Bio-AI Workbench

Beta Release (v1.7.1): Phonos is currently in active Beta (indicated by the top Beta Release banner across web views). Core workflows are functional and tested, while self-hosted GPU model containers and new discovery integrations continue to evolve rapidly.
Research Use Only (RUO): Phonos and all computational outputs are strictly for non-clinical research and educational use — never for clinical diagnosis, patient treatment, or unvalidated wet-lab synthesis. See DISCLAIMER.md and THIRD_PARTY_LICENSES.md (note: upstream NVIDIA MolMIM endpoints are restricted to non-commercial R&D).
License: Source-available for non-commercial academic, personal, and research use under the Phonos Non-Commercial Source License v1.0 — see LICENSE. Copyright (c) 2026 FyreFlySystems GbR.

Phonos is a local-first, self-hosted computational biology, protein structure prediction, molecular docking, scientific notebook, and Bio-AI orchestration platform engineered for wet/dry laboratories and computational drug discovery teams.


Table of Contents


Core Architecture & Platform Highlights

  • Dual Isolated Modes Always Included (modeled on Gimel):
    • Playground (:5040) — Isolated SQLite sandbox pre-seeded with a folded 3D mini-protein structure (pLDDT confidence B-factors) and starter RDKit/3D Python notebook (--reset anytime).
    • Production (:5041) — Clean laboratory database (SQLite out-of-the-box or PostgreSQL 16 + Redis 7 + ZeroMQ MRS broker via Docker Compose), encrypted API key vault, audit logs, and local-network guard (PHONOS_LOCALNET_ONLY=1).
  • One-Click Self-Hosted Bio-AI Containers (Server Settings → Model Library) — Detect local CPU/RAM/NVIDIA GPU resources, scan the LAN for existing model servers, or build and launch 18+ containerized open-source models locally or over SSH/TCP (ssh://user@host, tcp://host:2375) with zero code changes.
  • Data-Locality Transparency (Where models run) — Every built-in and custom model displays live routing badges (This server, Lab network, External server, or NVIDIA cloud) resolved dynamically against active workers, admin overrides, and provider base URLs. Self-hosted models automatically rank ahead of cloud NIM endpoints in job creation dropdowns.
  • Bring Your Own Model (BYOM) & External Worker Bridge (/custom-models) — Register internal endpoints via 5 protocols (direct_http, nvidia_nim, openai_compat, huggingface, webhook_bridge) with live endpoint probing, encrypted upstream auth headers, AES-256-GCM + HMAC-SHA256 signed pull-worker bridges (wk_ keys), and 1-click result persistence.
  • Zero-SMTP Local Account Manager & Local Collaboration — Manage accounts purely via username + password through the browser First-Run Setup Wizard (/setup), Admin Panel (/admin/accounts), or CLI (phonos accounts), combining 4 Global Lab Roles (Admin, Scientist, Operator, Viewer) with per-project RBAC (Manager, Contributor, Viewer) and zero-email local username project invitations.
  • Zero-Docker Stateful Python Notebook & Mol* 3D Viewer — Execute Python (show_smiles, show_structure, Matplotlib, RDKit, BioPython) in a zero-dependency local Python kernel with seamless upgrade to Docker container isolation, paired with an interactive Mol* 3D workspace (pLDDT coloring, Ångström distance ruler M, coordinate export D, and Copilot snapshot A).
  • Discovery Copilot (/agent) & Phonos Shell — 70+ typed scientific tools powered by local LLMs (Ollama, LM Studio, vLLM) or cloud providers (Gemini, Anthropic, OpenAI, OpenRouter, Groq), plus an integrated admin Linux shell drawer (deploy/shell/) preloaded with the phonos API CLI.

Supported Bio-AI Models & Self-Hosted Library

Server Settings → Model Library inventories hardware, detects running /v1/health/ready containers on the host or LAN, manages gated Hugging Face weight access (OpenFold/OpenFold3), and builds/runs container recipes under deploy/models/.

Family Model Port License GPU Requirement One-Click Deploy (deploy/models/) Notes
Structure ESMFold 8101 MIT Recommended (8 GB+ VRAM) Yes (esmfold) Single-sequence structure; CPU works for short sequences
Structure AlphaFold2 (ColabFold) 8108 Apache-2.0 code / CC-BY-4.0 weights Required (16 GB+ VRAM) Yes (alphafold2) Supports local Containers → ColabFold / MMseqs2 DB (:8120) or opt-in public MSA server
Structure OmegaFold 8128 Apache-2.0 code; weights license not stated upstream (verify) Recommended (8 GB+ VRAM) Yes (omegafold) Single-sequence folding without MSAs; CPU supported for short chains
Complexes Boltz-2 8103 MIT (code & weights) Recommended (16 GB+ VRAM) Yes (boltz2) Protein–ligand co-folding + affinity estimation
Complexes Chai-1 8112 Apache-2.0 Required (24 GB+ VRAM) Yes (chai1) Protein/nucleic-acid/ligand complexes
Complexes OpenFold3 8107 Apache-2.0 (gated HF weights) Required (40 GB+ VRAM) Yes (openfold3) Requires HF_TOKEN after accepting OpenFold/OpenFold3 terms
Complexes AlphaFold 3 8111 CC-BY-NC-SA-4.0 code / GDM terms Required (40 GB+ VRAM) Containers tab (alphafold3) Mount user-obtained af3.bin.zst weights & ~630 GB public DBs (no auto-download)
Complexes Protenix 8117 Apache-2.0 Required (24 GB+ VRAM) Catalog / External (Use existing server) Connect external Protenix endpoint
Protein Design ProteinMPNN 8102 MIT Optional (fast on CPU) Yes (proteinmpnn) Weights shipped with repo (~50 MB)
Protein Design RFdiffusion 8106 BSD-3-Clause Required (12 GB+ VRAM) Yes (rfdiffusion) De novo backbone design via contig maps
Protein Design LigandMPNN 8114 MIT Optional (fast on CPU) Yes (ligandmpnn) ProteinMPNN that sees ligands, metals and nucleic acids; fix or redesign chains and residues
Protein Design ProtGPT2 8118 MIT / Apache-2.0 (upstream inconsistent, verify) Optional (CPU friendly) Yes (protgpt2) Generates novel protein sequences (unconditional)
Single-cell CellGemma 8119 Apache-2.0 Recommended (20 GB+ VRAM; CPU possible with ~32 GB RAM) Yes (cellgemma) Predicts transcriptional responses of single cells to drugs, CRISPR knockdowns and cytokines (Google DeepMind, Gemma 4 E4B); interactive CellGemma Studio at /cellgemma
Docking DiffDock-L 8104 MIT Recommended (12 GB+ VRAM) Yes (diffdock) Ligand pose prediction from SMILES, SDF, or MOL2
Docking GNINA 8122 Apache-2.0 OR GPL-2.0 (image bundles GPL OpenBabel; CNN weights unstated, verify) Recommended (4 GB+ VRAM) Yes (gnina) CNN-scored docking requiring 3D .sdf/.mol ligand input
Docking P2Rank 8129 MIT None (CPU Java) Yes (p2rank) Binding-pocket detection in seconds
Docking AutoDock Vina / Uni-Mol V2 8115 / 8123 Apache-2.0 / MIT Optional / Recommended Catalog / External Connect external REST servers
Small Molecules ChemBERTa-2 8131 MIT code; no license on the Hugging Face weights page (verify) Optional (CPU friendly) Yes (chemberta) Molecular embeddings from SMILES lists (up to 64 lines)
Small Molecules GenMol / MolMIM 8109 / 8110 NVIDIA Open Model / Proprietary Recommended / Required Cloud NIM / External Cloud NVIDIA NIM (MolMIM non-commercial; GenMol NGC weights)
Genomics Evo 2 (7B / 1B) 8105 Apache-2.0 (code and weights) Required (24 GB+ VRAM) Yes (evo2) DNA/RNA autoregressive sequence generation
Genomics DNABERT-2 8125 Apache-2.0 (Hugging Face page declares none; verify) Optional (CPU supported) Yes (dnabert2) DNA sequence embeddings
Genomics Nucleotide Transformer v2 8126 CC-BY-NC-SA-4.0 (non-commercial; terms must be accepted before deploy) Optional (CPU supported) Yes (nucleotide-transformer) 50M / 100M / 250M / 500M genomic embeddings
Embeddings / Search ESM-2 / ProtT5-XL 8113 / 8130 MIT / MIT code + AFL-3.0 weights Optional / Recommended Yes (esm2, prott5) Protein language-model vector embeddings
Embeddings / Search Foldseek 8127 GPL-3.0 None (CPU tool) Yes (foldseek) Fast structural similarity search against PDB (~1 GB auto-fetched)
Embeddings / Search ProstT5 8116 MIT Recommended (8 GB+ VRAM, ~24 GB RAM) Yes (prostt5) Sequence ↔ Foldseek 3Di structure tokens, inverse folding, embeddings (~11 GB weights)

How Phonos relates to these models. Phonos is a launcher for other people's models ("Ollama for biotech"). It does not distribute model weights: when an operator asks, the server downloads code and weights from the original upstream source (or the operator mounts them). The operator is responsible for complying with each model's license, citation and attribution duties; Phonos' own license covers only Phonos. Every catalog entry links its original sources (links.code, links.code_license, links.weights, links.weights_license, links.terms, links.paper) plus a citation and notes (restrictions, gating, dual-use remarks); they appear in GET /api/admin/models, the Model Library and the in-app Licenses page. Using the public ColabFold MSA server sends sequences to a third party under its informal fair-use rules (serial single-IP queries, no large-scale runs).

Model licenses & the terms gate. Code and weights are licensed separately upstream; the catalog records both (license_code, license_weights, commercial_use, terms_url, requires_acceptance, license_verify, links, citation, notes in phonos_app/helpers/model_licenses.py). Models with restrictive terms or no stated weights terms (AlphaFold 3, Nucleotide Transformer, GenMol, MolMIM, OmegaFold, GNINA, ChemBERTa-2, DNABERT-2, Uni-Mol) are only deployed after an admin sends accept_license: true to POST /api/admin/models/<id>/deploy (or the Containers create call); who accepted and when is stored in phonos_model_license_acceptances and the audit log. Hugging Face gated models (OpenFold3) keep using the token/terms flow. "Verify" marks upstream licenses that are ambiguous. The full table is on the in-app Licenses page and in THIRD_PARTY_LICENSES.md.

Expanded Runtime Inference Parameters

Self-hosted containers and their automatically registered custom-model forms expose full scientific controls (defined in phonos_app/helpers/model_catalog_more.py INPUTS) rather than bare single-input stubs:

  • Boltz-2 (boltz2): sequence, optional ligand_smiles, recycling_steps (1–10, default 3), sampling_steps (10–250, default 50), diffusion_samples (1–5, default 1), and predict_affinity (boolean ligand binding affinity toggle).
  • ProteinMPNN (proteinmpnn): input_pdb file picker, num_seq_per_target (1–50), sampling_temp (0.01–1.0), pdb_path_chains (chain filter e.g. A B), seed (0–999999), ca_only (C-alpha weights flag), and use_soluble_model (soluble ProteinMPNN weights flag).
  • DiffDock-L (diffdock): protein PDB picker, ligand (SMILES/SDF/MOL2 text), num_poses (1–20), steps (2–100, reverse diffusion trajectory steps), and ligand_file_type (smiles, sdf, mol2, or auto-detect).
  • GNINA (gnina): protein PDB, 3D ligand (.sdf/.mol), num_poses (1–20), optional center (x, y, z in Å), and search box size (5–80 Å).
  • Evo 2 (evo2): sequence DNA prompt, num_tokens (1–4096), temperature (0.01–2.0), top_k (1–4), and top_p nucleus sampling (0.05–1.0).
  • Batch Embeddings (esm2, prott5, dnabert2, nucleotide-transformer): Single sequence field plus optional multi-line sequences textarea (batch mode in one container call; chemberta supports up to 64 SMILES per call).
  • Deploying / Using Library Models (Use button): Clicking Use in Server Settings → Model Library immediately registers/activates the (self-hosted) custom model AND writes phonos_model_endpoint_overrides so built-in endpoints route there (reconcile_deployments also syncs stopped/restarted container states with Docker). Remember: custom models work immediately with zero restarts; built-in /api/* NIM routes pick up override changes cleanly across restarts or live lookups.

Self-Hosted Prioritization & "Where models run" Privacy Badges

  • Self-Hosted First in Job Listings: In New Job, Dashboard, and Notebook model dropdowns, local GPU worker models and self-hosted endpoints (built-in overrides, Server Settings → Endpoints URLs, and self-hosted (self-hosted) / BYOM custom models) are automatically sorted ahead of cloud NVIDIA NIM models (locality_rank).
  • Live Data-Locality Resolution: phonos_app/helpers/model_location.py inspects live state in order:
    1. Registered local GPU workers for that model (ZeroMQ / MRS queue on this server).
    2. Live database overrides (phonos_model_endpoint_overrides) or custom nvidia-nim provider base URLs.
    3. Built-in environment overrides (ESMFOLD_RE_API_URL, BOLTZ2_API_URL, DIFFDOCK_API_URL, etc.) or custom model URLs (resolve_custom_run_location).
    4. Default NVIDIA Cloud (https://health.api.nvidia.com/v1).
  • Badges Shown Before Submit: Every model displays a clear privacy badge (This server — data stays on host; Lab network — stays on LAN/private IP; External server — external URL; or NVIDIA cloud — Data leaves server warning). Endpoint URLs themselves are never leaked to non-admin users.

One-Time Setup & Quick Start

Option 1: Guided Browser GUI Installer (Easiest — Zero Dependencies)

Launch the local setup wizard (http://127.0.0.1:8098) using only Python 3.11+ standard library — checks prerequisites, creates .venv, installs RDKit & BioPython, configures your first Admin account, and launches Phonos:

git clone https://github.com/mxsp/phonos.git
cd phonos
python3 scripts/install-ui.py

(On Windows, double-click start-windows.bat or run python scripts\install-ui.py.)

Option 2: CLI One-Time Setup Script (Linux / macOS / Windows)

Linux / macOS:

git clone https://github.com/mxsp/phonos.git
cd phonos
chmod +x scripts/setup.sh
./scripts/setup.sh

Windows (PowerShell):

git clone https://github.com/mxsp/phonos.git
cd phonos
.\scripts\setup.ps1

Then start Phonos:

.venv/bin/phonos playground                      # Demo sandbox on http://127.0.0.1:5040
.venv/bin/phonos production                      # Clean lab instance on http://127.0.0.1:5041
.venv/bin/phonos both                            # Run Playground (:5040) + Production (:5041) side by side

Starting Phonos when it is already running opens the running instance in your browser instead of failing. If another program holds the default port, Phonos picks the next free one and prints the URL; a port you choose with --port is never changed silently.

Self-hosted defaults: a self-hosted lab (LOCAL_LAB_MODE=true, no Stripe key) has no plan caps, no per-user storage quotas and no email verification. Accounts need only a username and password, and project invitations go by username (the invite box suggests matching users). The real limit is the server's disk; admins can switch storage quotas on in Server Settings → Updates & Instance → Usage & limits.

Option 3: Docker Compose (Playground + Production + PostgreSQL + Redis + MRS)

cp .env.example .env
# Edit .env to set POSTGRES_PASSWORD (SECRET_KEY & ENCRYPTION_KEY auto-persist if left blank)
docker compose up -d --build

Services started by docker-compose.yml:

  • playground (http://127.0.0.1:5040/login) — Pre-seeded SQLite sandbox (docker logs phonos-playground prints the demo password).
  • production (http://127.0.0.1:5041/setup) — Clean Production workbench backed by postgres (PostgreSQL 16), redis (Redis 7), and mrs (production/mrs.py ZeroMQ job broker).

Option 4: Linux Standalone Binary (phonos-linux-x64.tar.gz)

Download phonos-linux-x64.tar.gz and SHA256SUMS.txt directly from GitHub Releases (or build locally via ./packaging/build-exe.sh):

sha256sum -c SHA256SUMS.txt
tar -xzf phonos-linux-x64.tar.gz
./phonos --mode playground     # Sandbox on http://127.0.0.1:5040
./phonos --mode production     # Production Lab on http://127.0.0.1:5041

(Note: Official pre-built binaries currently target Linux x64; on Windows, use Option 1 python scripts\install-ui.py or Option 2 .\scripts\setup.ps1.)


Run as a LAN Server (install-server.sh & Settings)

One machine runs Phonos; everyone else opens it in a browser over the intranet.

Install on a Linux server (systemd)

git clone https://github.com/mxsp/phonos.git
cd phonos
sudo ./deploy/install-server.sh            # add --https for a self-signed certificate
journalctl -u phonos -n 60 --no-pager      # addresses + one-time setup token

deploy/install-server.sh installs system prerequisites, Redis/Valkey, Docker (+ NVIDIA Container Toolkit automatically if an NVIDIA GPU/driver is detected and --skip-nvidia is omitted), checks out the newest release tag under /opt/phonos, and creates the phonos systemd service.

First Admin Setup & Desktop Utility

Open http://<server-ip>:5041/setup. On the server console itself no token is needed; from another computer on the LAN, enter the one-time setup token printed on the server console. On desktop hosts you can also reset the admin password or configure API keys locally:

phonos admin-gui   # Requires Tk (sudo apt install python3-tk)

Server Settings (/admin/settings)

Tab What it manages
Overview & Health Database status, CPU/RAM/disk usage, Redis/worker status, API-key health, LAN URLs
Users Add, edit, reset passwords, unlock lockouts, disable accounts, sign out sessions, audit log
API Keys Encrypted storage & live connection tests for NVIDIA NIM, Hugging Face, Wolfram Engine, and IBM Quantum
Model Library Hardware fit detection, container deploy/start/stop/logs/remove (Use / Stop using), remote SSH/TCP Docker targets, LAN port scanning
Containers Large reference database (ColabFold / MMseqs2 :8120) and mounted-weight runtime (AlphaFold 3 :8111)
Endpoints Effective runtime URL resolution for every built-in model (Env -> DB Override -> Custom Base URL -> Cloud NIM) + reachability probes
Network & Access Local only vs Expose to LAN, local-network IP guard, self-registration toggle, self-signed HTTPS toggle
Updates & Instance Lab name, GitHub Releases check/apply (mxsp/phonos), rollback-safe automatic daily updates, in-place server restart

Defaults for a new production server: reachable on the LAN (0.0.0.0), public non-private IP connections blocked (PHONOS_LOCALNET_ONLY=1), self-registration off. CLI flags (--local, --lan, --host) override the UI switch at launch. Phonos sets only essential session/CSRF cookies — zero analytics, zero tracking scripts.

WSL2 LAN Access

WSL2 runs inside an isolated virtual network. Either enable mirrored networking ([wsl2] + networkingMode=mirrored in %UserProfile%\.wslconfig) or forward the port from an administrator PowerShell and open Windows Firewall:

netsh interface portproxy add v4tov4 listenport=5041 listenaddress=0.0.0.0 connectport=5041 connectaddress=<WSL-IP>

API Keys, Encrypted Provider Vault & Key Prefixes

Phonos strictly separates outbound external provider keys (encrypted in your local database vault) from inbound platform/worker keys (SHA-256 hashed tokens issued by Phonos). For a full cryptographic and operational breakdown, see docs/self-hosting-and-api-keys.md.

Outbound Provider Vault (Server Settings → API Keys & Per-User BYOK)

Secrets are sealed using phonos_app/helpers/data_crypto.py / production/vault_crypto.py and never returned in plaintext to the browser. Resolution precedence: Per-User BYOK Override → Environment Variable → Instance Admin Vault Key.

Provider Env Variable Example Prefix Scope & Security Notes
NVIDIA NIM / BioNeMo NVIDIA_API_KEY nvapi-... Powers cloud Boltz-2, OpenFold3, DiffDock, RFdiffusion, ProteinMPNN, Evo 2, GenMol & MolMIM. Sent exclusively to *.nvidia.com hosts — never leaked to self-hosted or LAN servers.
Hugging Face HF_TOKEN hf_... Read token used by Model Library to verify & pull gated weights (such as OpenFold/OpenFold3 after accepting terms).
Wolfram Engine / Cloud WOLFRAM_LICENSE — Persistent stateful Wolfram notebook evaluations (http://localhost:5100).
IBM Cloud / Quantum IBM_QUANTUM_API_KEY — IBM Quantum Runtime execution + optional Instance CRN (crn:v1:...).
Discovery Copilot LLMs GEMINI_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY — Configured in .env or Copilot Settings; local Ollama, LM Studio, and vLLM endpoints require no API key.

Inbound Platform & External Worker Key Prefixes

Phonos issues typed API tokens (secrets.token_urlsafe(32), stored only as SHA-256 hashes):

Prefix Type Purpose
pk_ Public API Key Programmatic REST access to Phonos API endpoints.
mk_ Model-Specific Key Scoped to a single custom BYOM model (/api/user-models/<id>/api-keys).
pj_ Project-Wide Key Scoped to all custom models assigned to a project (/api/projects/<id>/api-keys).
wk_ External Worker Bridge Key Authenticates remote GPU workers polling Phonos (webhook_bridge or standard built-in external bridge /api/worker/...), supporting rate limits, AES-256-GCM encrypted payloads, and HMAC-SHA256 signed headers (X-Timestamp, X-Signature).

Bring Your Own Model (BYOM) & External Worker Bridge

Register any internal or third-party bio-AI service in /custom-models across 5 execution protocols (phonos_app/helpers/custom_endpoint_runner.py):

  1. direct_http — Direct synchronous REST JSON call to your microservice (auto-detects and stores .pdb, .cif, .sdf, .mol2, .fasta, .csv, .json outputs).
  2. nvidia_nim — Self-hosted NVIDIA BioNeMo NIM container or custom cloud endpoint, including HTTP 202 async NVCF polling.
  3. openai_compat — vLLM, Ollama, LM Studio, or OpenRouter /v1/chat/completions scientific model endpoints.
  4. huggingface — Hugging Face Inference Endpoints / TGI.
  5. webhook_bridge — Asynchronous queue (external_job_queue) polled securely over HTTPS by external GPU workers using wk_ keys — ideal for firewalled HPC clusters with no inbound ports.

Test BYOM end-to-end in 10 seconds with the included zero-dependency reference server:

python3 examples/custom_model_server.py --port 8095

Register http://127.0.0.1:8095/predict (direct_http) in /custom-models and click Test Live Endpoint — or instruct Discovery Copilot (/agent) to execute it directly.


Worker & Execution Oversight (/admin)

The Admin Dashboard (/admin -> Worker & Execution Oversight, powered by GET /api/admin/stats) gives operators an accurate real-time view across every compute backend Phonos uses instead of assuming Redis-only MRS workers:

  • Execution Summary KPIs: Counts Ready Models, Self-Hosted Models, Cloud NIM Models, Models Needing Key, Running Deployments, and Active External Worker Keys (wk_) alongside Redis / In-Memory queue mode.
  • Configured Model Execution Matrix: Groups active models separately from retired legacy entries and alias IDs, clearly showing whether each model runs via Local Container, LAN Server, Remote Endpoint, Local GPU Worker, NVIDIA Cloud, or Needs API Key.
  • Health Issue Alerts & One-Click Remediation: Detects stuck processing/queued jobs exceeding heartbeat/timeout thresholds, disconnected MRS worker heartbeats, offline deployed containers, and external bridge queue backlogs without active wk_ keys — with inline Fail Stuck Job (POST /api/admin/jobs/<job_id>/fail-stuck) and Prune Stale Workers (POST /api/admin/workers/prune-stale) actions.

Two-Layer Role Architecture, Local Collaboration & Zero-SMTP Workflow

Phonos eliminates mandatory SMTP mail-server setup while maintaining defense-in-depth access control (Lab Roles × Project Roles):

Global Lab Role Create Top-Level Projects Compute / Notebook Execution Project Visibility
Admin (admin) Yes Full + Provider Vault + Shell + Updater Clean personal sidebar by default + All Lab Projects (?scope=all_lab) override
Scientist (scientist / staff) Yes Full (built-in + BYOM + notebooks) Own projects + Default Lab Team + assigned projects
Operator (operator / worker) Assigned projects only Runs jobs inside Contributor/Manager projects Default Lab Team + assigned projects
Viewer (viewer / guest) No Read-only ceiling (0 compute/kernels) Inspects 3D structures, notebooks, and results in shared projects
  • Zero-Email Local Invitations: Project managers can invite teammates strictly by local username (in addition to optional email), receive immediate in-app notifications, and accept or decline invitations from /dashboard or /projects without configuring SMTP.

Interactive 3D Viewer, Stateful Notebook, Copilot & Phonos Shell

  • Mol* 3D Molecular Workspace (static/js/phonos_viewer.js): Renders .pdb, .mmcif/.cif, .sdf, and .mol2 predictions with AlphaFold/ESMFold pLDDT confidence coloring, binding-pocket focus, Ångström distance measurements (M), structure comparison, coordinate export (D), and 1-click snapshot sharing to Discovery Copilot (A).
  • Stateful Notebook IDE (docs/notebook_ide.md): Runs Python scripts and phonos_lib (get_project, ModelManager, FileManager) with serialized per-session execution, 500-event output buffering across tab reloads, inline 3D molecule rendering, optional Docker sandbox kernels, and Wolfram Language cell evaluation.
  • Discovery Copilot (docs/agent-lab.md): Right-hand assistant sidebar (Ctrl+Shift+A) and full /agent lab workspace with 70+ typed tools, RDKit ADMET/QED checks, saturation mutagenesis scanning, reversible write audit log, and compare-and-set execution history.
  • Copilot artifacts, knowledge graph & workflows: versioned artifacts (reports, CSV tables, SVG figures, code, PDB/SDF, sandboxed HTML) with an Artifacts tab; a per-project knowledge graph (built-in, optional Neo4j mirror with read-only Cypher) with a Graph tab and project importer; a Workflows tab for pipelines and flow runs; a Connections view of LLM, Docker, model containers, graph and provider-key status. Long chats are kept within a configurable context budget, and each tool call reports its duration. See section 14 of docs/agent-lab.md.
  • Phonos Shell (deploy/shell/): Admin-only Alpine Linux terminal drawer built automatically by Docker (phonos/shell:1) with bash completion, curl, jq, and the pre-authenticated phonos API CLI (phonos routes, phonos call, phonos get/post/put/patch/delete, phonos download).

CLI Reference (phonos) & Configuration

Unified entry point (phonos_app/cli.py):

# Servers & setup
phonos setup [--mode playground|production|both] [--reset] [--admin-user ...] [--lab-name ...]
phonos playground [--local|--lan|--host IP] [--port 5040] [--reset] [--https] [--no-browser]
phonos production [--local|--lan|--host IP] [--port 5041] [--https] [--admin-user ...]
phonos serve      [--local|--lan|--host IP] [--port 5041] [--https]
phonos both       [--local|--lan|--host IP] [--playground-port 5040] [--production-port 5041]
phonos install-ui [--port 8098] [--no-browser]
phonos admin-gui  [--mode production|playground]
phonos deps       [--ensure] [--json]        # Inspect Python, packages, Redis, Docker & NVIDIA GPU availability

# Local account administration
phonos accounts list
phonos accounts add alice --role scientist --lab-team-role contributor
phonos accounts passwd alice
phonos accounts role alice admin
phonos accounts team alice manager
phonos accounts enable|disable|unlock alice
phonos accounts delete alice -y

# Pull-based GitHub Release updater
phonos update --check [--json]
phonos update --list
phonos update --apply [--tag vX.Y.Z] [--allow-downgrade]

Key environment variables (.env.example):

  • SECRET_KEY, ENCRYPTION_KEY: Session signing and AES/Fernet vault keys (auto-generated in .data/ if blank in standalone mode).
  • PHONOS_MODE, PHONOS_BIND_HOST, PHONOS_LOCALNET_ONLY (1 blocks non-private IPs by default), PHONOS_TRUST_PROXY, PHONOS_HTTPS, LOCAL_LAB_MODE, ENABLE_2FA (email verification + login codes; off by default), ALLOW_PUBLIC_SIGNUP.
  • PHONOS_PLAN_LIMITS_ENABLED, PHONOS_STORAGE_LIMITS_ENABLED: force plan caps or per-user storage quotas on (1) or off (0); by default they are off on a self-hosted lab and on for hosted instances. Phonos has no credits: jobs, pipelines and batches are never charged.
  • DATABASE_URL (PostgreSQL 16 in Docker Compose; SQLite default standalone), REDIS_HOST, REDIS_PORT.
  • NOTEBOOK_BACKEND (auto prefers Docker container isolation when available and falls back to the local Python kernel).
  • PHONOS_UPDATE_REPO (default mxsp/phonos).

Releases, CI/CD & Pull-Based Auto-Updates

  • CI (.github/workflows/ci.yml): Runs on every push and pull request — test suites (pytest), secret scan, container build, and a real build-and-predict verification of the ProteinMPNN container.
  • Release (.github/workflows/release.yml): Bump APP_VERSION in phonos_app/version.py and version in pyproject.toml, then push to main or push a matching vX.Y.Z tag. Publishes phonos-linux-x64.tar.gz + SHA256SUMS.txt and pushes container images to ghcr.io.
  • Pull-Based Server Updates: No inbound access or SSH deploy keys required. Server Settings → Updates & Instance checks GitHub Releases (off, notify, or scheduled daily install). Git installs switch cleanly to the release tag (refusing dirty checkouts and rolling back failed installs); binary installs enforce SHA-256 verification. Docker Compose hosts update with git pull && docker compose up -d --build.

Documentation Index & Repository Layout

Deep Technical Documentation (docs/ & deploy/)

Repository Layout

phonos_app/           Flask + Socket.IO web app, RBAC, Notebook kernel, Model Library & Copilot
  agent/              Discovery Copilot (local Ollama/vLLM + cloud LLMs, ADMET, pLDDT & BYOM tools)
  helpers/            Lab accounts, crypto/provider vault, BYOM runner, model catalog/deploy, locality, updater
  routes/             REST & Socket.IO blueprints (/api/admin, /api/models, /api/user-models, /api/shell, ...)
  cli.py              Unified `phonos` CLI (playground, production, both, accounts, setup, update, deps, admin-gui)
  launcher.py         Dual-mode Playground (:5040) & Production (:5041) supervisor
production/           PostgreSQL/SQLite migrations, ZeroMQ MRS broker (`mrs.py`), workers & vault crypto
phonos_lib/           Python helper library for notebooks (`get_project`, `ModelManager`, `FileManager`)
static/ & templates/  Mol* 3D viewer (`phonos_viewer.js`), Notebook IDE, Copilot UI, Model Library & Admin views
deploy/               LAN installer (`install-server.sh`), 18+ model containers (`models/`), `databases/`, `workers/`, `shell/`
examples/             Reference `custom_model_server.py` BYOM HTTP starter
docs/                 Deep technical guides, architecture notes, API key & security references
scripts/              Zero-dependency `install-ui.py` wizard, `setup.sh` (Linux/macOS) & `setup.ps1` (Windows)
packaging/            PyInstaller spec, Linux binary builder & Windows Inno Setup (`Phonos-Setup-x64.exe`)
tests/                Unit & integration test suites (`pytest`)

Security, Legal & Clean Open-Source Push Note

Tip before pushing to a new public GitHub repository: If migrating from an older internal Git repository whose commit history contained legacy keys or merged trees, initialize a clean single-commit public history before pushing to https://github.com/mxsp/phonos:

git checkout --orphan oss-release
git add -A
git commit -m "Initial public release of Phonos v1.0.0"

About

Self-hosted molecular discovery workbench uniting 18+ local Bio-AI model containers (ESMFold, Boltz-2, ProteinMPNN, DiffDock, Evo 2), Mol* 3D viewer, Python notebooks, BYOM endpoints, encrypted API vault & Discovery Copilot.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages