Airalogy MasterBrain
Project description
Masterbrain Python Package
Published Python package for the Masterbrain monorepo. It owns the provider-neutral AI core, model provider adapters, FastAPI service, desktop launcher, Python tests, and PyInstaller packaging flow.
The package depends on the sibling airalogy package in source checkouts and uses it to validate and unpack .aira archives for the local protocol/record library.
For platform coverage and packaging limits, see ../../PLATFORM_SUPPORT.md.
For PyPI release automation, see ../../RELEASING.md.
Setup
cp .env.example .env
uv sync --dev
packages/masterbrain/.env is the standard location for local runtime configuration.
Run
Start the FastAPI server:
uv run uvicorn masterbrain.fastapi.main:app --reload --host 127.0.0.1 --port 8080
Launch the integrated desktop-style local app after building the frontend in apps/studio:
uv run masterbrain-studio
masterbrain-desktop is kept as a deprecated compatibility alias and will be removed in a future release.
You can bind the app to an existing workspace directory:
uv run masterbrain-studio --workspace /path/to/project
You can also pass an .aira archive path as the launch document. Masterbrain will import it into the local library before opening the UI:
uv run masterbrain-studio /path/to/archive.aira
OpenCode
Code-edit flows require an OpenCode runtime. Either install opencode globally, or vendor it locally:
python3 scripts/vendor_opencode.py
Tests
Run the Python package test suite:
uv run python -m pytest
pytest.ini excludes openai and qwen markers by default.
Packaging
PyPI publishing is handled by the repository-level GitHub Actions release workflow on v* tag pushes.
Build the packaged local bundle with the cross-platform CLI:
uv run masterbrain-build-desktop
Wrapper scripts are also available:
- macOS / Linux:
./scripts/build_desktop_bundle.sh - Windows PowerShell:
.\scripts\build_desktop_bundle.ps1
This builds the frontend from apps/studio, vendors OpenCode into packages/masterbrain/vendor/, syncs the packaging dependency group, writes the raw PyInstaller bundle to packages/masterbrain/dist/Masterbrain/, and then packages platform release artifacts under packages/masterbrain/dist/release/<platform>/.
- macOS: unsigned
Masterbrain.appand a versioned.zip - Windows x64: portable directory, portable
.zip, and an Inno Setup.issscript; ifISCC.exeis available or passed via--inno-setup-compiler, the installer.exeis also built - Linux: portable directory and a versioned
.tar.gz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file masterbrain-0.8.0.tar.gz.
File metadata
- Download URL: masterbrain-0.8.0.tar.gz
- Upload date:
- Size: 97.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613b20a466cd1469250a2e163996f44e4cc3eecceef51010f51a18a716b673e6
|
|
| MD5 |
139c682797a521a15a4b3a574884ef3f
|
|
| BLAKE2b-256 |
fcb26a5987193591e8de3f3ddefacdee6012be11f305cc52c8717e1bac6b0b8f
|
Provenance
The following attestation bundles were made for masterbrain-0.8.0.tar.gz:
Publisher:
release.yml on airalogy/masterbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
masterbrain-0.8.0.tar.gz -
Subject digest:
613b20a466cd1469250a2e163996f44e4cc3eecceef51010f51a18a716b673e6 - Sigstore transparency entry: 1590762028
- Sigstore integration time:
-
Permalink:
airalogy/masterbrain@93f1dcd5430d914f6a5fdf1c2067d3d8b1b39fb3 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/airalogy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@93f1dcd5430d914f6a5fdf1c2067d3d8b1b39fb3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file masterbrain-0.8.0-py3-none-any.whl.
File metadata
- Download URL: masterbrain-0.8.0-py3-none-any.whl
- Upload date:
- Size: 171.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
589dc356b296bd994a0c9d2d639bda81430677bf361f85162cfaf6fa429501c9
|
|
| MD5 |
ddc576d39eec59b7b4c4fb67bed7d516
|
|
| BLAKE2b-256 |
54fed94189efa0d934c1b62f6b96fbe988925bbdc5b69aa77f4ab79a91553cd8
|
Provenance
The following attestation bundles were made for masterbrain-0.8.0-py3-none-any.whl:
Publisher:
release.yml on airalogy/masterbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
masterbrain-0.8.0-py3-none-any.whl -
Subject digest:
589dc356b296bd994a0c9d2d639bda81430677bf361f85162cfaf6fa429501c9 - Sigstore transparency entry: 1590762152
- Sigstore integration time:
-
Permalink:
airalogy/masterbrain@93f1dcd5430d914f6a5fdf1c2067d3d8b1b39fb3 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/airalogy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@93f1dcd5430d914f6a5fdf1c2067d3d8b1b39fb3 -
Trigger Event:
push
-
Statement type: