HUB
Sign inSign up

apocas/restai

By apocas

•Updated 4 months ago

AIaaS (AI as a Service) — create AI projects and consume them via a simple REST API.

Image
Machine learning & AI
0

10K+

apocas/restai repository overview

⁠RESTai

AIaaS (AI as a Service) — create AI projects and consume them via a simple REST API. Self-hosted, multi-tenant, batteries-included.

Project types: RAG (with optional NL→SQL), Agents (LLM + MCP tools), Block (visual logic builder), and direct Inference. Ships with a full React admin UI, token/cost/latency analytics, teams + RBAC, OAuth/LDAP/TOTP, evaluation framework, embeddable chat widget, WordPress plugin, and a built-in MCP server.

⁠Quick start

docker run -p 9000:9000 apocas/restai:latest

Then open http://localhost:9000/admin⁠ and log in with admin / admin.

Pin a release in production and pass an env file with your config:

docker run -d --name restai -p 9000:9000 \
  --env-file .env \
  -v restai-data:/app/data \
  apocas/restai:6.2.13

⁠Tags

TagWhat it is
latestLatest stable release
6.2.13, 6.2, 6Semver-pinned releases (major / minor / patch)

Built for linux/amd64 and linux/arm64 (Apple Silicon, AWS Graviton, Raspberry Pi 5).

Mirror on GitHub Container Registry: ghcr.io/apocas/restai.

⁠Configuration

Configuration is via environment variables — pass them with -e KEY=value or an --env-file. Common ones:

VariableDescription
RESTAI_DEFAULT_PASSWORDInitial admin password (default admin)
POSTGRES_HOST / MYSQL_HOSTUse Postgres / MySQL instead of bundled SQLite
CHROMADB_HOST / CHROMADB_PORTRemote ChromaDB for vector storage
RESTAI_URLPublic URL (used for OAuth redirects, image links, webhooks)

Most other settings (proxy, SSO, Docker sandbox, system LLM, branding, 2FA enforcement) are managed from the admin UI at runtime — no restart needed.

⁠Persistence

Mount a volume on /app/data to persist the SQLite database, prompt versions, audit logs, and uploaded files across container restarts:

-v restai-data:/app/data

For multi-replica deployments, point at external Postgres + Redis + ChromaDB and the container itself becomes stateless.

⁠Compose

For a stack with Redis / Postgres / MySQL profiles, see the docker-compose.yml⁠ in the source repo.

⁠Kubernetes

A Helm chart is provided in chart/restai/⁠. The image runs as UID 1000 and migrates the database on startup, so you can scale replicas freely once Postgres is wired up.

Apache 2.0. Built by Pedro Dias⁠.

Tag summary

Content type

Image

Digest

sha256:dbea7ced9…

Size

3.8 GB

Last updated

4 months ago

docker pull apocas/restai