Skip to content

Installation

Alquimia Platform is distributed as three components: the Python SDK (alquimia-core), the HTTP service (alquimia-runtime), and the web-based management interface (alquimia-studio). Choose the installation path that matches how you plan to use the platform.

Install the SDK when you want to embed agent execution in a Python application or prototype locally.

Requirements: Python 3.12 exactly (==3.12.*).

Install commandCapabilities
pip install alquimia-coreBase install (no LLM or tool execution)
pip install "alquimia-core[core]"Full agent runtime: LLMs, MCP tools, vector stores, Redis memory
pip install "alquimia-core[cli]"Command-line interface
pip install "alquimia-core[core,cli,registry]"Recommended for local development
pip install "alquimia-core[core,cli,registry,security,identity,aws,tools,leviathan]"Everything

The [core] extra includes LangChain, Redis, Qdrant, MCP, Llama Stack, and scikit-learn. The [cli] extra adds Click, Rich, and tiktoken.

Terminal window
alquimia --help
python -c "import alquimia.core; print('ok')"

The runtime is distributed as a Docker image. For local development, use Docker Compose to start the runtime together with Kafka, PostgreSQL, Redis, Qdrant, MinIO, Vault, and an OCI registry.

Before starting the runtime, set these secrets in your environment or .env file:

SecretPurpose
API_TOKENBearer token for authenticated endpoints
POSTGRES_USERNAME / POSTGRES_PASSWORDPostgreSQL credentials
VAULT_TOKENScoped Vault token for registry secret resolution
BLOB_S3_ACCESS_KEY / BLOB_S3_SECRET_KEYS3-compatible blob storage credentials
KAFKA_SIGNING_KEY64-character hex key shared across all runtime instances

Generate signing and encryption keys with:

Terminal window
python -c "import secrets; print(secrets.token_hex(32))"
Terminal window
docker compose up

The master listens on port 8080 by default. Workers expose only health probes on the same port and are not publicly routed.

Terminal window
curl http://localhost:8080/health/readiness
# → OK

Then open the interactive API documentation at http://localhost:8080/docs.

OverlayCommandPurpose
Hot-reloaddocker compose -f docker-compose.yml -f docker-compose.dev.yml upMount source directories for live code changes
Ollama + TEImake run-with-ollamaRun with a local LLM and embeddings
vLLMmake run-with-vllmRun with a vLLM endpoint
Keycloak + SPIREdocker compose -f docker-compose.yml -f docker-compose.local.yml upDevelop with Zero Trust identity

You can also run Alquimia Platform on Railway using the official one-click template. Railway provisions the runtime and its supporting services and handles builds, networking, and persistent storage for you.

Deploy on Railway

The template prompts for the same core secrets as a local Docker Compose deployment. Set these in the Railway dashboard before the first deploy:

SecretPurpose
API_TOKENBearer token for authenticated runtime endpoints
POSTGRES_USERNAME / POSTGRES_PASSWORDPostgreSQL credentials created by the Railway database
VAULT_TOKENScoped Vault token for registry secret resolution
BLOB_S3_ACCESS_KEY / BLOB_S3_SECRET_KEYS3-compatible blob storage credentials
KAFKA_SIGNING_KEY64-character hex key shared across all runtime instances

Generate signing and encryption keys with:

Terminal window
python -c "import secrets; print(secrets.token_hex(32))"

Once the template finishes deploying, open the public alquimia-runtime service URL and check the readiness endpoint:

Terminal window
curl https://<your-railway-domain>/health/readiness
# → OK

Then open the interactive API documentation at https://<your-railway-domain>/docs.

For production deployments, see the Kubernetes & OpenShift guide.

Alquimia Studio is the visual management layer for the platform. It is a Next.js application that connects to an existing alquimia-runtime deployment and lets you design, test, publish, and operate agents through a web interface.

  • Node.js 18+ and Yarn
  • MongoDB instance, or set DB_STRATEGY=lite to use embedded NeDB with no external database
  • Keycloak instance, or set AUTH_STRATEGY=lite for self-contained authentication
  • A running alquimia-runtime deployment and API key
Terminal window
# Clone the repository
git clone https://github.com/Alquimia-ai/studio.git
cd studio
# Install dependencies
yarn install
# Configure environment variables
cp .env.example .env.local
# Edit .env.local with your configuration
# Run development server
yarn dev

Open http://localhost:3000 to access Studio.

VariablePurpose
DB_STRATEGYmongo (default) or lite for embedded NeDB
MONGODB_URIMongoDB connection string when DB_STRATEGY=mongo
KEYCLOAK_ISSUER / KEYCLOAK_CLIENT_ID / KEYCLOAK_CLIENT_SECRETKeycloak authentication
NEXTAUTH_URL / NEXTAUTH_SECRETNextAuth session configuration
ASSISTANT_BASEURLURL of the alquimia-runtime service
ALQUIMIA_ASSISTANT_API_KEYRuntime API token
NEXT_PUBLIC_DEFAULT_NAMESPACEDefault OCI namespace for publishing
KNOWLEDGE_BASE_API_URL / KNOWLEDGE_BASE_API_KEYKnowledge base service (optional)

For the full configuration reference, telemetry options, and production build instructions, see the Studio overview.