Skip to content

swiss-ai-hub-core

The foundational shared library for Swiss AI Hub. Every other Swiss AI Hub Python package depends on it — you rarely install it directly.

PyPIPythonLicense


What is Swiss AI Hub?

Swiss AI Hub is an open-source, self-hosted AI platform for enterprises. One docker compose up starts ~30 integrated containers — LLM gateway (LiteLLM), vector search (Milvus), data pipelines (Dagster), SSO (Keycloak), observability (Langfuse), a chat UI (Open-WebUI), and more. You build custom agents, pipelines, processes, and bot integrations with the Python SDK; the platform provides the runtime.

What is this package?

swiss-ai-hub-core is the shared foundation the rest of the SDK is built on. It is a library, not a runnable service — it provides the Swiss AI Agent Protocol (typed, event-driven messaging over NATS), authentication & multi-tenancy, the Form configuration system, and shared AI/ML utilities. Every higher-level package imports it.

You usually don't install this directly

Install the package for what you're building — each one depends on swiss-ai-hub-core and pulls it in automatically:

You want to…InstallImports as
Build a workflow-based AI agentswiss-ai-hub-agentswiss_ai_hub.agent
Expose a REST API + WebSocket gatewayswiss-ai-hub-apiswiss_ai_hub.api
Connect agents to Teams / Slack / web chatswiss-ai-hub-botswiss_ai_hub.bot
Build a document-ingestion pipelineswiss-ai-hub-pipelineswiss_ai_hub.pipeline
Orchestrate multi-entity processesswiss-ai-hub-processswiss_ai_hub.process
Install the whole SDKswiss-ai-hub (meta)(pulls all of the above)

Reach for swiss-ai-hub-core on its own only in the rare case where you're writing a service that speaks the Swiss AI Agent Protocol directly, without one of the higher-level engines above.

Installation

bash
pip install swiss-ai-hub-core   # usually unnecessary — it comes in with the package you actually want

All distributions share the swiss_ai_hub.* native (PEP 420) namespace, so swiss_ai_hub.core, swiss_ai_hub.agent, … coexist as sibling modules regardless of which subset you install.

License

Apache-2.0 — see packages/core/LICENSE. For the full per-package license matrix, see LICENSES.md.


Part of Swiss AI Hub. Built in Switzerland by bbv Software Services.

Built with ❤️ in Switzerland 🇨🇭