appecosystem-ai
Shared, hardware-adaptive, provider-pluggable AI layer for appEcosystem.
Local models are the default. The router probes the machine's capability tier, picks a model that will actually run on it, and falls back gracefully when the preferred one is unavailable. Cloud providers are opt-in, configured per task — so you can send security analysis to a frontier model while keeping high-volume chat local and free.
Install
pip install appecosystem-ai
Requires Python 3.9+. Local inference talks to Ollama over HTTP and needs no extra Python packages.
Cloud providers are optional extras — install only what you use:
pip install "appecosystem-ai[anthropic]"
pip install "appecosystem-ai[openai]"
pip install "appecosystem-ai[gemini]"
Ask a local model
import asyncio
from ecosystem_ai import AIProfile, build_router
from ecosystem_ai.providers import ChatMessage
async def main():
router = build_router(AIProfile()) # detects this machine's tier
result = await router.chat(
[ChatMessage(role="user", content="Summarize today's alerts.")]
)
print(result.content)
asyncio.run(main())
build_router() detects the hardware tier when you do not pass one. Skipping
that detection leaves the stock selected_model="auto" profile with no model to
resolve, so let it detect unless you have a specific tier in mind.
Route a task to the cloud
task selects which provider handles the call, per the profile's routing table:
result = await router.chat(messages, task="security")
With task_providers={"security": "anthropic", "chat": "ollama"}, security
analysis goes to Claude while chat stays local. Tasks that need judgement warn
when the selected model is too small to be trusted with them.
Check what this machine can run
from ecosystem_ai import detect
info, tier = detect()
print(f"{info.ram_gb} GB RAM, {info.cpu_cores} cores, GPU={info.has_gpu} — tier {tier}")
License
MIT — see LICENSE.
Metadata
Release files for appecosystem-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| appecosystem_ai-0.1.0.tar.gz | 25.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| appecosystem_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.9 kB
Release files / appecosystem_ai-0.1.0.tar.gz
| Download URL | appecosystem_ai-0.1.0.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34e933c67e4108267ef00b495538c04dbe33d0c2e9ece20b49d868dc577f13eb
|
|
BLAKE2b-256 checksum How to use checksums |
5e497ef69a5150b2e2d1762b221df7822a3a833fea276307b0ae2f42bfba8da3
|
| 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 Aug 13, 2026.
Transparency logRelease files / appecosystem_ai-0.1.0-py3-none-any.whl
| Download URL | appecosystem_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b8de420f7c741f967a15a2c75bd21844e973c1b58d2e6af462c0ac50516d735
|
|
BLAKE2b-256 checksum How to use checksums |
13cf1f1cea5dd4df0431ed340fdf8d601363b2b691d10463ed58ee2539dcabb9
|
| 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 Aug 13, 2026.
Transparency log