Matrx AI Engine — unified AI orchestration backend with multi-provider LLM support, streaming, tool execution, and conversation persistence.
Project description
matrx-ai
Matrx AI Engine — unified AI orchestration backend with multi-provider LLM support, streaming, tool execution, and conversation persistence.
Installation
# Core library only (AI providers, tools, conversation management)
pip install matrx-ai
# With the FastAPI server layer
pip install "matrx-ai[server]"
# Or with uv
uv add matrx-ai
uv add "matrx-ai[server]"
Quick Start (library)
import matrx_ai
# Initialize once at startup (registers the database connection)
matrx_ai.initialize()
# Use the AI engine directly
from matrx_ai.orchestrator import execute_ai_request
from matrx_ai.config.unified_config import UnifiedConfig
Quick Start (server)
uv sync --extra server # install with server deps
cp .env.example .env # fill in your API keys
make dev # start dev server on :8000
Environment Variables
Copy .env.example to .env and fill in the required keys:
- AI provider keys:
OPENAI_API_KEY,ANTHROPIC_API_KEY,GEMINI_API_KEY,GROQ_API_KEY, etc. - Supabase:
SUPABASE_URL,SUPABASE_ANON_KEY,SUPABASE_SERVICE_ROLE_KEY,SUPABASE_MATRIX_*
Common Commands
make dev # dev server with reload on :8000
make run # production mode (matrx-ai-server)
make lint # ruff check
make fmt # ruff format
make typecheck # pyright
make test # pytest -v
Publishing a New Release
./scripts/publish.sh # patch bump (e.g. 1.2.3 → 1.2.4)
./scripts/publish.sh --minor # minor bump (e.g. 1.2.3 → 1.3.0)
./scripts/publish.sh --major # major bump (e.g. 1.2.3 → 2.0.0)
./scripts/publish.sh --message "feat: add new provider"
./scripts/publish.sh --dry-run # preview without committing
Version History
| Version | Highlights |
|---|---|
| v0.1.7 | Patch release |
| v0.1.6 | Patch release |
| v0.1.5 | Patch release |
| v0.1.4 | Patch release |
| v0.1.3 | Patch release |
| v0.1.2 | Patch release |
| v0.1.1 | Patch release |
| v0.1.0 | Initial release — multi-provider AI orchestration, streaming, tool system, conversation persistence |
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 matrx_ai-0.1.7.tar.gz.
File metadata
- Download URL: matrx_ai-0.1.7.tar.gz
- Upload date:
- Size: 593.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5921c438eedb3b89b3effbe04e3b6fcf1033169e45fcab19268076bc07bfe0c0
|
|
| MD5 |
4d5518c155c96b52a4a51f24428a5751
|
|
| BLAKE2b-256 |
b55aea57b9e74d1836618eaf1412bf17a51734a24d64cf56c61e1d38a19d7363
|
Provenance
The following attestation bundles were made for matrx_ai-0.1.7.tar.gz:
Publisher:
publish.yml on armanisadeghi/matrx-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matrx_ai-0.1.7.tar.gz -
Subject digest:
5921c438eedb3b89b3effbe04e3b6fcf1033169e45fcab19268076bc07bfe0c0 - Sigstore transparency entry: 1016473686
- Sigstore integration time:
-
Permalink:
armanisadeghi/matrx-ai@5badbb1f6159a51cc9713773a4438a37c0b0c740 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/armanisadeghi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5badbb1f6159a51cc9713773a4438a37c0b0c740 -
Trigger Event:
push
-
Statement type:
File details
Details for the file matrx_ai-0.1.7-py3-none-any.whl.
File metadata
- Download URL: matrx_ai-0.1.7-py3-none-any.whl
- Upload date:
- Size: 440.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5823069d520cb62af3dd02d8c1e8df344096364de4f58e028356f30813de9c0
|
|
| MD5 |
d1ba9fb8b273eb18e5971454a331c8b3
|
|
| BLAKE2b-256 |
d0fbbc49e800a7d637b4b5c479e5a5000d82de25e1f6988023056282aba924f1
|
Provenance
The following attestation bundles were made for matrx_ai-0.1.7-py3-none-any.whl:
Publisher:
publish.yml on armanisadeghi/matrx-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
matrx_ai-0.1.7-py3-none-any.whl -
Subject digest:
e5823069d520cb62af3dd02d8c1e8df344096364de4f58e028356f30813de9c0 - Sigstore transparency entry: 1016473710
- Sigstore integration time:
-
Permalink:
armanisadeghi/matrx-ai@5badbb1f6159a51cc9713773a4438a37c0b0c740 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/armanisadeghi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5badbb1f6159a51cc9713773a4438a37c0b0c740 -
Trigger Event:
push
-
Statement type: